sage icon indicating copy to clipboard operation
sage copied to clipboard

.row margin-left: -20px; ???

Open expertpixels opened this issue 14 years ago • 2 comments

Hey all,

Ive had a few people insist my projects are not centered / aligned correctly, after checking i think the are correct lol.. i should of picked up on this earlier but didn't :(

What is the point of:

.row { margin-left: -20px; }

As the main content / container is within the .row class.. trying to align navbars / breadcrumbs & other sections outside of the container is getting tricky ?

I am just hoping someone can explain why there is a -20px margin, maybe i am not getting something here but would it not make more sense to use padding instead ?

Regards, Darren

expertpixels avatar Jul 14 '12 03:07 expertpixels

that style is coming from bootstrap

see http://twitter.github.com/bootstrap/scaffolding.html on how to properly build grids

retlehs avatar Jul 14 '12 13:07 retlehs

Cheers Ben, sorry i know it's a simple little thing, but is causing some issues mainly for designs using a #content background, it really stands out when the #content & #body bg's are different.. will look into it further.

Regards, Darren

expertpixels avatar Jul 15 '12 01:07 expertpixels