HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
space in between my friends and comments
Post new topic   Reply to topic    HTML Help Forum Index -> MySpace
View previous topic :: View next topic  
Author Message
D1Doris



Joined: 28 Sep 2008
Posts: 17

PostPosted: Wed Oct 08, 2008 4:47 pm     space in between my friends and comments Reply with quote

I'd like to get a space in between my friends section and my comments. Right now they're both on a red background and my comments start right where my friends end, so it kinda looks like they're in the same box. I'd like to get a space in between the two.
The same goes for my about me section and my friends section.

Does anyone know how to do that?
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1417
Location: Biloxi, MS

PostPosted: Thu Oct 09, 2008 5:27 pm     Reply with quote

Posting the current code being used might get you some help faster.
D1Doris



Joined: 28 Sep 2008
Posts: 17

PostPosted: Sun Oct 12, 2008 1:38 pm     Reply with quote

I solved the problem by creating a 10px border at the top and the bottom.

This is the code I'm using:

table.friendSpace, table.friendSpace {border-width: 10px 0px; border-style: solid; border-color: black;}

That was fine until I changed my background to something other than black. If I put 'transparent' instead of 'black' the border doesn't show up at all. How do I make the border transparent?
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1417
Location: Biloxi, MS

PostPosted: Sun Oct 12, 2008 9:02 pm     Reply with quote

Transparent is not a property of "border". You just think you fixed your problem by putting in a 10px border. If you need right/left spacing, try padding: 0 10px; instead or experiment with values until you have it the way you want.

BTW, short method to write "border-width: 10px 0px; border-style: solid; border-color: black;" is: "border: 10px solid black;" (without quotes, of course). Named colors are not recommended as some named colors have the same hex value and browsers just give the same color for the different names.
D1Doris



Joined: 28 Sep 2008
Posts: 17

PostPosted: Wed Oct 15, 2008 5:42 pm     Reply with quote

Thanks, that was really useful, this time I was able to create a real space instead of a fake one! I'm learning Smile
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1417
Location: Biloxi, MS

PostPosted: Wed Oct 15, 2008 6:09 pm     Reply with quote

You're welcome. Always glad to hear about something I posted actually being useful. Laughing
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> MySpace All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial