If frameborder is obsolete, why does youtube still use it?

If frameborder is obsolete, why does youtube still use it?

You would have to ask YouTube why they have not replaced frameborder with a CSS equivalent.

1 Like

I read putting [border 0;] in style is the replacement for that.

Yes, it is. :slight_smile:
(don’t forget the colon)

it’s there.

1 Like

you mean, semicolon

No, I meant the colon between the word “border” and the zero.

2 Likes

style="border: 0;"

1 Like

If you already have a border, [border: 5px solid #5CB378;] adding an additional border: 0; would probably have no effect, right?

It depends on where those border assignments fall in CSS. The C stands for Cascading so assuming the same specificity the last border assignment is the one that is applied. In inline styles, the properties are read from left to right. The rightmost would win.

3 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.