Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
using 'fixed background' command with a background image...
orbgetar



Joined: 16 Feb 2005
Posts: 66
Location: Midwest U.S.

Posted: 02/16/05 14:40 
I'm attempting to streamline my website to a uniform appearance and have succeeded and getting some pages of the jamroom directory to use the background image that I use for my main website-

However, my question is- since I'm using the background-image: url(blah-blah.jpg) command in the style sheets, how would I go about making the css file recognize the fixed-background command that is used in regular html (and which also works in some of the php files), which goes like this:

<body background="blah-blah.jpg" bgproperties="fixed">

I want to apply this command from the css file, so I don't have to modify each and every one of the dynamically created user php files...

Anyone know of a way to do this? Is this possible in css syntax? Question

feel free to e-mail me on this one, as well, if you have a workable answer..


_________________
"It's All One Big Song"
Back to top
rekrapt



Joined: 02 Oct 2004
Posts: 308
Location: Gulfport, MS

Posted: 02/18/05 09:37 

Code

{
Background-Image: url (/path/to/bgound/image/pic.jpg);
Background-Attachment: fixed;
}



_________________
Tom
http://music.tparker.net
http://wongastudios.com
----
Back to top
orbgetar



Joined: 16 Feb 2005
Posts: 66
Location: Midwest U.S.

Posted: 02/18/05 19:30 
I actually found a workaround for that too, but I'm definitely going to try this-

My workaround was to include the background image command in the css file, essentially

background-image: url ('folder/blah-blah.jpg');
background-position: center;

and then edit all the header templates to include the command

bgproperties="fixed" in the body tag after the word 'body class' and , ie

<body class="thBody" "bgproperties="fixed">

this works as well, but if your method works for me, it'll be much simpler...

Thanks for the input, much appreciated! Very Happy


_________________
"It's All One Big Song"
Back to top
rekrapt



Joined: 02 Oct 2004
Posts: 308
Location: Gulfport, MS

Posted: 02/18/05 23:23 
I love the fixed effect. Locks the background into place nicely. I use it here:

http://www.tparker.net/mambo/

and here:

http://music.tparker.net/

Hope it works for you. Smile


_________________
Tom
http://music.tparker.net
http://wongastudios.com
----
Back to top
orbgetar



Joined: 16 Feb 2005
Posts: 66
Location: Midwest U.S.

Posted: 02/19/05 00:08 
I like fixed background, simply because it gives your website a kind of 3D effect when the text is rolling but the background is not moving...

Your command worked perfectly, I replaced all the commands in the css files, and removed references to 'fixed background' in the html headers, and it still works the same... this'll be a time-saver when updating dynamically created pages...

thanks again! Very Happy


_________________
"It's All One Big Song"
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.