Bootstrap Responsive Sizes
-
Hi Kyle,
Just wondering if you could clear up some confusion for me. I am using Bootstrap 3 for my theme, and trying to set the proper breakpoints. Initially I thought this was as simple as taking my defined Bootstrap breakpoints and plugging them into the right function.
Upon watching the behaviour of PictureFill.WP I noticed this line:
<span data-src="https://zachatkinson.com/wp-content/uploads/2014/06/how-to-use-scrapebox.jpg" data-width="1920" data-height="1080" data-media="(min-width: 1940px)" class="picturefill-wp-source post-thumbnail"></span>
‘Here I see 20 pixels being added to my breakpoint sizes in data-media=”min-width: 1940px). I assume this is to properly centre the image with 10 pixel margins on both sides. Here are my Bootstrap 3 breakpoints:
- Extra Small – 480px
- Small – 768px
- Medium – 992px
- Large – 1200px
- Post Thumbnail – 1080px
Now, Initially I had set the breakpoints to the same values as this, but I’m realizing this means the min-width test with the extra 20 pixels is going to FUBAR things – so should I be subtracting 20 pixels from each of my responsive sizes to get the proper breakpoint including wrapper space?
I’m assuming this is a yes, but some confirmation would be nice. If we can confirm the proper breakpoint values for Bootstrap 3 they should be added to the documentation to prevent the trial/error and headaches I’ve been facing trying to get a highly supported framework to get along nicely.
Long story short – if my theme breakpoints are :
- Extra Small – 480px
- Small – 768px
- Medium – 992px
- Large – 1200px
What should my picturefill breakpoints be?
Once we settle this and add it to the documentation I am sure you will see a great jump in users.
- The topic ‘Bootstrap Responsive Sizes’ is closed to new replies.