View Full Version : span padding
nikko50
04-03-2008, 03:44 PM
How do I provide padding under the span class? I tried padding-bottom: 30px; but does not work.
SPAN.reports
{
font-size:12pt;
font-weight: bold;
margin-left: auto;
margin-right: auto;
padding-bottom: 30px;
}
jcdevelopment
04-03-2008, 04:23 PM
span.reports
{
font-size:12pt;
font-weight: bold;
margin-left: auto;
margin-right: auto;
padding-bottom: 30px;
}
try it lower case, see if that helps
and make sure that its something like
<span class="reports"></span>
and not
<div class="reports"><span></span></div>
good luck
i'm not sure, but when i tried it earlier i found out that you couldn't add margin or padding to the span element.
harbingerOTV
04-03-2008, 07:22 PM
spans are inline elements. By default you cannot add top or bottom padding to an inline element only left and right. You will need to either a) make the span display:block or b) float the span so that it inherents display:block for this purpose.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.