Question:
how do i make div tags work in internet explorer as they do in fire fox?
cocoa_tiger
2008-05-20 16:18:57 UTC
my web site looks great in fire fox but then in ie the div tags are all messed up. how do i override the ie settings and make the div tags work as they show up in fire fox?

http://goddessryoko.3000mb.com

look in ie and ff and you will know what i mean.
please someone help, i want this to work for potential employers.
Seven answers:
Tikken
2008-05-20 16:51:04 UTC
There is nothing wrong with using absolute positioning, actualley it has an advantage above many other ways of layouting pages.



However as you are using position now, it dosn't seam to serve any purpose. You are saying "position: absolute;" without saying where you would like it positioned.



You need to understand how positioning works, if you are trying to position something "absolutely" relatively to the edges of the containing element, rather then the root element; then you will need to apply "position:relative" to the containing element, and "position: absolute;" to the element you want positioned.





To fix your problem with your Navigation division, you will need to apply "position:relative" to its containing element (in this case td), and apply "left:0;" right after "position:absolute;"





However your website is invalid, and dosn't include the required lang attribute, nor a proper doctype see: http://www.brugbart.com/?AID=4 - The Importance of Doctypes



You are also incorrectly using tables for layouts, it only makes things worse, and more confusing. Also you shouldn't be typing attributes and properties in upper-case, since this may make things even more confusing. Neither should you mix deprecated presentational attributes, with CSS properties.

See also: http://www.w3.org/TR/html4/conform.html#Deprecated



You may also want to consider writing the styles in a External StyleSheet, this will make things a lot easier, and clean up your code. See: http://www.brugbart.com/?AID=6#Sec3 - External StyleSheets





You are also using deprecated tags such as:
, and tags that dosn't even exist, such as: , , and



The below will get you started on modern css based layouts:

http://www.brugbart.com/?TID=1 - An Introduction to HTML

http://www.brugbart.com/?AID=6 - An Introduction to CSS



http://www.brugbart.com/?TID=7 - Position Based Layouts

http://www.brugbart.com/?TID=8 - Float Based Layouts



If you have a specific problem with IE, then you can use Conditional Comments to apply IE specific Styles. However the need has differed when IE7 went live, and many webdesigners, are already ditching support for IE6, leaving such users between the choice to upgrade their broken browser, or use one of the alternatives.



I only use Conditional Comments to inform people how to upgrade their browser to IE7+ or try one of the alternatives. See also: http://msdn.microsoft.com/en-us/library/ms537512.aspx





I've recreated your website, and made it fully standard compliant, and search engine friendly (by placing the content first). When your site is viewed by either SearchEngines, text based browsers, or screenreaders, the content will be placed first for accessibility reasons; and to make search engines index your actual content as Descriptions, instead of using content of alt tags, or even your navigation menu links.



Another way to circumvent the problem would be by use of meta tags, See: http://www.brugbart.com/?AID=81#Sec5



Simply copy the below into your index.html file on your server:

-----StartCode-----









Linda Williams: Main













Welcome



This is an online portfolio of my projects.



Thank you for visiting my web page. This is an online portfolio of my projects.



Currently this site is being recreated, however the pages are still up for viewing. Please click on the



Web Pages link to the left to browse my web development section of my portfolio.



Currently there are issues with Internet Explorer. Please be patient as they are being investigated and



resolved. Updates will follow soon. PHP implementation coming soon.



THANK YOU FOR VISITING!



This site currently only functions properly in Fire Fox.

Best if viewed in 1024x768









Last updated: May 18, 2008 - ©Copyright 2008 Linda W













-----CodeEnd-----



The above is somewhat float based, since when using a background on basement, it becomes quite complex to allow the content to be the final factor determining the height, i declared a min-height to tell the browser, that the Basement division should minimum be of this predetermined height, unless the content requires it to be longer.



Also note how i placed the logo last, inside the basement division, and then positioned it absolutely, so when viewed in normal browsers, it would apear at the top.



This is also a trick to place irrelevant stuff last, so that ScreenReaders, and SearchEngines don't confuse it with the content. The alt tag ensures that the image makes sense, and search engines also index the words in these, so its allways a good idea to include alt tags on images.



When dealing with float based layouts, with colored backgrounds, we need to clear our floats before the containing division will expand with its content, i simply applied it to the Copyright statement at the bottom.



I'm not saying its impossible using a fully position based layout when having a basement with a color, i actually demonstrated one way to do this for IE7, Firefox, and Safari in my Equal Height Columns Technique at http://www.brugbart.com/Examples/BlueBodens_Equal-height_Columns_Technique.html



