Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 09:20 pm EDT

Geeklog Forums

Background Color


Status: offline

ishmot

Forum User
Junior
Registered: 09/29/06
Posts: 34
I typically setup my geeklog sites to be about 850-900px wide. On one site I would like to leave this 900pixels containing the main site to be white and then make the sides outside of that 900px black. It seems more and more of the color settings are being included in the style.css which is good but I'm yet to discover an easy way to do this. here is the site: http://www.crazyscrapper.com I'm using GL1.5 Anyone have any thoughts how this would best be accomplished. I'm using a modified professional theme. thanks, Jared
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
An easy way is to put the whole site in a div. Make the background color of the div white, and the body background color black. Ready and running in 5 minutes.

Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

ishmot

Forum User
Junior
Registered: 09/29/06
Posts: 34
Quote by: beewee

put the whole site in a div.



Which file would I do this in? header.thtml?

thanks,

Jared

 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
In style.css:

body{
background-color:#000;
margin:0px auto;
width:900px;
}

#wrapper{
background-color:#fff
width:900px;
}

In header.thtml, right after
Text Formatted Code
<body dir="ltr">
put:
Text Formatted Code
<div id="#wrapper">

In footer.thtml, right before
Text Formatted Code
</body>
put
Text Formatted Code
</div>


That should do it, I guess



Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

ishmot

Forum User
Junior
Registered: 09/29/06
Posts: 34
hmmmm. for some reason that didn't work. But thanks for your help anyways.

jared


 Quote

All times are EDT. The time is now 09:20 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content