mattastic
10-15-2008, 09:42 AM
Hi folks,
Can anyone tell me how I can add a few pixels of padding to the header text so it is more central?
When I try and add padding, it messes up the background image.
Any help much appreciated
<style>
.portlet h3, .portletLong h3, #sidebar1 h3, #sidebar2 h3{
width:100%;
height:29px;
background-image: url(images/banner_grad_left.gif);
background-repeat: no-repeat;
background-color:red;
}
.portlet h3 span, #sidebar1 h3 span, #sidebar2 h3 span, .portletLong h3 span{
background-image: url(images/banner_grad_right.gif);
background-repeat: no-repeat;
background-position: right center;
width:100%;
height:29px;
float:right;
}
</style>
<h3 ><span>header text</span></h3>
Can anyone tell me how I can add a few pixels of padding to the header text so it is more central?
When I try and add padding, it messes up the background image.
Any help much appreciated
<style>
.portlet h3, .portletLong h3, #sidebar1 h3, #sidebar2 h3{
width:100%;
height:29px;
background-image: url(images/banner_grad_left.gif);
background-repeat: no-repeat;
background-color:red;
}
.portlet h3 span, #sidebar1 h3 span, #sidebar2 h3 span, .portletLong h3 span{
background-image: url(images/banner_grad_right.gif);
background-repeat: no-repeat;
background-position: right center;
width:100%;
height:29px;
float:right;
}
</style>
<h3 ><span>header text</span></h3>