Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unpredictable css results

Status
Not open for further replies.

Sadruddin

Technical User
Nov 16, 2001
89
GB
Hi. Generally speaking, I expect css to work predictably, but on my site


when you go to the Trauma page, on some PCs (IE6) it works fine; there's a submenu below the top one, and text appears in the expected place.

On some PCs, though, the submenu continus on the top line to the right of the main menu, and text appears in either the right place or right over on the right hand side.

It's as though, intermittantly, they start where the previous line left off, rather than starting on the left.

Any ideas? Intermittent arrors really piss me off!

Ta. S
 
Because you are floating your level 1 menu items, you need to add "clear:left" to menu2 to fix this.

However, this might then cause content below menu 2 (unless it is all wrapped in a container with clear:left) to float up past menu 1. In this case, I'd recommend using the "clearfix" code found on the "Easy clearing" page of "Position is everything", and adding ' class="clearfix" ' to menu 1 (or to any container where you float items).

P.S. I'm really surprised you don't see this on all instances of IE 6.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Dan.

Thanks for the reply.

The PIS site's great - yet another new (tp me) resource!Their description of this workaround is a bit unclear, though. Working on it.

Steve

 
Sorry, mate, I'm not getting this.
Presumeably, I'm more of a newb than I thought.

If you look at the source of, say,
the parent is the <div> menu1, yes? Or would I make another parent? And if so, how.

Sorry. Hope this isn't too much to ask.

Thanks.

Sadru
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top