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. Formatting ASP.NET controls with CSS

Formatting ASP.NET controls with CSS

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpcssasp-netwpf
5 Posts 3 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.
  • B Offline
    B Offline
    Benedict Alphonse
    wrote on last edited by
    #1

    :confused:I am trying to create a CSS style sheet which includes formatting for my ASP.NET controls on each page. I've been able to format the basic elements of the controls but with one control in particular I am having problems. I'm trying to modify the TabStrip controls appearance on one page. I can change the basic style but am unsure how to change the styles of the individual tabs. In the code I can format them using the following... How for example do I control the TabDefaultStyle settings on a CSS document? I've tried things like... .tabstrip { width : 400px; TabDefaultStyle-width : 50px; } But it doesn't work. Can anyone point me in the right direction. I assume it must be possible! Benedict

    J D 2 Replies Last reply
    0
    • B Benedict Alphonse

      :confused:I am trying to create a CSS style sheet which includes formatting for my ASP.NET controls on each page. I've been able to format the basic elements of the controls but with one control in particular I am having problems. I'm trying to modify the TabStrip controls appearance on one page. I can change the basic style but am unsure how to change the styles of the individual tabs. In the code I can format them using the following... How for example do I control the TabDefaultStyle settings on a CSS document? I've tried things like... .tabstrip { width : 400px; TabDefaultStyle-width : 50px; } But it doesn't work. Can anyone point me in the right direction. I assume it must be possible! Benedict

      J Offline
      J Offline
      jitendrapatel
      wrote on last edited by
      #2

      Hi, Friend, You can control the CSS by dynamically. U apply the Stylesheet at runtime. So u Can apply any style at run time and change can change ur Tabstrip looking style. J. A. Patel

      B 1 Reply Last reply
      0
      • J jitendrapatel

        Hi, Friend, You can control the CSS by dynamically. U apply the Stylesheet at runtime. So u Can apply any style at run time and change can change ur Tabstrip looking style. J. A. Patel

        B Offline
        B Offline
        Benedict Alphonse
        wrote on last edited by
        #3

        Hi Patel, Actually I need to do style matters in aspx file. otherwise it everytime require compilation.(ie. Whenever i change a style). Benedict

        1 Reply Last reply
        0
        • B Benedict Alphonse

          :confused:I am trying to create a CSS style sheet which includes formatting for my ASP.NET controls on each page. I've been able to format the basic elements of the controls but with one control in particular I am having problems. I'm trying to modify the TabStrip controls appearance on one page. I can change the basic style but am unsure how to change the styles of the individual tabs. In the code I can format them using the following... How for example do I control the TabDefaultStyle settings on a CSS document? I've tried things like... .tabstrip { width : 400px; TabDefaultStyle-width : 50px; } But it doesn't work. Can anyone point me in the right direction. I assume it must be possible! Benedict

          D Offline
          D Offline
          DavidNohejl
          wrote on last edited by
          #4

          TabStrip and individual tabs should have IDs. So IMHO you can use ID selector and do something like

          #myTabStrip
          {
            color:red;
            ...
          }
          
          #firstTab
          {
            color:blue;
            ...
          }
          
          #secondTab
          {
            color: green;
            ...
          }
          

          where myTabStrip is ID of TabStrip, firstTab and secondTan are IDs of tabs :) hope it helps. David Never forget: "Stay kul and happy" (I.A.)
          David's thoughts / dnhsoftware.org / MyHTMLTidy

          B 1 Reply Last reply
          0
          • D DavidNohejl

            TabStrip and individual tabs should have IDs. So IMHO you can use ID selector and do something like

            #myTabStrip
            {
              color:red;
              ...
            }
            
            #firstTab
            {
              color:blue;
              ...
            }
            
            #secondTab
            {
              color: green;
              ...
            }
            

            where myTabStrip is ID of TabStrip, firstTab and secondTan are IDs of tabs :) hope it helps. David Never forget: "Stay kul and happy" (I.A.)
            David's thoughts / dnhsoftware.org / MyHTMLTidy

            B Offline
            B Offline
            Benedict Alphonse
            wrote on last edited by
            #5

            Hi David ... Thanxx... I solved my problem by writing CSSParser. Any Thanx Lot. ;P Benedict

            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