![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 | |
|
New Coder ![]() Join Date: Apr 2009
Location: Newport Beach, California
Posts: 56
Thanks: 6
Thanked 0 Times in 0 Posts
![]() |
CSS Tabbed Menu quirk
Hi.
Just created CSS-based tabbed menu. IE displays with no fine black line between tabs and 2px bottom border, but FF and Seamonkey do (display a thin black line between tabs and 2px bottom border). Could some kind soul pls tell me how to ELIMINATE this this black line that is appearing in FF and Seamoney? Here be the page: http://radified.com/index.rad The menu is centered at the very top (can't miss it). Here be the CSS: Quote:
http://24ways.org/2005/centered-tabs-with-css Last edited by PonchoX; 04-12-2009 at 03:17 AM.. |
|
|
|
|
|
|
PM User | #2 |
|
Master Coder ![]() ![]() Join Date: Dec 2006
Location: Alaska
Posts: 5,227
Thanks: 11
Thanked 776 Times in 767 Posts
![]() ![]() |
Hello PonchX,
What happens in other browsers when you give the ul and li a height? Like this - Code:
/* CSS-based Tabbed Menu */
#navigation ul, #navigation ul li {
list-style: none;
margin: 1em 0 0 0;
padding: 0;
height: 19px;
}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, then hack it for IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad |
|
|
|
|
|
PM User | #4 |
|
Master Coder ![]() ![]() Join Date: Dec 2006
Location: Alaska
Posts: 5,227
Thanks: 11
Thanked 776 Times in 767 Posts
![]() ![]() |
Could get rid of an extra div like this -
markup Code:
<p><a title="Links to News archives dating back to the site's beginning in June, 2000" href="http://radified.com/Archives/">News Archives</a></p>
<p><a href="http://radified.com/splash.rad" title="Splash page (7-second timer kicks you back here)">Splash
Page</a></p>
</div>
<div style="height: 4587px;" id="mainContent" class="column">
<!-- CSS Tabs -->
<ul id="navigation">
<li><a href="http://radified.com/index.rad"><span>Home</span></a></li>
<li><a href="http://radified.com/cgi-bin/yabb2/YaBB.pl"><span>Forums</span></a></li>
<li><a href="http://mt4.radified.com/"><span>Blog</span></a></li>
<li><a href="http://radified.com/About/"><span>About</span></a></li>
<li class="last"><a href="http://radified.com/no_spam/contact.htm"><span>Contact</span></a></li>
</ul>
<p class="adlinks">
<script type="text/javascript"><!--
google_ad_client = "pub-144321553056470
Code:
/* CSS-based Tabbed Menu */
ul#navigation, #navigation li {
height: 19px;
list-style: none;
margin: 1em 0 0 0;
padding: 0;
}
ul#navigation {
text-align: center;
border-bottom: 2px #699 solid;
}
#navigation li {
display: inline;
margin-right: .75em;
}
#navigation li.last {
margin-right: 0;
}
#navigation li a {
padding: 1px 1em;
}
#navigation li a {
background: #699 100% 0;
color: black;
padding: 0;
text-decoration: none;
border-bottom: 1px #699 solid
}
#navigation li a span {
background: #699;
padding: 1px 1em;
font-weight: bold;
}
#navigation li a:hover span {
color: #000;
text-decoration: none;
background-color:#6CC;
font-weight: bold;
}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, then hack it for IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad |
|
|
|
| Users who have thanked Excavator for this post: | PonchoX (04-12-2009) |
|
|
PM User | #5 |
|
New Coder ![]() Join Date: Apr 2009
Location: Newport Beach, California
Posts: 56
Thanks: 6
Thanked 0 Times in 0 Posts
![]() |
You are a wizard!
I would've never thought of that. I was looking at borders and padding. I still see the black line in Dreamweaver's "Live view" .. which I believe uses the web-kit rendering engine .. same as Google chome (which I don't have installed) and Safari (which I also don't have installed) .. tho I'm not concerned about those ancillary browsers. How/why did you think of that solution and how did you arrive at 19px? (I'm trying to learn.) Last edited by PonchoX; 04-12-2009 at 04:29 AM.. |
|
|
|
|
|
PM User | #6 |
|
New Coder ![]() Join Date: Apr 2009
Location: Newport Beach, California
Posts: 56
Thanks: 6
Thanked 0 Times in 0 Posts
![]() |
Just read your last post on div elim. You are obviously a true CSS guru. CSS is not as simple as one might be inclined to think at the outset .. so I'm sure you must have tons of experience.
|
|
|
|
|
|
PM User | #7 | |
|
Master Coder ![]() ![]() Join Date: Dec 2006
Location: Alaska
Posts: 5,227
Thanks: 11
Thanked 776 Times in 767 Posts
![]() ![]() |
Quote:
Figured to try a height when I put background:#f00; on the ul and it enclosed the li and the bottom-border: 2px solid #699; Got 19px by playing with it a while.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, then hack it for IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad |
|
|
|
|
|
|
PM User | #8 |
|
New Coder ![]() Join Date: Apr 2009
Location: Newport Beach, California
Posts: 56
Thanks: 6
Thanked 0 Times in 0 Posts
![]() |
I see you're in Alaska. I read Into the Wild .. (and saw the movie). Loved that book. Tho I hear most Alaskans think he was foolish.
Would love to have your CSS skills. |
|
|
|
|
|
PM User | #9 |
|
Master Coder ![]() ![]() Join Date: Dec 2006
Location: Alaska
Posts: 5,227
Thanks: 11
Thanked 776 Times in 767 Posts
![]() ![]() |
See a link about divitis - http://www.tyssendesign.com.au/artic...at-is-divitis/
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, then hack it for IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad |
|
|
|
|
|
PM User | #10 |
|
New Coder ![]() Join Date: Apr 2009
Location: Newport Beach, California
Posts: 56
Thanks: 6
Thanked 0 Times in 0 Posts
![]() |
Why did you pick
style="height: 4587px;I don't understand how you got that number. Will that force my page length longer than necessary? Cuz it fluctuates. |
|
|
|
|
|
PM User | #11 |
|
Master Coder ![]() ![]() Join Date: Dec 2006
Location: Alaska
Posts: 5,227
Thanks: 11
Thanked 776 Times in 767 Posts
![]() ![]() |
That's all you. I changed the stuff in red, nothing else.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, then hack it for IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad |
|
|
|
|
|
PM User | #12 |
|
New Coder ![]() Join Date: Apr 2009
Location: Newport Beach, California
Posts: 56
Thanks: 6
Thanked 0 Times in 0 Posts
![]() |
Interesting. Must be inserted by the matching_columns javascript, cuz it's not in my source html.
I incorporated your code to eliminate a div. Thanks. I'm impressed how quickly you were able to crank out the mod .. made it look easy. |
|
|
|
|
|
PM User | #13 | |
|
Master Coder ![]() ![]() Join Date: Dec 2006
Location: Alaska
Posts: 5,227
Thanks: 11
Thanked 776 Times in 767 Posts
![]() ![]() |
Quote:
My mistake - I hope you didn't waste too much time looking for that.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, then hack it for IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|