hi, im new to coding without tables and i'm having difficulty getting text to position exactly where i want it over an image.
i've set the image as a background image and when i set my top 20px and right 50px padding ...the top padding moves the image down in a broken sort of way, and the right padding doesn't work at all. what am i doing wrong? Is there another approach to doing this?
here's my code...
i've set the image as a background image and when i set my top 20px and right 50px padding ...the top padding moves the image down in a broken sort of way, and the right padding doesn't work at all. what am i doing wrong? Is there another approach to doing this?
here's my code...
Code:
#header {
font-family: Arial, Helvetica, sans-serif;
color: #666666;
font-size: 10px;
margin-top:0px;
width:986px;
height: 129px;
text-align:right;
padding-top:20px;
padding-right:50px;
border: 0px;
margin-left:0em;
background-image: url(../images/00_hbf/body02_r1_c1.gif);
background-repeat: no-repeat;
background-color:#C0DAE6;
}
<div id="header">
About | Careers | Contact Us
</div>