Width and height works in inline css but not in external css

<video class="anim-logo" width="160" height="100%" autoplay muted playsinline>
<video class="anim-logo" width="160" height="100%" autoplay muted playsinline>
When i remove the width and height from the inline css and put it in css targeting the class anim-logo like this
.anim-logo {
width: 160;
height: 100%;
}
.anim-logo {
width: 160;
height: 100%;
}
Then width and the height doesn't takes in effect like it did if I put it in the html. Why?
3 Replies
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Mannix
Mannix•3y ago
well you need to add px to width in css for it to work now it's not valid 🙂
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server