mds1256 Posted December 10, 2012 Share Posted December 10, 2012 Hi I use the following CSS (this is an example of my problem) but the CSS validator (w3c) reports that I have a redefination of top. When looking at the CSS that has parsed through the validator it seems to be removing the right:0px; attribute and changing it to top:0px; instead? Is there any reason why? css: /* CSS Document */ body{ margin-top:50px; } #wrapper{ position:relative; width:300px; height:200px; border:#000000 1px solid; } #test{ position:absolute; border:#000000 1px solid; top:-6px; right:0px; } html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]"> <html xmlns="[url="http://www.w3.org/1999/xhtml"]http://www.w3.org/1999/xhtml[/url]"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <link href="1.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="test">tegdsfgsdgdsgst</div> </div> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/271815-position-absolute-css-validator-error/ Share on other sites More sharing options...
kicken Posted December 11, 2012 Share Posted December 11, 2012 It validates just fine for me if I copy/paste the css into the direct input box at w3's validator. How are you running your validation? Quote Link to comment https://forums.phpfreaks.com/topic/271815-position-absolute-css-validator-error/#findComment-1398691 Share on other sites More sharing options...
mds1256 Posted December 11, 2012 Author Share Posted December 11, 2012 It validates just fine for me if I copy/paste the css into the direct input box at w3's validator. How are you running your validation? Hi, yeah it validates ok although it does show a warning (if you change the option to show all warnings) Quote Link to comment https://forums.phpfreaks.com/topic/271815-position-absolute-css-validator-error/#findComment-1398733 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.