954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help Please -- I need to add a space between a top and bottom div

Hello. Here is my website: http://www.keavon.com/ . You can view the source for code. What I need to do is lower the 'Newest Game' div down (with white/background color, not the gray) away from the top 'Who Are We?' div. Help would be appropriated! Thanks!

keavon
Light Poster
30 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

Add to the css for the upper div

margin-bottom:1em;


(or whatever looks good)
or add to the css in the lower div

margin-top:1em;


Or both. That should put some white space between them.

Dandello
Posting Whiz in Training
263 posts since May 2010
Reputation Points: 28
Solved Threads: 23
 

Ok, thanks!
So do I add that as

.spacer {margin-top:1em;}


and then assign that with a class or do I add that to the div's assignment like by adding this:

#newest-game {width:210px; float:left; height:100%; <strong>margin-top:1em;</strong>}


?
Thanks! (I'll try both now)

keavon
Light Poster
30 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

Nevermind, I got it, it's the second option: adding it to the div definer

keavon
Light Poster
30 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: