- This topic is empty.
-
AuthorPosts
-
May 13, 2014 at 2:53 am #169986
TheN00b
ParticipantHello
I am working with Bootstrap 3, and have come across a problem. Again I know my own way of achieving what I want, but I thought maybe there is a cleaner way that is already provided to me by Bootstrap, I looked at the Bootstrap Docs and could not see what I wanted, so I thought let me ask the Professionals over at CSS-Tricks :)
Here is the bottom section of the website I am working on. It is split into three by
md-col-4
and all is good so far. BUT I want some space between each square, I want it to be the width of the default padding that is applied to the Bootstrap Grid.My markup (standard Bootstrap markup) for that section is as follows:
<div> <!-- Example row of columns --> <div> <div> <h2>Heading</h2> Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. <a href="#">View details »</a> </div> <div> <h2>Heading</h2> Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. <a href="#">View details »</a> </div> <div> <h2>Heading</h2> Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. <a href="#">View details »</a> </div> </div> </div>
Knowing the above, are you aware of any way that Bootstrap allows for what I am after? If not, what is the cleanest way of acheiving the spacing between the three columns?
Any help would be greatly appreciated.
Thank You.
PS. I know that the column widths would have to shrink a bit if spacing is added, I’m OK with that.
May 13, 2014 at 3:17 am #169992Paulie_D
MemberDoesn’t bootstrap allow you to set your own gutters?
I thought that was in one of the settings you could apply when downloading?
May 13, 2014 at 3:23 am #169993Paulie_D
MemberHmmm…I see.
The issue is that TB uses padding for gutters and you have different bg colors for each section.
Don’t know if this will help
http://stackoverflow.com/questions/18071055/bootstrap-3-missing-gutters
May 13, 2014 at 5:40 am #170010TheN00b
ParticipantThanks Paulie, that did it for me. You may mark this as Solved too ^_^
March 2, 2015 at 5:51 am #197090html5beginners
Participantfound it in jsfiddle : http://jsfiddle.net/PFxUk/
This may help.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.