Trying to figure themes

vampy

Joined: 2002-12-05
Posts: 86
Posted: Sat, 2005-10-08 14:53

Hi! I have been reading the developer's guide on how to customise themes and I'm having trouble following it. I'm trying to make the theme of the gallery the same layout as the rest of my site. So far all I have been able to do is to make the background appear... However, for the life of me I cannot figure how to define how wide the layout of the gallery is suppose to be. I know the relevant html tag is "<div id="gallery" class="gecko">" in theme.tpl but I can find the relevant css tag in theme.css Can someone please help me out here? Thank you.

Julian

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2005-10-08 16:25

I'm pretty sure you need to edit body.gallery

Example:
body.gallery {
margin: 0;
padding: 0;
width: 800px;
}

This is located in theme.css

For future reference. Don't make the subject of your posts so general "I need help" doesn't encourage people to click on it :). Try to make your subjects relate to the problem or question you have. A more suitable subject would have been something like "Change width of page" or something.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
HorsePunchKid
HorsePunchKid's picture

Joined: 2005-05-04
Posts: 89
Posted: Sun, 2005-10-09 07:10

nivekiam, since the div is identified with an ID, not a class, you want simply:
#gallery { width: 800px; }

--
http://severinghaus.org/gallery/

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sun, 2005-10-09 08:23

I was just copying out of the theme.css file from the Matrix theme.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
HorsePunchKid
HorsePunchKid's picture

Joined: 2005-05-04
Posts: 89
Posted: Sun, 2005-10-09 08:31

Oh, I see. Yeah, the markup has the body with the "gallery" class, which sounds sort of odd to me, since you can only have one body (AFAIK), which can obviously be selected without any additional class. The div with the "gallery" ID is immediately inside the body. The only thing outside #gallery but inside body is the "addToTrailer" content (for example, Javascript stuff for the search box).

--
http://severinghaus.org/gallery/

 
vampy

Joined: 2002-12-05
Posts: 86
Posted: Sun, 2005-10-09 09:34

Thanks for all your help... I guess it's time for me to brush up on my css knowledge...