TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

CSS Background Color

Page: 1 Reply
Aug 19th 2001#13632 Report
Member since: Apr 7th 2001
Posts: 366
Okay yall gotta another CSS question for ya. How can I use CSS to change the background color of a page?? And Can I do it for more then one background ie. two colours???

Thanks yall
Reply with Quote Reply
Aug 19th 2001#13659 Report
Member since: Apr 7th 2001
Posts: 366
So is this a no body knows or everyone is ignoring me???:confused:

Please help!!
Reply with Quote Reply
Aug 19th 2001#13667 Report
Member since: Mar 18th 2001
Posts: 1690
http://www.dynamicdrive.com/dynamicindex3/document1.htm

go there. download that script.

Im thinking you could easily substitue the images that are being used for named colors and substitue the image in the <.body background=""> tag with <.body bgcolor="">. It may take some hacking, but that is where I would start.
Reply with Quote Reply
Aug 19th 2001#13712 Report
Member since: Apr 7th 2001
Posts: 366
Thanks axiom but that wasn't exactly what I was looking for, but thanks anyways. What I wanted was to find the CSS code for changing the background color but I've now found that myself and now what I want to know is if I can set up two of them in the same CSS document, I don't mean two colours for the same page what I mean is two colors one for one page and one for the other. Any ideas??:confused:
Reply with Quote Reply
Aug 20th 2001#13740 Report
Member since: Jun 30th 2001
Posts: 447
Okay, create two CSS classes in your CSS file:

[code].theme1 {
// theme 1 CSS goes here
}

.theme2 {
// theme 2 CSS goes here
}[/code]

Then in your body tag place class=theme1 for theme 1 or class=theme2 for theme 2.
Reply with Quote Reply
Aug 20th 2001#13744 Report
Member since: Apr 7th 2001
Posts: 366
What about below, is that how I would add it??
[code].theme1 {
//background:#00ff00
}

.theme2 {
//background:#FFFFFF
}[/code]

So you mean like this????
[code]body class=theme1 leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"[/code]
I'm sorry for being a pain I'm just new to this whole thing. Hey Hunkorama do you know of a good book about CSS?? (Yes, everyone else I know I've asked this else where)

Thanks so much for the help.
Reply with Quote Reply
Aug 20th 2001#13745 Report
Member since: Mar 18th 2001
Posts: 6632
take out the // at the beginning of the line. That's for comments. The browser will ignore anything after those two slashes. Other than that, it should work.
Reply with Quote Reply
Aug 20th 2001#13747 Report
Member since: Apr 7th 2001
Posts: 366
So like this???

[code].theme1 {background:#00ff00}
.theme2 {background:#FFFFFF}[/code]

Then this one would like this right????

[code]body class=theme1 leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"[/code]

Thanks so much for the help.
Reply with Quote Reply
Aug 20th 2001#13818 Report
Member since: Apr 7th 2001
Posts: 366
Thanks All!!! :D I think I've got it working now!!!!!:D
Reply with Quote Reply
Aug 22nd 2001#14006 Report
Member since: Jun 30th 2001
Posts: 447
Yeah!
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum