Jump to content

several background images?


LemonInflux

Recommended Posts

I'm not sure if you can do this with background images but you can do something like this:

 

<style type="text/css">

#top_left {

width: 100%;

height: Heightpx;

background-image: url(Image);

background-position: center;

background-repeat: no-repeat;

overflow: hidden;

}

#top_right {

width: 100%;

height: Heightpx;

background-image: url(Image);

background-position: center;

background-repeat: no-repeat;

overflow: hidden;

}

#top_main {

width: 100%;

height: Heightpx;

background-image: url(Image);

background-position: center;

background-repeat: no-repeat;

overflow: hidden;

}

</style>

 

 

<div valign="top left" id="top_left">

<div valign="top right" id="top_right">

<div valign="top" id="top_main">

</div></div></div>

 

See if that works.

Without knowing the context of how LemonInflux wants to use the images it is fruitless to speculate on techniques and/or offer tips or solutions.

 

CSS positioning is a fickle thing - all selects and tags in the markup impact upon the other; without seeing the context in which a given question here is used recommending a solution is futile.

 

LemonInflux, can you provide an example of screenshot of what you are trying to achieve? There are some cool techniques to simulate multiple background images.

 

IF you are going to use that code, use position:fixed also so the pictures will stay in place.

 

Position:fixed is not cross-browser compatible; it doesn't work in IE. And while Stu Nicholls created a brilliant hack to get it to work in IE6 (stu nicholls position fixed, it precludes the use of "position:relative or absolute" in the document.

 

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.