j.silver Posted December 11, 2016 Share Posted December 11, 2016 Dear all, Since bootstrap has container and container-fluid classes, does a heavy lifting, and is easy to use, I am inclined to think that css's media query has no advantage. I'd appreciate sharing any opposite opinion that sees usefulness/advantage in media queries. Link to comment Share on other sites More sharing options...
dsonesuk Posted December 11, 2016 Share Posted December 11, 2016 Media queries are used in bootstrap to change container class, as well as other classes width depending on device size. Link to comment Share on other sites More sharing options...
j.silver Posted December 11, 2016 Author Share Posted December 11, 2016 That is true. I am trying to compare bootstrap vs css/media queries only in developing a responsive website. Do you see cases where a developer would tend not to use bootstrap (if one knows bootstrap) in preference to using css/media queries only in coding a responsive site? Link to comment Share on other sites More sharing options...
Ingolme Posted December 12, 2016 Share Posted December 12, 2016 One would choose to not use bootstrap if they want the same layout on 50 different pages and have the flexibility of altering the layout when necessary. Link to comment Share on other sites More sharing options...
dsonesuk Posted December 12, 2016 Share Posted December 12, 2016 Depends on situation for instance if it is template page, then it would require adjusting or copying and adjusting one template page only. Link to comment Share on other sites More sharing options...
shaili_shah Posted May 3, 2019 Share Posted May 3, 2019 Using media queries are a popular technique for delivering a tailored style sheet (responsive web design) to desktops, laptops, tablets, and mobile phones. You can also use media queries to specify that certain styles are only for printed documents or for screen readers (mediatype: print, screen, or speech). In addition to media types, there are also media features. Media features provide more specific details to media queries, by allowing to test for a specific feature of the user agent or display device. For example, you can apply styles to only those screens that are greater, or smaller, than a certain width. for more information refer below link: https://www.w3schools.com/cssref/css3_pr_mediaquery.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now