+ 1
If I write <hr width="50%" align="1% right" /> then output line comes in the center,though it is supposed to be at right side?
Can anyone tell why it is happening this way? ?
8 odpowiedzi
+ 10
Don't use html attributes to style your elements, most of them are deprecated with Html5, but Css instead ^^
+ 8
Anyway, with old syntax of align attribute, this will work with:
<hr width="50%" align="right">
... as it's not valid to set align="1% right" ^^
Whatever, you can do it with 'margin' values Css property ( as suggested by @Yaroslav Pieskov ):
hr {
width:50%;
margin-left:auto;
margin-right:1%;
}
+ 2
it's a block element with margin-left and margin-right = auto. try to turn off auto margin before
0
It looks like a forward message 😕
0
don't add 1%. just align="right"