Previous Message
Next Message

Re: [css-d] More than one background?

Sent by J.D. Welch on 31 December 2002 18:06


on 31 Dec Joe Howley wrote:

JH >> It's probably not possible but i'm really hoping it is.
JH >> 
JH >> I sit possible to have 2 background images defined in CSS,
JH >> or is there any 'tricks' to doing it?
JH >
JH >Alas, no, it is not.  I wanted to do this too, at some point; a lot of
JH >us probably have.  But you'll have to find some other way, or maybe put
JH >one background in a wrapper element or something.


whoops...helps to include a message

what about

#bg{ 
  background-image:url(images/bg2.jpg);
  background-repeat:repeat;
  margin-left:100px;
  width:100%;
}

body{
      background:#000000;
      background-image:url(images/bg.png);
      background-repeat:repeat-y;
      margin:0px;
      width:100px;
}

wrap everything after <body> in <div id="bg"> and that gives one 100px
background running vertically along the left of the page and the
remainder with a different bg image. a bit kludgy perhaps, but doesn't
that do it?

-jd

--------------------------------------------------------------------------------
   J.D. Welch		 |   http://www.showtunepink.com            
   graphic designer      |   https://kitschparade.ath.cx 
   web developer         |   me (at) showtunepink (dot) com
--------------------------------------------------------------------------------
Previous Message
Next Message

Message thread:

Possibly related: