Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-27-2008, 04:37 PM   PM User | #1
x54
New to the CF scene

 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
x54 can only hope to improve
Padding problems

Please can someone help me. I have added a background image to an h1 tag. I now wish to add some top and left padding to the h1 text in order to get the text where I want it. When I add padding-top 3px it moves the h1 text down as required, but it also adds 3px of blank space bellow the background image, which is not what I want. I have counteracted this by adding margin-bottom: -3px; but this doesn't seem right to me.

The css is as follows:

.RecruitersAdvertisers h1, .JobSeekers h1 {
background-image:url(images/bj_menubg.jpg);
background-repeat: no-repeat;
border-left: solid 1px silver;
border-right: solid 1px silver;
padding-left: 5px;
padding-top: 3px;
margin-bottom: -3px;
height: 22px;

You can also see the full version online at:
http://s253255674.websitehome.co.uk/brusselsjobs/

Any help would be much appreciated cos I have reached a brick wall with this.

Thanks

x54
x54 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:45 PM.


Advertisement
Log in to turn off these ads.