|
|
 |
RE: FN-FORUM: Div styling problem
date posted 3rd February 2008 16:50
Hi Sam, Andy,
Thanks for your help on this - removing the height worked a treat. In =
answer
to Sam's question about centering, I had intended to center, but not the
text - I wanted the whole site centered on screen. I removed the =
position:
relative - with the margin: auto set, and the margin-top set to 80px, =
this
worked. It appears to be OK in FF 2.0.0.9 and IE7 on XP - using
browsercam.com, it seems to be OK for IE6 as well. There is one =
exception -
this is the layer that floats at the top right, containing the links. =
This
is not locked in place, so I will work on relocating this so that it =
stays
in the right place.
Thanks guys!
Alex.
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Sam M =
-
www.wiredeyes.com
Sent: 03 February 2008 09:39
To: FN-FORUM / [EMAIL REMOVED]
Subject: RE: FN-FORUM: Div styling problem
> -----Original Message-----
> Hi Sam, Andy (and anyone else who wants to take a look!),
>=20
> Right - it is up now; take a look at http://www.not42.net/index.php.
> The
> copyright (a div) should be inside the black framed text, along with=20
> the few random characters I put in to test how it would look. My=20
> problem is that I want the frame to expand downwards when more text is =
> added, but I have gone a complete blank on how to do it. I have not=20
> added in the clear:both keyword you suggested yet Sam, as I wanted you =
> to see the code first - will adding this in sort it out?
Hi Alex,
With the left: 179px; on your wrapper is that there for a reason? It =
looks a
bit odd on my monitor are you really wanting to center on the page?
As Tony has said, remove the height on your wrapper and things will =
work.
Assuming you did want it centered this is what I would change in the css
body {
text-align:center;
}
#wrapper {
text-align:left;
width: 730px;
border: 1px solid black;
position: relative;
margin-top:80px;
margin-left:auto;
margin-right:auto;
}
Regards
Sam Morgan
--
WiredEyes Media / ServWise Advanced Hosting
tel (Uk): +44 (0)20 7100 2178
tel (Italy): +39 070 773 6543
web : www.wiredeyes.com / www.servwise.com umop ap!sdn w,! aw dlaH
--
=E2=98=85=E2=98=85 Hosting from 63p per month using coupon : HALFPRICE =
=E2=98=85=E2=98=85 Domain
Names from =C2=A33.89/y & 128bit SSL Certificates only =C2=A38.00/y
--=20
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|