TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

centering and narrowing a css based site...

Page: 1 Reply
Jul 9th 2004#155223 Report
Member since: Feb 7th 2002
Posts: 1564
HI GUY's, long time no see ;)

I really could use some help centering and narrowing this css I've done...I've been sitting now for...a while trying to alter the numbers to make it more narrow (approx 85% of screen) and centered, but I think I've come into a brain-still...Can't think. Could someone have a looksie at my page (which is not done), and my CSS-file and see if you can help me ?


last effort...:

tried to add:
padding-left: 5% ;
padding-right: 5% ;
padding-top: 2% ;

and: margin: 50px 50px ;

into the ".container", in the css

Which worked just fine in mozilla, but not in IE. The "about" column, the right one, got messed up ????

Patric.
Reply with Quote Reply
Jul 9th 2004#155226 Report
Member since: Feb 7th 2002
Posts: 1564
Ok I got some help elsewhere ;)...

I applied this in the body style:
padding : 2% 5% ;

and it works, yay...
Reply with Quote Reply
Jul 9th 2004#155234 Report
Member since: Mar 18th 2001
Posts: 6632
I'd just set your .container to

width: 85%;
margin: 0 auto;

That's really all you need to do... :\

Or you could set the width in ems or any other unit of measurement.
Reply with Quote Reply
Jul 9th 2004#155242 Report
Member since: Feb 7th 2002
Posts: 1564
Hey, the CSS guru...Nice too see you...I think I tried that (not sure, tried so many things by now ) and it worked, but didn't center the layout...I'll have a try at it (again, perhaps).

Thank you...

P
Reply with Quote Reply
Jul 9th 2004#155245 Report
Member since: Mar 18th 2001
Posts: 6632
It should, that auto part of the margin tag will center it.

If not, put:

text-align: center;

in your body css definition.
Reply with Quote Reply
Jul 9th 2004#155260 Report
Member since: Feb 7th 2002
Posts: 1564
Okidoki, will do...Now I'll have to get some sleep... So far I'm quite happy with how it looks, so I'll leave it at that for tonite

(The banner isn't to good, eh ? Hehe...wasn't meant to be either, I just had to put up something...)

P..
Reply with Quote Reply
Jul 10th 2004#155320 Report
Member since: Feb 7th 2002
Posts: 1564
Sorry, Deke, for doubting you ;)...

I had tried that before, but left out the "0 auto;" part, just having it set to "auto;"...
So this made a certain different to say the least, all the flaws from my css def is gone...Yihaa, hehe... I can even make it more narrow without any loss in any way, layout'ish...

I'm so greatful - Thanks again.

Patric.
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum