Saved Bookmarks
| 1. |
Solve : Cross-browser trouble? |
|
Answer» Ack. The big problem of my time is STILL getting pages to work across browsers. div.nav { border-top-style: none; border-right-style: solid; border-left-style: none; border-right-color: black; My site in PROGRESS validates against transitional XHTML 1.0 and CSS standards. Great! BUT... guess which highly popular browser doesn't support the CSS "position" attribute? I dunno about IE 7, but IE 6 sure as *censored* doesn't! In FireFox, Netscape, and OPERA, I get my NAV bar to appear as normal. However, if I attempt to load the page in IE, it has the NAV bar in the correct position, but the content is below the NAV bar, and the NAV bar doesn't move with the page! Is there any way to make this work in all browsers, that is not deprecated by the W3C?? Or will I just have to write code to display a warning in IE only?position is understood by IE6. Different browsers interpret the box model slightly DIFFERENTLY however. Floats can be particularly troublesome. Cross-browser incompatibility is the main reason I still use tables for LAYOUT; most browsers do almost exactly the same thing with them. If position: fixed isn't working for you, try position: absolute (generally more efficient). position: relative is also useful, but generally only does what you expect it to, if you place it within a div that has position: absolute (not necessarily with any other style attributes SET). Mind blowing. If you want to get your head around CSS and the way support for it is broken on various browsers, you probably will want to spend a lot of time on >Stu Nicholls' site<. Personally I can't be bothered because tables do what I need when CSS lets me down. |
|