Need help working with index.tpl!
Posted: Mon Dec 19, 2005 1:07 am
Hello all, so I've read how you integrate Serendipity into an existing HTML design (I'm not much of a PHP or CSS guy, you see). You do it by editing the .tpl files in your default template directory right?
Well I can do that to an extent, change a few table background colors, add text here and there. But I'm having mucho problems getting anything else to work. For now though I'll just focus on one.
As I understand it, I edit the main layout of my blog page by editing index.tpl. So I go in there and try to add a background image into the <body> tag using <body background="images/image.gif"> or whatever. I also try to add marginheight="0" marginwidth="0" etc. so that the page has no white edges. It doesn't work if I try to specify a background color in the body tag either.
But none of this works! What am I doing wrong? Or am I just a knucklehead HTML designer who doesn't understand this complex stuff?
Well I can do that to an extent, change a few table background colors, add text here and there. But I'm having mucho problems getting anything else to work. For now though I'll just focus on one.
As I understand it, I edit the main layout of my blog page by editing index.tpl. So I go in there and try to add a background image into the <body> tag using <body background="images/image.gif"> or whatever. I also try to add marginheight="0" marginwidth="0" etc. so that the page has no white edges. It doesn't work if I try to specify a background color in the body tag either.
But none of this works! What am I doing wrong? Or am I just a knucklehead HTML designer who doesn't understand this complex stuff?