Thane Sherrington wrote:
> <style>
> #RightGraphic{
> position: absolute;
> top: 5;
> right: 5;
> }
> </style>
[snip]
> It moves back to the left. Changing the top and right to 5% makes it
> work fine. Is this a feature of the strict setting, or is it
> something else I don't comprehend about CSS?
Hi Thane,
To be honest, I'm surprised it worked at all in the Transitional
doctype. I don't use the transitional model simply because I find it too
unpredictable. You'll find others on here who use it exclusively.
Presumably because it creates results more in tune with /their/
expectations. For me, I like my code to make sense when /I/ read it as
well as when it's parsed or applied by a browser or operating system.
When I see top:5 and right:5, I think 5 of what? The browser rightly
does the same when in Strict mode, thus popping your image to the left.
The only measurement which does not require anything with it is 0. This
is because 0px = 0em = 0% and so on. All other measurements require a
measurement so that the browser knows what to apply. I think it's a good
practice even if using a transitional model for either HTML or XHTML.
Hope that helps.
Bill Brown
TheHolierGrail.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/