Okay,
I saw that one or two of the cloud image pieces were not uploaded to my domain. I corrected that. I also saw how the before and after pieces were positioned absolutely. I added the float to the h1 and adjusted the positioning on the before and after to achieve the desired effect. Hopefully you'll be able to see it soon as I have uploaded all my files.
It came together with this, the code I was given here before I changed my mind 6 times:
Code:
h1{float:left; text-align:left; margin:0; font-size:20px; background:url("h1bgbody.gif") repeat-x scroll 50% 10px transparent; width:auto; background-position:29px 0; height:31px; text-shadow:1px 1px 1px #C93; letter-spacing:1px;}
h1:after{
background:url("h1bgend.gif") no-repeat 100% 0;
height:30px;
right:-20px;
position:absolute;
top:0;
width:26px;
content:" ";
z-index:99;
margin:0;
}
h1:before{
background:url("h1bgstart.gif") no-repeat 0 0;
content:" ";
height:30px;
left:-15px;
position:absolute;
top:0;
width:26px;
z-index:99;
margin:0;
}
h1{position:relative; margin:0 20px; padding:2px 3px 0 3px;}
I still have a couple of questions:
1) I put the background-position property in red. Why is it in this code and why do I need it?
2) I want to position this cloud design.. Do I do it using a wrapping div or do I just move it using absolute positioning, or margin/padding?
Bookmarks