rejetto forum

<div id=body> question

0 Members and 1 Guest are viewing this topic.

Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
How can i adjust the <div id=body> to use as a side bar?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
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; }


Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
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) }