Paul,
Before you jump for joy at this solution you should be aware that it is not
supported across older browsers like the Netscape4's and IE4's. More
importantly, it is not supported in Win/IE5 or Win/IE5.5. This may not be an
issue.
For more details, take a look at this:
Thanks for the clarifications, Russ. So...
Before you jump for joy at this solution you should be aware that it is not
supported across older browsers...
It's not a big issue, but it's not trivial either: if I want to center an
img AND have it supported by older browsers (which shouldn't be
Paul,
The short answer is that if you want to support IE5 and IE5.5 (which are
both still very popular browsers) then one method you could use is to wrap
your image in a container and use text-align: center;
To your other question...
It is important to start any site with the usual technical
The short answer is that if you want to support IE5 and IE5.5 (which are
both still very popular browsers) then one method you could use is to wrap
your image in a container and use text-align: center;
Okay, got that one nailed down now, I think. ;-)
To your other question...
[snip]
A
Paul Ingraham wrote:
Gotta wrap it in p/p and center the contents of the paragraph?
That wouldn't be a failing of CSS, but rather, of the older, very
outdated (as opposed to IE6, which is just outdated) browsers. To
expect someone to upgrade their browser I think is much more reasonable
define the size of img in CSS too:
#largediagram img { width: 350px; height: 200px; }
From: Nelson Ford [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [WSG] small css question
Date: Tue, 27 Apr 2004 12:49:11 -0700
On 27-Apr-04, at 12:36 PM, Paul Ingraham wrote
Thanks John and Nelson.
Hey Paul, I just realized that I was incorrect saying that you can
apply text-align: center; directly to the image. If would have to be
wrapped in another tag, with that rule applied to the parent.
So it looks the answer to my original question is, Yes, to center an
So it looks the answer to my original question is, Yes, to center an image
using css, it really is necessary to wrap it in a block level element with
text-style:center defined. Huh!
No, it isn't. As Nelson suggested, using {display : block; margin : 0
auto;} you're not wrapping the img in
Paul Ingraham wrote:
So it looks the answer to my original question is, Yes, to center an image
using css, it really is necessary to wrap it in a block level element with
text-style:center defined. Huh!
No, it isn't. As Nelson suggested, using {display : block; margin : 0
auto;} you're
That's a great trick, too.. simplicity all the way.
Yep, that was definitely the kind of solution I was hoping for.
Re the egg thing, Noa wrote:
Stranger in a Strange Land, OBVIOUSLY. *rolls eyes*
:-) I didn't figure it would be particularly hard, although I did get a
couple of wrong
10 matches
Mail list logo