I've recently redesigned my homepage but for some reason it wont display properly in FF3, it works fine in IE8, so I dont know what the problem is. Here is the page in question: http://www.gametryout.com/index2.php and relevent CSS code: #flashSlider { background: #666666; width: 491px; height: 274px; float: left; margin-left: 15px; } #newsBody { background: url(images_homepagenew/content.gif); width: 290px; height: 274px; float: right; margin-right: 15px; margin-bottom: 20px; padding-left: 10px; padding-right: 10px; } Code (markup): Despite having a left margin the flash slider seems to just stay stuck next to the left hand side of the page. The container that these two sit in is 845px wide so there is definately enough space for them to sit next to each other. Any help would be much appreacited.
Well I've removed the 'text-align: left' from tier 2 and nothing has changed. Intrestingly, setting IE8 to 'compatibility view' reproduces the same problem as firefox. what do I need to do to get it to work? thanks for all the help so far by the way
Just thought I'd mention that your site isn't sitting right in IE7 either. Consdering that less than 6% of the population has upgraded to IE8, and almost 50% is on FF... you should be working in firefox to get your code right. You might want to put the newsBody div before the Flash div in your HTML. Another thing to try (works in IE8 & FF) is using the display: table-cell CSS property. It acts like table coding used to. Won't work with IE7 or earlier though. Good luck
That worked great thanks (moving the newsBody div before the flashSlider one). Out of interest, why was that the problem? Surely it should work the way I had it before? Also, how can I get the flash applet to move away from the left edge of the container? I have a left margin but it doesnt seem to do anything.
Then you have more problems than just this because it DOES change. [/quote] Intrestingly, setting IE8 to 'compatibility view' reproduces the same problem as firefox.[/quote]IE is of no value when debugging a site. Always, always use a modern browser (anything but IE). Then we can hack IE to make it work. Right now, IE8 may be showing what you want. Firefox is showing what you wrote. You have one CSS error.
It only changed when I implemented what xira wrote, thats what fixed my problem, nothing to do with the text alignment. Which is? Lastly, I still havent managed to move the flash slider over despite it having a 15px margin