|
|
 |
Re: FN-FORUM CSS positioing question
date posted 28th September 2002 14:46
cheers paul - figures that it'd be something a wee bit more complex
vertical-align, i mean whats the point in making a developers life easy? :)
----- Original Message -----
From: "Paul J White" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Saturday, September 28, 2002 2:26 PM
Subject: Re: FN-FORUM CSS positioing question
> anybody(paul?) able to shine any light on this before i return to tables
on
> this one?
>
No tables needed, the following works in Moz/Opera /IE (not sure about IE4)
HTH, Paul.
CSS position:absolute center example
body, html {background-color: #fff;
overflow: hidden; margin: 0; padding: 0;
}
#center {
/* Make element float in the center */
position: absolute;
left: 50%;
top: 50%;
/* Set the width and height */
width: 660px;
height: 140px;
/* Set margin to half the values of width/height */
margin-left: -330px;
margin-top: -70px;
/* Presentational properties */
background-color: #900;
color: #fff;
text-align: center;
font: bold 700% arial;
}
Centered
============================================================
= Advanced web hosting solutions from Saffas. =
= Unix, PHP, mySQL, SSL, Perl, Control Panel, 24/7 access. =
= Why pay more for less? http://www.saffas.com =
============================================================
Sponsor the forum for as little as £1 at:
http://www.freelancers.net/cgi/sponsor.cgi?action=show
Advertise with Freelancers.net +Additions+
http://www.freelancers.net/advert.php
Freelancers and Freelance Jobs:
http://www.freelancers.net
Forum FAQs:
http://freelancers.netrickery.com
To unsubscribe please email:
[EMAIL REMOVED]
If you have difficulties unsubscribing please email:
[EMAIL REMOVED]
|
 |
|