Re: Why doesn't this container center?
- From: dorayme <doraymeRidThis@xxxxxxxxxxxxxxx>
- Date: Thu, 09 Apr 2009 09:56:27 +1000
In article <49dd3436$1_3@xxxxxxxxxxxxxxx>,
John Hosking <John@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
richard wrote:
On Wed, 8 Apr 2009 10:27:03 -0700 (PDT), Mike Silva
<snarflemike@xxxxxxxxx> wrote:
Here's a little test page that should, according to my understandingTry this version
and based on what I have read in various places, center the container
box horizontally. It does so on IE, but on Firefox and Safari the box
is on the left. Can somebody explain the problem? Thanks.
.test { width:2in; height:2in; background:#ffff7d; margin:auto;}
<div class="test">
sample
</div>
I am now convinced you're just trolling.
What convinced you in particular? The transitional doctype? The use of
inches, bothering about height?
--
dorayme
.
- Follow-Ups:
- Re: Why doesn't this container center?
- From: John Hosking
- Re: Why doesn't this container center?
- From: richard
- Re: Why doesn't this container center?
- References:
- Why doesn't this container center?
- From: Mike Silva
- Re: Why doesn't this container center?
- From: richard
- Re: Why doesn't this container center?
- From: John Hosking
- Why doesn't this container center?
- Prev by Date: Re: Why doesn't this container center?
- Next by Date: Re: Why doesn't this container center?
- Previous by thread: Re: Why doesn't this container center?
- Next by thread: Re: Why doesn't this container center?
- Index(es):
Relevant Pages
|