i want to stick all the existing CSS from theme.tpl into new DIV 800px wide and centred but when i do this it wont work. Help!

deadpixel

Joined: 2009-05-26
Posts: 3
Posted: Tue, 2009-05-26 15:11

I am builing a website www.chic-living.com and i use dreamweaver. I want to keep my style consistant through out the whole site. I have made a gallery page for my site: http://www.chic-living.com/album/main.php and i have even managed to put the header in with some difficulty. but it looks good now. Problem is that the main gallery body stuff should be centered on webpage at no more than 800 pixels wide to match the rest of my website and follow down from the header. the obvious solution was to make a new div and cut/paste all the G2 body stuff into my new Div which would contain it at no more than 800px wide while also keeping it centerd directly below my header. When i upload my changes to the net, nothing what so ever appears while the G2 body stuff is all in my DIV. what am i doing wrong here? Why doesnt the generic body code like its new home in the Div? also i should mention that i didnt stick the debugging bit from the bottom of the matrix .tpl in to the div tag because it just seems wiser not to so please please help!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2009-05-26 21:21

First you are missing the theme.css file yet you call it later so it tries to load 2 css files and one it can't find
in theme.tpl you have:

<link href="../../theme.css" rel="stylesheet" type="text/css" />

you can remove that one. it is loaded up later in the template.

then you can edit the theme.css you have and add the bold:

#gallery {
    padding: 8px;
width: 800px;
margin-left: auto;
margin-right: auto;
}

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
deadpixel

Joined: 2009-05-26
Posts: 3
Posted: Wed, 2009-05-27 08:50

Thanks Dave. i really really appriciate this.