css3 - CSS on Site Navigation breaking across browsers (Updated) -
stackoverflow,
i've been trying troubleshoot navigation on website. (sequoiawaste.com) problem arises iphones , internet explorer 7. i've used display:table-cell;
css property keep tabs in single line. however, there seems 2 issues:
1) on mobile devices (iphones in particular, not ipads), row extends past blue background, , awkwardly hides search function of page.
2) on ie 7, disregards display:table-cell;
, orients links vertically, similar table-row
create.
to knowledge, there handful of properties defining #globalnav
in enhanced.css file cause issue.
something i've noticed display values vary depending on state - table, table-cell, block. changing of them (or of them same display) has made problem worse.
does have pointers on here? dont think exceedingly difficult problem, i'm hitting wall here.
thanks help, charlie
** update **
i started using float:left
, has been double edged sword - looks better, similar formatting i've had set each anchor specific width. now, when click on search bar, not dynamically resize anchors.
hrmm. tips?
try float: left
instead - has better cross-browser support. you'll need set widths of each item, , maybe few other properties make again.
edit: yes, using float: left
cause navigation elements stop resizing individually. may difficult without using browser's table layout algorithms. there several other approaches try:
- when animate search bar width, animate width of navigation items @ same time (but may slow)
- actually use table (this isn't great separation of markup , presentation, css limited)
- use conditional comments "trick" ie rendering table (see https://stackoverflow.com/a/4193681/106302) details (but doesn't address issues mobile devices)
depending on approach choose, still need provide special rules mobile devices. effect, may more practical go different design.
Comments
Post a Comment