473,503 Members | 9,887 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS in ASP page

1 New Member
Please help me, this is really bugging since a week.

I have a code that says:

Expand|Select|Wrap|Line Numbers
  1. <DIV CLASS ="SLIDETABS">
  2. <ul id="solutionstabs" class="tabs">                            
  3.                             <li ><a href="#" title="Solution Overviews" rel="solutions1" ><span>Solution Overviews</span></a></li>                            
  4.                             <li ><a href="#" title="Implementation Accelerators"  rel="solutions2" ><span>Implementation Accelerators</span></a></li>                            
  5.                             <li ><a href="#" title="Customer Success Stories" rel="solutions3" ><span>Customer Success Stories</span></a></li>                        
  6.                             </ul></DIV>
If i use the DIV tag class 'slidetabs' the asp apge doesnt pick the styles of this class instead it takes only from the class'tabs.
Both classes are on the same style sheet...please help...

----my style sheet:
Expand|Select|Wrap|Line Numbers
  1. #slidetabsmenu {
  2. float:left;
  3. width:100%;
  4. margin-left: 0;
  5.  
  6. line-height:25px;
  7. border-bottom: 0px solid gray;
  8. font: bold 12px Verdana;
  9. }
  10.  
  11. * html #slidetabsmenu{ /*IE only. Add 1em spacing between menu and rest of content*/
  12. margin-bottom: 0em;
  13. }
  14.  
  15. #slidetabsmenu ul{
  16. float:left;
  17. list-style-type: none;
  18. margin:0;
  19. margin-left: 0px;
  20. padding:0;
  21. }
  22.  
  23. #slidetabsmenu li{
  24. float:left;
  25. display:inline;
  26. margin:0;
  27. padding:0;
  28. }
  29.  
  30.  
  31. #slidetabsmenu a {
  32. float:left;
  33. background:url(images/tab-left.gif) no-repeat left top;
  34. margin:0;
  35. padding:0 0 0 9px;
  36. text-decoration:none;
  37. }
  38.  
  39. #slidetabsmenu a span {
  40. float:left;
  41. display:block;
  42. background:url(images/tab-right.gif) no-repeat right top;
  43. padding:3px 14px 3px 5px;
  44. font-weight:bold;
  45. color:#3B3B3B;
  46. }
  47.  
  48. /* Commented Backslash Hack hides rule from IE5-Mac \*/
  49. #slidetabsmenu a span {float:none;}
  50. /* End IE5-Mac hack */
  51.  
  52. #slidetabsmenu a:hover span {
  53. color: black;
  54. }
  55.  
  56. #slidetabsmenu #current a {
  57. background-position:0 -125px;
  58. }
  59.  
  60. #slidetabsmenu #current a span {
  61. background-position:100% -125px;
  62. color: red;
  63. }
  64.  
  65. #slidetabsmenu a:hover {
  66. background-position:0% -125px;
  67. }
  68.  
  69. #slidetabsmenu a:hover span {
  70. background-position:100% -125px;
  71. }
  72. /* ######### CSS for metashade Tabs. Remove if not using ######### */
  73.  
  74. .tabs{
  75. /*padding: 3px 0;*/
  76. margin-left: 0;
  77. margin-top: 0;
  78. margin-bottom: 0;
  79. list-style-type: none;
  80. text-align: left;
  81. font-size:12px;
  82. width:100%;
  83. line-height:25px;
  84.  
  85. }
  86.  
  87. .tabs li{
  88. float:left;
  89. margin-bottom: 0;
  90. padding: 0;
  91. margin-left: 0px;
  92. display:inline;
  93. text-align: left;
  94. line-height:25px;
  95. }
  96. .tabs ul{
  97. float:left;
  98. list-style-type: none;
  99. margin:0;
  100. margin-left: 0px;
  101. padding:0;
  102. text-align: left;
  103. line-height:25px;
  104.  
  105. }
  106.  
  107. .tabs li a{
  108. float:left;
  109. text-decoration: none;
  110. margin-bottom: 0;
  111. padding:3px 14px 3px 5px;
  112. font:bold;
  113. text-align: left;
  114. color: #2d2b2b;
  115. background:url(images/tab-right.gif) no-repeat right top;
  116. border-bottom-color: white;
  117. line-height:25px;
  118. }
  119.  
  120. .tabs li a:visited{
  121. color: #2d2b2b;
  122. text-align: left;
  123. }
  124.  
  125. .tabs li a:hover{
  126. float:left;
  127. text-decoration: none;
  128. background:white;
  129. }
  130.  
  131. .tabs li a.selected{ /*selected main tab style */
  132. float:left;
  133.  
  134. border-bottom-color: white;
  135. background:white ;
  136. text-align: left;
  137. }
  138.  
  139. .tabs li a.selected:hover{ /*selected main tab style */
  140. text-decoration: none;
  141. }
  142.  
  143. .tabcontent{
  144. display:none;
  145. }
  146.  
  147. @media print {
  148. .tabcontent {
  149. display:block !important;
  150. }
  151. }
  152.  
  153. /* ######### CSS for Inverted Modern Bricks II Tabs. Remove if not using ######### */
  154.  
  155. .modernbricksmenu2{
  156. padding: 0;
  157. width: 362px;
  158. border-top: 5px solid #D25A0B; /*Brown color theme*/ 
  159. background: transparent;
  160. voice-family: "\"}\"";
  161. voice-family: inherit;
  162. }
  163.  
  164. .modernbricksmenu2 ul{
  165. margin:0;
  166. margin-left: 10px; /*margin between first menu item and left browser edge*/
  167. padding: 0;
  168. list-style: none;
  169. }
  170.  
  171. .modernbricksmenu2 li{
  172. display: inline;
  173. margin: 0 2px 0 0;
  174. padding: 0;
  175. text-transform:uppercase;
  176. }
  177.  
  178. .modernbricksmenu2 a{
  179. float: left;
  180. display: block;
  181. font: bold 11px Arial;
  182. color: white;
  183. text-decoration: none;
  184. margin: 0 1px 0 0; /*Margin between each menu item*/
  185. padding: 5px 10px;
  186. background-color: black; /*Brown color theme*/ 
  187. border-top: 1px solid white;
  188. }
  189.  
  190. .modernbricksmenu2 a:hover{
  191. background-color: #D25A0B; /*Brown color theme*/ 
  192. color: white;
  193. }
  194.  
  195. .modernbricksmenu2 a.selected{ /*currently selected tab*/
  196. background-color: #D25A0B; /*Brown color theme*/ 
  197. color: white;
  198. border-color: #D25A0B; /*Brown color theme*/ 
  199. }
  200.  
  201. .tabcontent{
  202. display:none;
  203. }
  204.  
  205. @media print {
  206. .tabcontent {
  207. display:block !important;
  208. }
  209. }
  210.  
  211. /* ######### CSS for Indented CSS Tabs. Remove if not using ######### */
  212.  
  213.  
  214. .indentmenu{
  215. font: bold 13px Arial;
  216. width: 100%; /*leave this value as is in most cases*/
  217. }
  218.  
  219. .indentmenu ul{
  220. margin: 0;
  221. padding: 0;
  222. float: left;
  223. /* width: 80%; width of menu*/
  224. border-top: 1px solid navy; /*navy border*/
  225. background: black url(indentbg.gif) center center repeat-x;
  226. }
  227.  
  228. .indentmenu ul li{
  229. display: inline;
  230. }
  231.  
  232. .indentmenu ul li a{
  233. float: left;
  234. color: white; /*text color*/
  235. padding: 5px 11px;
  236. text-decoration: none;
  237. border-right: 1px solid navy; /*navy divider between menu items*/
  238. }
  239.  
  240. .indentmenu ul li a:visited{
  241. color: white;
  242. }
  243.  
  244. .indentmenu ul li a.selected{
  245. color: white !important;
  246. padding-top: 6px; /*shift text down 1px*/
  247. padding-bottom: 4px;
  248. background: black url(indentbg2.gif) center center repeat-x;
  249. }
  250.  
  251.  
  252. .tabcontentstyle{ /*style of tab content oontainer*/
  253. border: 1px solid gray;
  254. width: 450px;
  255. margin-bottom: 1em;
  256. padding: 10px;
  257. }
  258.  
  259. .tabcontent{
  260. display:none;
  261. }
  262.  
  263. @media print {
  264. .tabcontent {
  265. display:block !important;
  266. }
  267. }
