grungefreak Posted January 12, 2009 Share Posted January 12, 2009 I have two images with their own div tags. I want to position them side by side but when I float one of them to the right, it does float to the right but falls down the page. I realise you may need to see some code but is it anything obvious? gf Quote Link to comment Share on other sites More sharing options...
Rushyo Posted January 12, 2009 Share Posted January 12, 2009 By default, div tags are block elements. Thus they always reside on their own line. Why do you need them in divs? Would a span not suffice? Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted January 13, 2009 Share Posted January 13, 2009 why are you enclosing the images within div tags. Simply float the actual images. The problem is obvious: your parent container is too small to contain both images side by side. Are you sure the images don't have an extra margin / padding? Quote Link to comment Share on other sites More sharing options...
haku Posted January 14, 2009 Share Posted January 14, 2009 Place the item floated to the right before the other item in your HTML. Quote Link to comment Share on other sites More sharing options...
grungefreak Posted January 14, 2009 Author Share Posted January 14, 2009 ok thanks. got it sorted. gf 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.