Click to See Complete Forum and Search --> : CSS not showing image?


Sheldon
07-17-2005, 08:26 PM
Hi all,

I am using this code to display an image in the background

.maincell {
background-color:#ffffff;
background-image: url('../images/logo.gif');
top: 0;
left: 0;
z-index: 1;
overflow: scroll;
visibility: visible;
background-attachment: scroll;
text-indent: 20px;
text-align: left;
text-transform: inherit;
text-decoration: none;
color: #333333;
font-family: arial;
font-size: inherit;
}


I know the css file is being called but i doesnt load any image.

the page is in the root folder, the css file is in a sub folder and the image is in another subfolder from the root.



Thanks

Sheldon

ray326
07-17-2005, 08:55 PM
Got link or HTML?

Sheldon
07-17-2005, 09:04 PM
haha yes, thanks you, asking me for htlm jsut found out my problem.

i had<div style="maincell">bla bla bla</div>Where i should have<div class="maincell">this works</div>.



Thanks for unknowningly pointing out the obvious.

How do i make it only show ine image left hs, center in height?

Thanks!
Sheldon

Sanim
07-17-2005, 09:08 PM
background: #FFF url(images/myimage.gif) no-repeat left center;