Jump to content

Float:left and display:inline confusion


departedmind

Recommended Posts

Hi guyz,

 

I am having a problem displaying images horizontally (well dont have the code now) so giving example

 

main div's width is 1000px and is centered and left navigation is 200px wide and is floated left and i used display inline also and on remaining 800px i kept thumbnails images whose size varies and I kept those thumbnails in UL and LI

 

so it is like this (rough one)

 

#maindiv { width:1000px; margin:0 auto;}
#leftdiv { width: 200px; float:left; display:inline; }

#thumbDiv { width:800px;}
#thumbDiv ul li { float:left; display: inline;}

 

I want to display the thumbnails side by side, i tried keeping float and display in div, ul and li but it does not work 2nd thumbnail always comes down of the first one

 

can anyone guide me

 

thanks....

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.