Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-25-2005, 03:44 PM   PM User | #1
theexo51
Regular Coder

 
Join Date: Jul 2005
Location: Guildford, UK
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
theexo51 is an unknown quantity at this point
2 background images

i would like 2 or more images. one across the top and one down the side.
ive got as far as

BODY {
background-image: url('picts/background-main.gif');
}

and this places the one image correctly down the side. but how do i use 2 images? i cant do background-image: url('the other pic'); can i ?

cheers
theexo51 is offline   Reply With Quote
Old 08-25-2005, 03:56 PM   PM User | #2
SpirtOfGrandeur
Regular Coder

 
Join Date: May 2005
Location: Michigan, USA
Posts: 566
Thanks: 0
Thanked 0 Times in 0 Posts
SpirtOfGrandeur is an unknown quantity at this point
Nope. You would have to make another div inside the area and position it absolutly to 0,0
__________________
Note: I do not test code. I just write it off the top of my head. There might be bugs in it! But if any thing I gave you the overall theory of what you need to accomplish. Also there are plenty of other ways to accomplish this same thing. I just gave one example of it. Other ways might be faster and more efficient.
SpirtOfGrandeur is offline   Reply With Quote
Old 08-25-2005, 04:52 PM   PM User | #3
Grant Palin
Regular Coder

 
Join Date: Jun 2002
Location: Victoria, BC, Canada
Posts: 962
Thanks: 0
Thanked 1 Time in 1 Post
Grant Palin is an unknown quantity at this point
Supposedly the CSS3 spec allows for multiple background images in a single element. Could be very useful (e.g. sliding doors with one element instead of two), but it's probably still a ways away from being usable.
Grant Palin is offline   Reply With Quote
Old 08-25-2005, 05:34 PM   PM User | #4
theexo51
Regular Coder

 
Join Date: Jul 2005
Location: Guildford, UK
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
theexo51 is an unknown quantity at this point
see uv lost me now...im a proper noob, where do the divs go? do i use them in the css script or html?

lol
theexo51 is offline   Reply With Quote
Old 08-25-2005, 06:11 PM   PM User | #5
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
You can also give the html a background.

html { background: url(blah.jpg) top; height: 100% }
body { background: url(blah2.jpg) left; height: 100% }
__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Old 08-25-2005, 06:47 PM   PM User | #6
mrruben5
Regular Coder

 
Join Date: Nov 2004
Location: The Netherlands
Posts: 551
Thanks: 0
Thanked 0 Times in 0 Posts
mrruben5 is an unknown quantity at this point
Nest your html elements. Eg give an extra <em><i> or<b> and style the bg on that. (you do need to make it a block element though)
__________________
CATdude about IE6: "All your box-model are belong to us"

Last edited by mrruben5; 08-25-2005 at 06:49 PM..
mrruben5 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:13 AM.


Advertisement
Log in to turn off these ads.