Jump to content


Photo
- - - - -

Adding Padding Between All Section Containers


Best Answer Rob , 14 December 2012 - 06:09 AM

Right. As I pointed out, your CSS has no margins set.  A margin will be outside the border, thus it will separate the boxed, bordered sections by 10px each, effectively creating a 20px gap between the two. If you need the total gap to be 10px, make it

 

 
margin:5px;

If you want to get more specific, you can do

 

 
margin-bottom:10px;

See the image I did.

 

Go to the full post


This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1 crash

crash

    Newbie

  • Members
  • 9 posts

Posted 14 December 2012 - 04:30 AM

Hello Again,
 
I'm sure this is one of those " I hate newb" questions - but how can I add say 10px padding between all section containers?
I narrowed it down to

.section .container

padding-bottom via chrome, but applying what I think should be applied in the Custom Code does nothing at all. 
 
I have (purposefully) applied a border around each container 
 

Please Login or Register to see this Hidden Content

 

and now want 10px between the borders.

 

TIA

CRaSH



#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts

Posted 14 December 2012 - 04:53 AM

Add to your code:

Please Login or Register to see this Hidden Content

That should do it.



#3 crash

crash

    Newbie

  • Members
  • 9 posts

Posted 14 December 2012 - 05:11 AM

Hello Rob,

perhaps I didn't explain myself very well. I've attached an image of what I currently have and what I want to achieve.

 

Thanks

CRaSH

 

 

Attached Files



#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts

Posted 14 December 2012 - 06:09 AM   Best Answer

Right. As I pointed out, your CSS has no margins set.  A margin will be outside the border, thus it will separate the boxed, bordered sections by 10px each, effectively creating a 20px gap between the two. If you need the total gap to be 10px, make it

 

Please Login or Register to see this Hidden Content

If you want to get more specific, you can do

 

Please Login or Register to see this Hidden Content

See the image I did.

 

Attached Files



#5 crash

crash

    Newbie

  • Members
  • 9 posts

Posted 14 December 2012 - 07:13 AM

Rob, you're a legend, mate!

(appreciate the quick lesson, too)

 

CRaSH