WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Generic Template
  • Print
Pages: [1]   Go Down

Author Topic: Generic Template  (Read 7084 times)

lepracaun

  • Guest
Generic Template
« on: May 27, 2008, 06:03:53 PM »
I am busy customising a design based on the generic template, all is going well it is just the 'content' section that I need to get help with.



I need my text to stay within the green border i drew, the css for that section is
Code: [Select]
#content{
float:left;
width:735px;
background-image:url(body.jpg);
padding:10px 0 0 65px;
}

if is make my padding on the right more, it pull the whole design out of portion.

Can anybody help with this please, just need to get the text on the right side to stop where the green border is.
Logged

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
Re: Generic Template
« Reply #1 on: May 27, 2008, 07:17:11 PM »
what if you change the width?

Logged
BRAMUS Internet Services

lepracaun

  • Guest
Re: Generic Template
« Reply #2 on: May 27, 2008, 08:42:00 PM »
I tried that, but if i increase the width, it also moves the background image the same amount out, and doesn't fit in with the rest of the website layout
Logged

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
Re: Generic Template
« Reply #3 on: May 27, 2008, 10:48:43 PM »
you could make a different content for the background and 1 for the real content, or check the widths in the css guess theres something wrong, not that good in css, but it is something wrong in your css.
Logged
BRAMUS Internet Services

hrioo

  • Guest
Re: Generic Template
« Reply #4 on: May 27, 2008, 11:10:04 PM »
Try adjusting the width of your #content. For example you have your width set as 735px, so if you want 15px padding in each side make its width 705px.

Another easy way is to put your text in another div for example #content_inner and specify width by percent and specify margins for it.
Logged

lepracaun

  • Guest
Re: Generic Template
« Reply #5 on: May 28, 2008, 07:20:40 AM »
Quote from: hrioo on May 27, 2008, 11:10:04 PM
Another easy way is to put your text in another div for example #content_inner and specify width by percent and specify margins for it.

This worked great, thank you  :-D
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Generic Template
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2