Yes – you could use a percentage for the margin and padding attributes.
.element {
margin-left: 25%;
}
solved How to set a relative position/size to the screen for elements in CSS/HTML? [closed]
Yes – you could use a percentage for the margin and padding attributes.
.element {
margin-left: 25%;
}
solved How to set a relative position/size to the screen for elements in CSS/HTML? [closed]