Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to position divs in nice little rows

Tags:

html

css

I would like to position 8 divs in the following way:

divs

Here is my JSfiddle which has all the div code: http://jsfiddle.net/XRTh5/

What I would like to do is make the div's behave the same way as on this website with it's icons" http://cyberdust.com/. See how when you re-size the page, the icons shrink and get smaller instead of not changing?

Thanks for the help. I would like to do this only using `div's and not using tables or any old technology like that.

like image 607
Micro Avatar asked Dec 14 '22 21:12

Micro


1 Answers

Strongly suggest you look at using a framework to accomplish this just as the reference website uses.

But in general it can be accomplished with css and the @media (min-width: 768px) {} which applies different css styles when the browser viewpoint/window is resized.

There are a couple but for your specific need they use bootstrap.js http://getbootstrap.com/

like image 150
Will B. Avatar answered Jan 15 '23 17:01

Will B.