[Solved] Help on auto-adjusting the "pagewrapper"..

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Minefox
Forum Members
Forum Members
Posts: 23
Joined: Sat Jan 01, 2011 4:36 am

[Solved] Help on auto-adjusting the "pagewrapper"..

Post by Minefox »

Hi guys! Please help me in finding ways to add a code as to auto-adjust the width of the "pagewrapper" (please see marked image: 1, 2, 3, 4) so that it will match the width of the given image (please see marked image: 5) in the content page. Im stucked in here.. :(

Image
Last edited by Minefox on Wed Oct 03, 2012 11:54 pm, edited 1 time in total.
Minefox
Forum Members
Forum Members
Posts: 23
Joined: Sat Jan 01, 2011 4:36 am

Re: Help on auto-adjusting the "pagewrapper"..

Post by Minefox »

I need to have a flexible "pagewrapper" because im dealing with a varying image in the content block. And it doesn't look gook to have an image (big widths) that goes out of the border.
rooon
Forum Members
Forum Members
Posts: 113
Joined: Mon Dec 05, 2011 4:40 pm

Re: Help on auto-adjusting the "pagewrapper"..

Post by rooon »

Hi Minefox,

You have to do some work and create an extra image for a background of the header, for example:

Image
And then somethong like

Code: Select all

<div id="header-wrapper">
 ...header, photos, menu...
</div>

Code: Select all

#header-wrapper {
 background: #ffd200 url([[root_url]]/uploads/cms/bg-header.jpg) repeat-x top left;
}
Have fun, Rooon
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Help on auto-adjusting the "pagewrapper"..

Post by Dr.CSS »

You can make it adjust but it will never be in the center of the page it will always start on the left side of the browser, you are better off making the image fit the page, nobody wants to look at a site/page that is going to be 3000px wide...
Minefox
Forum Members
Forum Members
Posts: 23
Joined: Sat Jan 01, 2011 4:36 am

Re: Help on auto-adjusting the "pagewrapper"..

Post by Minefox »

Hi Dr.CSS! I managed to have it enclosed in my border by just adding the code
overflow-x:auto;
to my stylesheet. Im already satisfied with the result. :)

Thanks guys!
Post Reply

Return to “Layout and Design (CSS & HTML)”