aNewStart847
aNewStart847

Reputation: 1076

Making a responsive grid

Okay, I'm trying to make a responsive grid, but it is a bit more complicated than that. It has to be able to:

Here's a starter: http://codepen.io/loredonut/pen/KJDAE

A CSS-only solution would be great. Thanks for your help!

Upvotes: 1

Views: 1394

Answers (4)

Alp
Alp

Reputation: 29739

There are many grid frameworks that may fit your purpose:

There are also:

See this related question.

My personal favorite is Foundation by the way. It is very actively developed and is based on Compass/Sass.

Upvotes: 1

aNewStart847
aNewStart847

Reputation: 1076

I now used <img>s and made them responsive, here's a demo: http://codepen.io/loredonut/pen/FGneA

Upvotes: 1

frequent
frequent

Reputation: 28493

There is a lot of grids you can use.

Since it looks like you are going for mobile screens, too, have a look at

960 Grid
1140 Grid

Most of the grids will give you x number of responsive columns, which on smaller screen sizes collapse to 100% width.

Now if you really want to get fancy have a look at CSS-column-count and CSS-colum-gap - found here CSS tricks, (caniuse). Although you need some fallback for IE6-9, this should allow you to make colums with different row height - as in this fiddle.

Upvotes: 2

HasanAboShally
HasanAboShally

Reputation: 18675

Try using twitter bootstrap.. http://twitter.github.io/bootstrap/

and u can also combine it with isotope http://isotope.metafizzy.co/ and get MAGIC effect :)

this also could save u hours in integrating isotope with bootstrap: http://mpezzi.github.io/bootstrap_isotope/

Upvotes: 0

Related Questions