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.

Link to comment
Share on other sites

Instead of criticizing the people for giving an attempt at finding the correct code, try to help him with your own example. Also, back to the topic, IF you are going to use that code, use position:fixed also so the pictures will stay in place.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.