jasonc Posted May 23, 2010 Share Posted May 23, 2010 divs are not side by side in IE8 Vista but shows ok in IE8 XP and firefox XP. they show one under the other with a 50% gap on the right hand side. what should i change to my code to get them side by side. <div id="footer2010"> <div class="copyright2010">Copyright © 2009-<?=date("Y");?></div> <div class="copyright2010">disclaimer</div> <div class="clear"></div> </div> .copyright2010 { float: left; width: 50%; text-align: center; background-color:#4F4F4F; color: #FFFFFF; font-size:8pt; line-height: 30px; } .footer2010 { margin:0 auto; } .clear { height: 0; font-size: 1px; margin: 0; padding: 0; line-height: 0; clear: both; } Quote Link to comment Share on other sites More sharing options...
andrewgauger Posted May 24, 2010 Share Posted May 24, 2010 can't have two divs next to each other floating left. You should put those two divs in a div that floats left but have them side by side( one float left and the other float right would work). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.