Jump to content

Recommended Posts

Hi I have an outer div and inside I want to have 2 rows of 3 div's. I have made 2 float left and the third (one on the end) clear.

 

How can I have rows of 3 div's each?

 

TIA

 

Desmond.

 

 

http://whatadrama.desmond-otoole.co.uk/MyAdmin/config.php

Edited by otuatail
Link to comment
https://forums.phpfreaks.com/topic/303586-simple-css-float/
Share on other sites

float:clear is not a thing.

 

Float all the DIVs left and give the first of each row, or nth-child(3n+1), a clear:left (which is a thing) so that it won't position itself to the right of any other boxes.

 

And beware the vertical overflow.

Link to comment
https://forums.phpfreaks.com/topic/303586-simple-css-float/#findComment-1544843
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.