Jump to content

div layout


Stephen68

Recommended Posts

Hello all!

 

I'm using PHP to query some information from a DB. I then wanted to loop through the results and have them display

3 wide and however many down I need. I wanted to try and do this with CSS so I made this container code I guess it would

be called.

 

#item_container {
position:relative;
width:158px;
height:193px;
z-index:2;
}

 

But I'm not sure how to get them to go side by side, if I use absolute they just all stack on top of each other. and Relative

just list one under the other straight down the page. Am I missing something or do I have to figure out how to put a location

value in there?

 

Any help would be great!

Thanks!

Stephen

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.