Jump to content

Image CSS problem


quelle

Recommended Posts

I have <img> element called right after <body> one. The image element includes following id with attributes and serves as a background of whole page(body) with possibility of resizing(thats the function of this part of code):

 

 

#img.source-image {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

 

 

 

How come this image overrides following id's background

 

 

#mainPicture
{
clear:both;
width:670px;
height:345px;
background-color:#160306;
}

 

And not just this id, every div which includes id from css with background

 

What I want is actually this picture to be under everything

Link to comment
https://forums.phpfreaks.com/topic/267199-image-css-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.