w3c / Unicorn

Unicorn - W3C's Unified Validator
https://validator.w3.org/unicorn/
Other
127 stars 59 forks source link

Correcting “border” attribute destroys intended layout #197

Open HeRo002 opened 6 years ago

HeRo002 commented 6 years ago

Hi!

The page http://www.transformation.dk/test/border-test1.html has the intended layout, in terms of having a margin between the photo and the text-paragraph, but when you try to validate it you get the following 'info':

"The “border” attribute is obsolete. Consider specifying “img { border: 0; }” in CSS instead."

But when you correct that, the intended layout is destroyed - see: http://www.transformation.dk/test/border-test2.html

This is true in both Firefox ver. 56.0.2 (64-bit), MS-IE ver. 11.0.9600.18837 and Google Chrome Ver. 62.0.3202.94 (Officiel version) (64-bit). All under Windows 7 Home Premium SP1, 64-bit.