Ok, another site: http://www.jo-burg.com/template.htm In IE - everything looks fine In FF - the right hand side menu - where the weather bit is, appaears on the left. This is because i added "position:absolute" to the stylesheet. But without the absolute position, content was being cutoff from the end of the menu div. Anyway, take a look and see if you can help!! Thanks
Things don't look good in IE if you reduce the window size. Lose the {position: absolute;}, and add this; #wrapper { overflow: hidden; width: 780px; border: 1px solid black; margin: 0 auto; } Code (markup): cheers, gary
Thanks for your reply Ive removed the position absolute However, im not sure where to add this as i have no wrapper class?? THanks
Why yes, yes you do. </head> <body> [color=red]<div id="wrapper">[/color] <div id="main" style="clear:both"><img src="/Images/main.jpg" alt="" /><br/> Code (markup): cheers, gary
apparently, putting the doctype (eg, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> ) can also help as it tells the browser exactly what to expect. It the doctype isn't there, the browser goes into a "I'll do my best" mode, and as Fx is far stricter than IE... However, i could be wrong, i haven't tried this out myself...
See this ALA article. Which DTD? There is no good reason to use deprecated tags or attributes, so stick with 'strict' for all new documents. If you're dealing with an old doc and don't have the resources (time?) to rid it of obsolete markup, use transitional. cheers, gary
hmm after checking... i still get the same effect i had before where the text in the main contenbt would get cut off at the bottom of the menu. Check www.jo-burg.com and refresh a couple of times! i do have a transitional doctype listed
You need to add clear: both; to your #smallad css (that cures the cutoff). You may also need to add a height setting for the menu div (which holds the second google ads set). In a nutshell, its the divs containing your google ad stuff that is the problem, try the above, I am sure it will work. Good luck with your site.