Formatting ASP.NET controls with CSS
-
: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
-
: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
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
-
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
Hi Patel, Actually I need to do style matters in aspx file. otherwise it everytime require compilation.(ie. Whenever i change a style). Benedict
-
: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
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 -
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 / MyHTMLTidyHi David ... Thanxx... I solved my problem by writing CSSParser. Any Thanx Lot. ;P Benedict