Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Adding border:0 on iframes #17

Open
paulburgess opened this issue Nov 26, 2019 · 2 comments
Open

Adding border:0 on iframes #17

paulburgess opened this issue Nov 26, 2019 · 2 comments

Comments

@paulburgess
Copy link

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}
@Andy-set-studio
Copy link
Owner

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!

@Malvoz
Copy link

Malvoz commented May 16, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants