Andy-set-studio / modern-css-reset

A bare-bones CSS reset for modern web development.

Home Page:https://hankchizljaw.com/wrote/a-modern-css-reset/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding border:0 on iframes

paulburgess opened this issue · comments

This isn't a pull request as it may be deemed a bold move. Whereas I'm yet to experience any situation where a border is required on an iframe, I wonder if they exist by default for a reason I'm not aware of.

Having used this reset of a few recent projects, I find myself adding:

iframe {border:0}

Interesting! I almost always add the border rule on the iframe itself, but this would not hurt at all.

More than happy to take a PR for it!

Not having to specify the attribute at all is nice, but another reason to prefer CSS over the frameborder attribute is that the attribute is obsolete and will give off errors when validating HTML.