View Full Version : Can somebody help me with this padding problem. REP+
jacko2244
03-05-2010, 02:07 PM
I've been bored today and I decided to code a layout. And I seem to have this problem with the layouts padding. Can anybody help me please?
My problem:
http://hufile.cc/1272895607.png
Direct Link: http://hufile.cc/1272895607.png
#djsays {
background: url(djsays.png);
height: 30px;
text-align: left;
padding-left: 75px;
padding-top: 7px;
color:white;
}
MattFr
03-05-2010, 02:19 PM
I've been bored today and I decided to code a layout. And I seem to have this problem with the layouts padding. Can anybody help me please?
My problem:
http://hufile.cc/1272895607.png
Direct Link: http://hufile.cc/1272895607.png
#djsays {
background: url(djsays.png);
height: 30px;
text-align: left;
padding-left: 75px;
padding-top: 7px;
color:white;
}
If the intended final height is 30px, you need to subtract 7px padding off the height. Height is made up of height and padding. It's best to put a no-repeat attachment on the background too :)
jacko2244
03-05-2010, 02:27 PM
Thanks! REP+
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.