HighDots Forums  

CSS and Background graphics

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS and Background graphics in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cuprik
 
Posts: n/a

Default CSS and Background graphics - 11-03-2004 , 07:21 AM






Is there CSS support for two background graphics, one aligned right and one
aligned left, or am I dreaming?



Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: CSS and Background graphics - 11-03-2004 , 07:58 AM






.oO(Cuprik)

Quote:
Is there CSS support for two background graphics, one aligned right and one
aligned left, or am I dreaming?
You're dreaming, but you could use the body-element for one background
and a div-element for the other:

HTML:
<body>
<div id="content">
....
</div>
</body>

CSS:
body {background: url(/path/to/image) no-repeat top right}
#content {background: url(/path/to/another/image) no-repeat top left}


On recent browsers you could also avoid the ID on the div and use only
CSS-selecors to access it:

body>:first-child {background: url(/path/to/another/image) no-repeat top left}

This keeps the HTML-code smaller, but won't work in IE ...


You could also try to use the html-element for one background iamge.
Don't know if this will work in browsers.

HTH
Micha


Reply With Quote
  #3  
Old   
David Stiller
 
Posts: n/a

Default Re: CSS and Background graphics - 11-03-2004 , 09:04 AM



IE doesn't like CSSML, I guess.


David
stiller ( at ) quip ( dot ) net



Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.