I'm trying to create a floating division within my page that has a background image in it. I've got coding in the css page that goes like:
however, it's not working properly.
So far, I'm only trying to view this in IE as that's the browser of choice of over 98% of my visitors, but will try to view it in other browsers going forwards.
This is my first attempt at coding a background image in a floating division, so any insight as to what I've done incorrectly will be greatly appreciated.
My body also has a tiled background image which is working properly.
Margaret
Code:
div.txt{
position:absolute;
top:250px;
left:175px;
height:400px;
width:70%;
font-family:Bacon, Arial;
font-size:14pt;
color:#4d4f33;
text-align:left;
z-index:4;
background-image:URL(/BG/images/bg1.jpg);
}
however, it's not working properly.
So far, I'm only trying to view this in IE as that's the browser of choice of over 98% of my visitors, but will try to view it in other browsers going forwards.
This is my first attempt at coding a background image in a floating division, so any insight as to what I've done incorrectly will be greatly appreciated.
My body also has a tiled background image which is working properly.
Margaret