@Kor I agree completely but I am just starting to learn to dead with the DIVs instead of tables and in IE it's just a mess while Opera, Firefox, Safari, Crome, Etc etc users view the website fine. This is a temp fix I really don't want to do but it's what it is now.
@Kor I agree completely but I am just starting to learn to dead with the DIVs instead of tables and in IE it's just a mess while Opera, Firefox, Safari, Crome, Etc etc users view the website fine. This is a temp fix I really don't want to do but it's what it is now.
OK. Sounds logical As long as you intend to find some time to make a cross browser site
You shouldn't. A coder should work with the "client's material". This is the browsers' market, and our sites should be seen by all the people regardless their browsers. We are coding for the people, not for the browsers' vendors, remember!
With a certain exception: the only stupid browser we should hate is IE6. Yes Sir! Let's persuade the users to get rid of it, I agree.
Well in that case take a look at the website I am creating. Remember I am learning DIV's, I've been a tables guy for awhile now so making the transition is kind of a pain in the .
The errors are mainly from the Random Testimonial Generator that I found, I made some changes to it so make it work for me now.
The main problem I am coming across is the CSS DIV tags, they are being sassy and not going to the places I want them to (in IE), lol. Seriously though, it's a learning process and that's why I am starting with my own site that people won't see until it's ready.
You didn't provide a link to your site so I don't really know the nature of your errors, but IE can be very finicky about certain style properties depending upon the !DOCTYPE specified (or the absence on one). You might try experimenting with that.
I must tell you that the document looks OK in IE8, so that if you need a temporary redirection, do it for IE7 and below (as in IE6 everything is a mess - no wonder, IE6 is a mess by definition, so don't bother to code for it - just leave the redirect later for IE6 only)
Now, back to your page. IE7 is right, after all . You have used an XHTML Doctype, but you have also used a deprecated attribute for your divs: align="center". In fact, align is an HTML attribute used only for table's elements (tbody, tr, td, etc), but not for DIVs.
To center elements on the document you may use CSS. Either text-align (if the elements to be centered are inline elements - like textnodes, span, links, images...) or left and right margin:auto for block-level elements (divs). Here's an article about centering: http://haslayout.net/css-tuts/Horizontal-Centering
You may google for more ...
Bookmarks