/    Sign up×
Community /Pin to ProfileBookmark

Horizontal Tabbed Menu: Unexpected Border Space n IE

What’s up with the annoying little space on the left border of the selected tab that’s making it appear ‘disconnected???’

[code]
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″ />
<title>Yep</title>
<style type=”text/css”>
* {
margin:0;
padding:0;
font-family:tahoma;
font-size:11px;
}
#navigation_options_container {
list-style:none;
border-bottom:solid 1px rgb(40, 40, 80);
margin-top:12px;
}
#navigation_options_container li {
border-top:solid rgb(40, 40, 80) 1px;
border-right:solid rgb(40, 40, 80) 1px;
border-left:solid rgb(40, 40, 80) 1px;
display:inline;
font-weight:bold;
margin-left:4px;
}
.selected_li {
border-bottom:solid white 1px;
}
#navigation_options_container a {
padding:0 8px;
text-decoration:none;
text-align:center;
}
.selected_navigation_option {
color:rgb(40, 40, 80);
background:white;
}
.clickable_navigation_option {
color:white;
background:rgb(40, 40, 80);
}
.clickable_navigation_option:hover {
background:white;
color:rgb(40, 40, 80);
}
</style>
</head>
<body>
<ul id=”navigation_options_container”
><li><a class=”clickable_navigation_option” href=”#”>One</a></li
><li><a class=”clickable_navigation_option” href=”#”>Two</a></li
><li class=”selected_li”><a class=”selected_navigation_option”>Three</a></li
><li><a class=” clickable_navigation_option” href=”#”>Four</a></li
><li><a class=”clickable_navigation_option” href=”#”>Five</a></li
></ul>
</body>
</html>
[/code]

to post a comment
CSS

6 Comments(s)

Copy linkTweet thisAlerts:
@KDLASep 06.2007 — I don't see a problem (Fx 2, IE 6).

KDLA
Copy linkTweet thisAlerts:
@bubbisthedogauthorSep 06.2007 — Thanks for the response, K.

It's fine in Firefox, but I can see in IE6 and IE7 where what seems to be a pixel is missing from from the lower left corner of the 'Three' tab. If you compare between Firefox and IE you should see what I'm talking about. I've tested with ClearType turned on and off and the problem is still there.
Copy linkTweet thisAlerts:
@KDLASep 06.2007 — Oh, I see it now (good grief, you have to squint to see it!)

It could be attributable to an IE padding or margin bug for inline elements. I suggest you float: left the <li> instead of display: inline.

See this article for info.: http://www.maxdesign.com.au/presentation/inline/
Copy linkTweet thisAlerts:
@bubbisthedogauthorSep 06.2007 — Oh, I see it now (good grief, you have to squint to see it!)
[/QUOTE]

LOL ? At 800x600 it's pretty noticeable, I think. I tried an alternate float approach, and with some finagling could 'fill in' the pixel, but couldn't get a consistent result in both IE and Firefox. Seems like I tried [B]everything[/B].

FYI: I do not want specified-length menu tabs, nor do I want a specified-length or -height for the container around the menu. I want it to be as dynamic as possible in case the tab names change, other stuff is added above the tabs (thus changing the height), etc. I thought I had something very promising and simple here, and IE --as usual-- screws everything up. [B]!#@*[/B]
Copy linkTweet thisAlerts:
@KDLASep 06.2007 — Well, I could be wrong about the bug -- there are hacks born every day. I've never bothered with using them. They're sort of like using Cliff Notes for a test, rather than reading the real book. :p

KDLA
Copy linkTweet thisAlerts:
@bubbisthedogauthorSep 06.2007 — I hear ya. Well, thanks for the suggestions. I think I'm just going to make the border lighter so it's less noticeable. :o :rolleyes:
×

Success!

Help @bubbisthedog spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...