margin: Auto;
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jan Erik Moström
Sent: Wednesday, November 23, 2005 2:46 PM
To: [email protected]
Subject: [css-d] I can never learn this - how do I center a part of my page
It looks like I'm not able to learn how CSS does things, sigh, sorry for
this
basic question. If I want to make a page that look like this
----------------------------
|HHHHHHHHHHHHHHHHHHHHHHHHHH|
|--------------------------|
| ccccccccccccccccc |
| ccccccccccccccccc |
| ccccccccccccccccc |
| ccccccccccccccccc |
| ccccccccccccccccc |
| ccccccccccccccccc |
| ccccccccccccccccc |
|--------------------------|
|FFFFFFFFFFFFFFFFFFFFFFFFFF|
----------------------------
Header and footer is no problem, it's the middle part that I don't
understand. I want to center the middle part (the c's) and have it a certain
width. What I've come up with is
<div id="pageheader">
HHHH
</div>
<div id="pagebody">
CCCC
</div>
<div id="pagefooter">
FFFF
</div>
and this
#pagebody
{
background-color: #fbb;
width: 500px;
}
but how do I center this part?
jem
--
Jan Erik Moström, www.mostrom.pp.se
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
_____
<< ella for Spam Control >> has removed Junk messages and set aside Read
Later for me
You can use it too - and it's FREE! www.ellaforspam.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/