3 col layout to responsive?
Permalink
I have added a 3 col layout but it to reduce to single columns for phone browsers.
Can I achieve this with media queries and what would I say?
Can I achieve this with media queries and what would I say?
So I need to wrap a span tag around each column?
I have used the Add Layout function and made 3 cols but the function has written it own class for each column.
I have tried to use the generated class for each column in a media query with width at 100% but they won't collapse. I just get 3 super skinny columns with a lot of padding.
I have used the Add Layout function and made 3 cols but the function has written it own class for each column.
I have tried to use the generated class for each column in a media query with width at 100% but they won't collapse. I just get 3 super skinny columns with a lot of padding.
You need to have the same class for all three col's, that way, when you set the width attribute to 100% in @media it makes them collapse. Here, check out this page:
http://www.responsivegridsystem.com/...
study/grab the code from here, it'll make sense to you!
http://www.responsivegridsystem.com/...
study/grab the code from here, it'll make sense to you!
Thanks. That's an awesome resource.
I have been looking at moving to the Skeleton framework.
I have been looking at moving to the Skeleton framework.
Yes, @media queries would work. You would need something like so:
Hope this helps :)