Page 1 of 1

Background question

Posted: Tue Jan 17, 2006 10:47 pm
by Zuke
I am trying to figure out where to put a background tab in my layout template. 

http://www.infinitegeekonline.com/cms/index.php

The binary you see is a background image.  I don't want it in the area with the text, I want it outside in the "null" space.  Any ideas?

IIS, PHP5, MySQL5, CMS-M-S 11.2

Thanks

Re: Background question

Posted: Wed Jan 18, 2006 12:45 am
by westis
Move background: url(uploads/images/binary.jpg);  to the body element in the Colours stylesheet. In the Colours stylesheet, also make sure that the background for div#page is set to #ffffff (or just #fff) or whatever colour you wish for the page (it is now #fff fff, which is not valid CSS as it has a space in there).

That should do the trick!

:D

Re: Background question

Posted: Wed Jan 18, 2006 3:35 am
by Zuke
Awesome!  Thank you very much!

Re: Background question

Posted: Fri Jan 20, 2006 8:59 am
by fredt
You also can use this:
background-attachment: fixed; so it won't move anymore,
and (not so useful here) background-position:  center; or background-position:  Xpx Ypx;  to set it's position

http://www.w3schools.com/css/css_background.asp has more details and allows to test online!

FredT

Re: Background question

Posted: Fri Jan 20, 2006 3:11 pm
by Zuke
That's good to know too!  The background I have needs to be tiled, so no need to have it attached or anchored anywhere, but I might need it in the future.

Anyone have any ideas on the flash question in my other post?