Author Topic: <div id=body> question  (Read 2194 times)

0 Members and 1 Guest are viewing this topic.

Offline riccetts

  • Occasional poster
  • *
  • Posts: 45
  • A working progress
    • View Profile
<div id=body> question
« on: June 21, 2011, 05:17:17 PM »
How can i adjust the <div id=body> to use as a side bar?

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: <div id=body> question
« Reply #1 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; }

Offline riccetts

  • Occasional poster
  • *
  • Posts: 45
  • A working progress
    • View Profile
Re: <div id=body> question
« Reply #2 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

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: <div id=body> question
« Reply #3 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) }