Nov 10 '08 #1
1 2881
DrBunchman
979 Recognized Expert Contributor
Hi Sushmitha,

Welcome to Bytes.com! I hope you find the site useful.

Please don't forget to wrap your code in CODE tags - it makes your posts much easier to read - and please read the Posting Guidelines if you have not done so already.

I don't see a class called SLIDETABS in your style sheet but I do see one called tabs - could this be the problem?

Also please note that for strict XHTML document types class and id names can be case sensitive to I would avoid naming them in upper case just to keep things simple.

Dr B
Nov 11 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4177
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
0
2405
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
2
4326
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page has expired". It doesn't display the page. I've...
4
2791
by: Kevin Phifer | last post by:
Ok, before anyone freaks out, I have a solution I need to create that gathers content from maybe different places. Each one can return a <form> in the html, so its the classic can't have more than...
2
3603
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
6
2937
by: MooreSmnith | last post by:
When I navigate to the next page using Response.Rediect("MyNextPage.aspx") current page Page_Load event is called. What I may wrongly understood is that post back will happen whenever there is any...
1
2256
by: Lenard Gunda | last post by:
Hi! I have the following problem. From my main page, when someone clicks a button, it uses client side javascript to open another .aspx page. This page displays content, based on what the...
15
4713
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
8
2650
by: Ed Jay | last post by:
I want to use history.go() to navigate between my previously loaded pages. I'm looking for a way to trigger a function call when a page is accessed using history.go(). Is there an event generated?...
3
2314
by: Mesut | last post by:
I have written a form in with radio buttons the name is set to orderby and the value is set to KundeVorName and the next value is KundeNachName and it goes so on. I wanna modify my query according...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7361
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.