I am creating a web site that needs a few blocks of text and images, located next to each other. But I also want them to be focused. I use the set size for each of these elements, so if someone changes the screen size, I want my page continues to change the number of shared next to each other. I used to use float: left; for this, but it will not work, because I want my page has centered to the middle.
so that it looks like this:
________ |1 2 3 4| | 5 6 | |_______|
but it will look like when you change the screen size:
______ |1 2 3| |4 5 6| |_____|
and if the size would be:
___________ |1 2 3 4 5 | | 6 | |__________|
currently css looks like this:
div.child{ width:23%; float:left; height:600px; padding:0px; min-width:200px; max-width:230px; overflow:hidden; text-align:center; border-style:solid; border-width:5px; overflow:visible; display:inline-block; }
and
div.parrent{ padding:0px; border-style:solid; border-top-style:solid; border-width:5px; overflow:hidden; text-align:center; }
Does anyone have any tips?
source share