rejetto forum
May 26, 2012, 12:58:11 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: <div id=body> question  (Read 845 times)
0 Members and 2 Guests are viewing this topic.
riccetts
Experienced poster
***
Offline Offline

United States United States

Posts: 32



View Profile
« on: June 21, 2011, 12:17:17 PM »

How can i adjust the <div id=body> to use as a side bar?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: June 22, 2011, 04: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; }
Logged
riccetts
Experienced poster
***
Offline Offline

United States United States

Posts: 32



View Profile
« Reply #2 on: June 22, 2011, 09:58:22 AM »

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
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #3 on: June 30, 2011, 11:06:46 AM »

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) }

Follow members gave a thank to your post:

riccetts

For this post, 1 member gave a thank you!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 20, 2012, 06:51:15 AM