Previous Message
Next Message

About centering a page...

Sent by Jack Keller on 4 January 2005 10:10


Lukasz Grabun is correct on this method, for elaborated information 
just visit http://www.simplebits.com/notebook/2004/09/08/centering.html 
to see a great tutorial called CSS Centering 101.

Jack Keller
www.cell7.org (and a ton more that I won't bother plugging)

On Jan 4, 2005, at 2:59 AM, ZEFXIS - Nick Mavros wrote:

> In order to center a page I created a <div id="center"> right after 
> the <body> and used the following rules :
>
> #center {
> position: absolute;
> left: 50%;
> width: 775px;
> margin-left: -387px; /* width/2 */
> padding: 0;
> text-align: left;
> z-index: 10;
> }
>
> I also placed the "text-align: center;" in the body rules.
>
> It works Ok in both IE and FF but in IE I can't select any text 
> (actually I can select "some text" but in a very "unordered" way).
> In FF of course I can select any text I like...
>
> Is there a way to fix that?
>
> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> 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/
>
>

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread:

Possibly related: