View Single Post
Old 07-16-2014, 03:38 AM  
The Hun
Confirmed User
 
The Hun's Avatar
 
Join Date: Jan 2001
Location: The Netherlands
Posts: 1,207
BTW, that's the immediate downside of Bootstrap 3. You put the design back in the HTML instead of HTML. It would have been easier to define a div with a class and then in the CSS could have a way to define it's characteristics. In a way you can, but that makes things very complicated:

In your CSS you can do this:
Code:
@media(max-width:500px){
  .thumb{
     width: 100%;
  }
}
@media(max-width:1024px){
  .thumb{
      width: 50%;
  }
}
That would do about the same, you'll get a different CSS set for every screen size that way. Basically this is what Bootstrap does as well.

Last edited by The Hun; 07-16-2014 at 03:48 AM..
The Hun is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote