Thane Sherrington wrote:
> I noticed that if I use the following code:
>
> <style>
>       #RightGraphic{
>       position: absolute;
>       top: 5;
>       right: 5;
>       }
> </style>
>
> <img src="images/CarbonStandard.gif" alt="" name="RightGraphic" 
> id="RightGraphic" width="69" height="82" border="0" />
>
> with <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">, 
> then it image goes to the far right as expect, but when I switch to:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>
>
> 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?
>
> T
>
>
> _



It is not working as you intend because the CSS is not valid.

W3C CSS Validator results for file://localhost/TextArea (CSS level 2.1)
Sorry! We found the following errors (2)
URI : file://localhost/TextArea
3     #RightGraphic     Value Error : top only 0 can be a length. You 
must put an unit after your number : 5
4     #RightGraphic     Value Error : right only 0 can be a length. You 
must put an unit after your number : 5

Valid CSS information
#RightGraphic {
position : absolute;
}

<http://jigsaw.w3.org/css-validator/#validate_by_input>







http://jigsaw.w3.org/css-validator/validator

-- 
http://chelseacreekstudio.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/

Reply via email to