rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: riccetts on June 21, 2011, 05:17:17 PM

Title: <div id=body> question
Post by: riccetts on June 21, 2011, 05:17:17 PM
How can i adjust the <div id=body> to use as a side bar?
Title: Re: <div id=body> question
Post by: rejetto on June 22, 2011, 09:23:37 AM
i don't know what template you are using, if an old version of the default template, or a different one, because there's no <div id='body'> in the current default template.

anyway, a general rule for making a div as a "side bar" is to add a "float:left" css rule.

like

#body { float:left; }
Title: Re: <div id=body> question
Post by: riccetts on June 22, 2011, 02:58:22 PM
I am using 2.2 but I figured it out.
how do I use a picture as a background? I got the img to take but there are multiple images instead of one. I would like to just have the one img as the whole background.
I'm trying to create a home [home] within the template and use the original tmp as a browse [browse]
but the file will not appear when link to it. I only get %comment% %files% within the div id=body.
Can you help with this problem?
Thanks
Title: Re: <div id=body> question
Post by: rejetto on June 30, 2011, 04:06:46 PM
to get a single image as a background for all, you should set the "background" of "body".

so, given the picture is available through HFS in a folder called "pics", this is the style rule to add to other style rules

body { background:url(/pics/mine.jpg) }