| | |
css tabs formation problem
![]() |
•
•
Join Date: Apr 2005
Posts: 149
Reputation:
Solved Threads: 0
Hi,
I am trying to create tabs using two images, the main background image and then the mouse over image, code i hv written after reading guidelines from a book so thats why cant completly understand where is the problem:
css code:
Html code is:
I have attached the two images also. First the problem is that there should not be any space between the tabs, and secondly the tab-hover image is not accurate.
Please guide
Thanks
I am trying to create tabs using two images, the main background image and then the mouse over image, code i hv written after reading guidelines from a book so thats why cant completly understand where is the problem:
css code:
css Syntax (Toggle Plain Text)
body { font: 62.5%/1.5 Verdana, Arial, Helvetica, sans-serif; background-color:#E5E5E5; } #content { border-top: 1px solid #898989; border-right: 1px solid #898989; border-bottom: 1px solid #898989; border-left: 1px solid #898989; } #navContainer { font: 1.1em Arial, Helvetica, sans-serif; text-align: center; padding: 20px 0 0; } #navigation { padding:0px; } #navigation a:link { text-transform: uppercase; text-decoration: none; padding: 5px 10px; position: relative; margin-right: 5px; } #navigation a:visited { text-transform: uppercase; text-decoration: none; padding: 5px 10px; position: relative; } #navigation #contactDetailsPageLink a:link, #navigation #contactDetailsPageLink a:visited { margin-right: 0; } <!-- to change font color of links--> #navigation a:visited { color:#CCCCCC; } #navigation a:hover { background-image:url(tab-hover.JPG); color:#FFFFFF; } #navigation ul { list-style: none; margin-bottom:5px; } #navigation li { display: inline; padding: 0px 9px; background-image:url(main_tab.JPG); } #navigation a:active { color:#FFFFFF; } #wrapper { margin-top:0px; margin-left:95px; } </style>
Html code is:
html Syntax (Toggle Plain Text)
<body id="homepage"> <div id="navContainer"> <div id="navigation"> <ul> <li id="pro"><a href="#" onClick="chk('pro')">Provinces</a></li> <li id="loc"><a href="#" onClick="chk('loc')">Locations</a></li> <li id="slide"><a href="#" onClick="chk('slideshow')">Slide Show</a> </li> <li id="users"><a href="#" onClick="chk('users'">Users</a></li> </ul> </div> </div> <div id="wrapper"> <iframe height="1000" width="800" id="content" scrolling="no" frameborder="0"> </iframe> </div> </body>
I have attached the two images also. First the problem is that there should not be any space between the tabs, and secondly the tab-hover image is not accurate.
Please guide
Thanks
take the padding total to 0 pixel
Thanx,
Shiriyal
http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Shiriyal
http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
![]() |
Similar Threads
- CSS/ Div Positioning problem (HTML and CSS)
- Unexpected CSS / JS problem, no clues, please help. (HTML and CSS)
- IE problem, can't get 2 divs to show side by side (HTML and CSS)
- CSS Template Edit Problem (HTML and CSS)
- Css floating problem (HTML and CSS)
- CSS & JS Menu Problem on IE (JavaScript / DHTML / AJAX)
- Word-wrapping in CSS (HTML and CSS)
- How do I make multiple tabs in CSS? (ASP)
Other Threads in the HTML and CSS Forum
- Previous Thread: Line break syntax
- Next Thread: Alignment of floated elements
Views: 624 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
2002 appointments background backgroundcolor browser bug calendar center cgi code corporateidentity css design development displayimageinsteadofflash division dreamweaver drupal emailmarketing embed epilepsy explorer fail firefox flash font fonts form format free frontpage google griefers hackers hitcounter html ide ie7 ie8 iframe image images input internet internetexplorer iphone javascript jpeg layout list login macbook maps marketshare missing mozilla mp3 multimedia navigationbars news object opacity opera perl player pnginie6 position problem scroll seo shopping strings studio swf swf. tables tag templates theme timecolor tips titletags translation url urlseparatedwords validation visual visualization w3c web webdevelopment webform website windows7 word wordpress xhtml xml xsl youtube