If the columns dosn't need to be of equal height, but has a min-height, then try my first BorderTechnique at: http://www.brugbart.dk/bordertechnique.html
2016-03-13 02:35:49 UTC
Firefox seems to use a bit more ram. And on my computer loads up a little slower. After that it's all fun and games. Firefox is way better. The program might load a bit slower, but the web pages load faster, and seem to load more smoothly once it gets booted up. Sometimes text takes forever to render on IE. On Firefox I can start reading right away while everything loads. But then again you can customize it, and tweak it if you need better performance to.
davis
2017-02-17 19:59:24 UTC
1
Nisovin
2008-05-20 16:34:28 UTC
You are using absolute positioning, which is in general very bad style. Your site layout is simple enough to do without absolute positioning. Look up some tutorials on CSS table-less design and the CSS float style to see how to nest your divs properly so they show up the way you want them to. Another thing is you have no doctype, which could easily cause many problems with cross-browser compatibility. You should run your website through the validator to see the errors you have.
2008-05-20 16:58:27 UTC
You can use conditional comments or tricks like the Tan hack (then you'll want the Holly hack for IE5/Mac), to write specific styles for specific browsers. You can take one of two attitudes to this:



That the majority of browsers currently in use are IE (but that means at least 4 different sets of bugs to support, unless you want to go back to 4 or 3), so you'll support them,



or



That the standard is W3C, so you'll write to that and if people insist on using non-compliant browsers (read:Microsoft), they'll see less than an optimum rendering of your site.



Some of us do it one way, some do it the other way, and some try to make the site work on all browsers. See http://www.positioniseverything.net - one of the sites devoted to the problem. (I just wasted about 4 hours today making my compliant site look half-decent in IE 6. Tomorrow I'll tackle 5.5 and 5.0. That's as far back as I want to go, but I get paid for this, so I go as far back as the boss wants.)
Krishnam R
2008-05-20 16:45:44 UTC
tags and other html syntax sometime are taken seriously by some browsers and some browsers ignore this.



Anyway, to make your home page look better put

align="left" for below tag that is above
tag ...see below...






style="BORDER-RIGHT: #00b3ee 1px solid; BORDER-TOP: #00b3ee 1px solid; BORDER-LEFT: #00b3ee 1px solid; BORDER-BOTTOM: #00b3ee 1px solid; BACKGROUND-COLOR: white"

vAlign=top align="left" width=160>

2008-05-21 01:31:32 UTC
Your major problem is that you are missing a document type ( http://www.w3.org/QA/2002/04/valid-dtd-list.html ) which puts all browsers into Quirks Mode. FF does a better job in Quirks Mode than IE as it is closer to being a CSS2 compliant browser than any other browser.



The divs are not necessarily causing the problem in IE until you put in a proper doc type to take it out of Quirks Mode.



You also have lots of html code errors ( http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fgoddessryoko.3000mb.com%2F ). Tidy is reporting the following errors that should be fixed:



Result: 4 errors / 33 warnings



line 1 column 1 - Warning: missing declaration

line 71 column 2 - Error: is not recognized!

line 71 column 2 - Warning: discarding unexpected

line 71 column 26 - Warning: discarding unexpected


line 70 column 2 - Warning: missing


line 91 column 2 - Warning: discarding unexpected


line 94 column 2 - Error: is not recognized!

line 94 column 2 - Warning: discarding unexpected

line 94 column 26 - Warning: discarding unexpected


line 99 column 2 - Error: is not recognized!

line 99 column 2 - Warning: discarding unexpected

line 108 column 9 - Warning: missing before

line 108 column 59 - Warning: discarding unexpected

line 108 column 155 - Warning: discarding unexpected

line 111 column 2 - Warning: discarding unexpected


line 112 column 2 - Warning: inserting implicit



line 133 column 10 - Error: is not recognized!

line 133 column 10 - Warning: discarding unexpected

line 135 column 11 - Warning: discarding unexpected


line 57 column 1 - Warning: content occurs after end of body

line 163 column 1 - Warning: discarding unexpected

line 57 column 1 - Warning: content occurs after end of body

line 163 column 10 - Warning: discarding unexpected

line 57 column 1 - Warning: content occurs after end of body

line 163 column 19 - Warning: discarding unexpected

line 57 column 1 - Warning: content occurs after end of body

line 163 column 30 - Warning: discarding unexpected

line 57 column 1 - Warning: content occurs after end of body

line 163 column 41 - Warning: discarding unexpected



line 57 column 1 - Warning: content occurs after end of body

line 163 column 47 - Warning: discarding unexpected

line 57 column 1 - Warning: content occurs after end of body

line 163 column 54 - Warning: discarding unexpected

line 57 column 1 - Warning: content occurs after end of body

line 163 column 62 - Warning: discarding unexpected

line 57 column 1 - Warning: content occurs after end of body

line 112 column 2 - Warning: trimming empty



Info: Document content looks like HTML 4.01 Transitional

Info: No system identifier in emitted doctype



Definitely lose the absolute positioning as your page doesn't need it and it does not allow for a fluid page design.



Ron



This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...