Forums / Templates, Stylesheets, Page Layout / change from centered 100% width to left justified?

change from centered 100% width to left justified?

Locked

Views: 2,273

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
18 Jan 2007, 9:27 AM
#1
skunkworx avatar

skunkworx

Zen Follower

Join Date:
Mar 2005
Posts:
96
Plugin Contributions:
0

change from centered 100% width to left justified?

hi everyone,

ive got a 100% width, centered template that i use for my site and because i want to have nore flexibility with banners and graphics etc , i want to fix the size of the template, and left justify it also.

i have edited the css to achieve what it currently is, ad that was a painful trial and error experience, so i kinda know my way around it, however for some reason what i thought would have effect doesnt.

Can some expert here please tell me what css areas i need to be looking at to change please (from % to px for instance?).

i might as well have it all fixed, as the sideboxes are set via the admin page- so all is left is the centre area.

i hope someone can assist.

if you want to havea look please visit https://www.totalerc.com

at the moment ive been able to change the overall size, but it is still centred, and to tell you the truth im not really sure what i changed to change the size from 100% to 1000px (i think)

Cheers,

Tim

18 Jan 2007, 10:36 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: change from centered 100% width to left justified?

Not sure what it is that you want??

you have several design conflicts if what I think you want is correct.

I f you want the design left justified, most browers resoultion is 1024 or less and you top image is fixed at 1023px making for a mess if you reduce the layout to say 750px.

An example of what you want might assist

Zen-Venom Get Bitten

18 Jan 2007, 8:08 PM
#3
skunkworx avatar

skunkworx

Zen Follower

Join Date:
Mar 2005
Posts:
96
Plugin Contributions:
0

Re: change from centered 100% width to left justified?

hi kobra- yep gotchya.

i was aware of the mess and the size limit...however what i really need help with is what sections in the css to edit to make this happen.

i can see that some sections of my current css show things like ''100%'' and so forth..as they should.

but which one do i change to make it 1023 for example?

and then, when i do that, it stays centred (as it is right now on my site).

how do i left justify it?

or should i leave it centered?

Thanks for the reply mate!

Tim

18 Jan 2007, 8:14 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,675
Plugin Contributions:
0

Re: change from centered 100% width to left justified?

Change the #mainWrapper width to whatever you want and remove the margin: auto; from the same

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

18 Jan 2007, 8:32 PM
#5
skunkworx avatar

skunkworx

Zen Follower

Join Date:
Mar 2005
Posts:
96
Plugin Contributions:
0

Re: change from centered 100% width to left justified?

thanks!.......

20 Jan 2007, 2:47 AM
#6
sheddoggie avatar

sheddoggie

New Zenner

Join Date:
Nov 2006
Posts:
14
Plugin Contributions:
0

Re: change from centered 100% width to left justified?

I'm looking to do the opposite...
I want it centered, but when I make it a specific size, or percentage smaller then my screen resolution it left justifies. where and what code do I put in to center the main wrapper?

20 Jan 2007, 2:54 AM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,675
Plugin Contributions:
0

Re: change from centered 100% width to left justified?

Change the #mainWrapper width to whatever you want and remove the margin: auto; from the same

Put the margin: auto in the mainWrapper.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

20 Jan 2007, 3:01 AM
#8
sheddoggie avatar

sheddoggie

New Zenner

Join Date:
Nov 2006
Posts:
14
Plugin Contributions:
0

Re: change from centered 100% width to left justified?

didn't work for me, still left justified.

/wrappers - page or section containers/
#mainWrapper {
background-color: #FFFFFF;
text-align: center;
width: 80%;
margin:auto;
vertical-align: top;
border: 1px solid #000000;

20 Jan 2007, 3:23 AM
#9
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,675
Plugin Contributions:
0

Re: change from centered 100% width to left justified?

URL to the site?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

20 Jan 2007, 3:28 AM
#10
sheddoggie avatar

sheddoggie

New Zenner

Join Date:
Nov 2006
Posts:
14
Plugin Contributions:
0

Re: change from centered 100% width to left justified?

20 Jan 2007, 3:37 AM
#11
sheddoggie avatar

sheddoggie

New Zenner

Join Date:
Nov 2006
Posts:
14
Plugin Contributions:
0

Re: change from centered 100% width to left justified?

got it..
added it to the body tag.

body {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 62.5%;
color: #000000;
background-color: #FFFFFF;
width: 850px;
margin-left:auto;
margin-right:auto;
}