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
https://forums.phpfreaks.com/topic/215541-div-layout/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.