Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to apply css to my asp.net page [modified]

how to apply css to my asp.net page [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpcssasp-nettutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kulandaivel_mca2007
    wrote on last edited by
    #1

    this is my css .top { width:200px; height :100px; margin :0 0 0 0; background-image :url(IMAGES/theme1.bmp); color:Green; } i want to apply my css to this portion..

    i trid but no effective answer... modified on Saturday, February 7, 2009 5:48 AM

    N R S 3 Replies Last reply
    0
    • K kulandaivel_mca2007

      this is my css .top { width:200px; height :100px; margin :0 0 0 0; background-image :url(IMAGES/theme1.bmp); color:Green; } i want to apply my css to this portion..

      i trid but no effective answer... modified on Saturday, February 7, 2009 5:48 AM

      N Offline
      N Offline
      needhi_p
      wrote on last edited by
      #2

      try giving class="top" to div...

      K 1 Reply Last reply
      0
      • N needhi_p

        try giving class="top" to div...

        K Offline
        K Offline
        kulandaivel_mca2007
        wrote on last edited by
        #3

        i gave this... and i place this coding in part nothing happens...

        1 Reply Last reply
        0
        • K kulandaivel_mca2007

          this is my css .top { width:200px; height :100px; margin :0 0 0 0; background-image :url(IMAGES/theme1.bmp); color:Green; } i want to apply my css to this portion..

          i trid but no effective answer... modified on Saturday, February 7, 2009 5:48 AM

          R Offline
          R Offline
          Ranjit Viswakumar
          wrote on last edited by
          #4

          A couple things. Make sure you enclose your background images in quotes. Next, you want your CSS to declare images relative to where the CSS is located, not where the web pages exists. So, given these three files- ./page.aspx ./css/king.css ./IMAGES/theme1.bmp ...make sure the background image call looks like this-

          background-image: url('../IMAGES/theme1.bmp');

          Good luck!

          Ranjit Viswakumar Professional Services Specialist http://hostmysite.com/?utm\_source=bb

          1 Reply Last reply
          0
          • K kulandaivel_mca2007

            this is my css .top { width:200px; height :100px; margin :0 0 0 0; background-image :url(IMAGES/theme1.bmp); color:Green; } i want to apply my css to this portion..

            i trid but no effective answer... modified on Saturday, February 7, 2009 5:48 AM

            S Offline
            S Offline
            sepel
            wrote on last edited by
            #5

            Why Do you use style in html tag?

            sepel

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups