Jump to content

Spacing block elements in list?


LemonInflux

Recommended Posts

ul#sidePanelLinks {
list-style:none;
display:block;
padding:0px;
margin:0px;
width:98%;
margin-left:1%;
margin-right:1%;
}

ul#sidePanelLinks li {
border:1px solid #CCCCCC;
padding-top:2px;
padding-bottom:2px;
}

 

<div id="sidePanelContent">
<ul id="sidePanelLinks">	
<li><a href="#">BOB</a></li>
<li><a href="#">DAVE</a></li>
</ul>
</div>

 

That's my code. CSS first, HTML second. My question is, how do I add space between the blocks? I want about 5px between each one. How is this done?

 

Thanks in advance,

 

Tom

Link to comment
https://forums.phpfreaks.com/topic/97211-spacing-block-elements-in-list/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.