WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: lepracaun on May 27, 2008, 06:03:53 PM

Title: Generic Template
Post by: lepracaun 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.

(http://www.websitedesigns.co.za/sadd.gif)

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.
Title: Re: Generic Template
Post by: Bramus on May 27, 2008, 07:17:11 PM
what if you change the width?

Title: Re: Generic Template
Post by: lepracaun 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
Title: Re: Generic Template
Post by: Bramus 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.
Title: Re: Generic Template
Post by: hrioo 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.
Title: Re: Generic Template
Post by: lepracaun on May 28, 2008, 07:20:40 AM
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