<ul class="list-group">
<li class="list-group-item normal-row">TEST TEXT <span class="cross">✘</span></li>
<li class="list-group-item normal-row">TEST TEXT <span class="rtr_symbolcross"><span class="tick">✔</span></li>
<li class="list-group-item normal-row">TEST TEXT TEST TEXT TEST TEXT<span class="cross">✘</span></li>
<li class="list-group-item normal-row">TEST TEXT TEST TEXT<span class="tick">✔</span></li>
</ul>
.tick {
text-align: right;
}
.cross {
text-align: right;
}
https://jsfiddle.net/ewgp3oxL/
How can I make the above, look like:
So as you can see the ticks and crosses are all the way over at the right hand side, the css that I've tried does nothing to :S
I'm using a span because I also apply color, background color, font-size, font-weight, shadow... and some other stuff.
If you want to align a <span> element to the right of the <div>, you can use some CSS. Particularly, you need to use the float property with the “right” and “left” values.
To make a right-aligned version of the list, only three changes need to occur. First, set the "UL" "text-align" to "right". Second, change the left "background-position" from "0" to "100%" - which makes the image align up with the right edge. And finally change "padding-left" to "padding-right".
Text Align To center an inline element like a link or a span or an img, all you need is text-align: center . For multiple inline elements, the process is similar. It's possible by using text-align: center .
Pressing alt+shift+f on an HTML type document with a span next to a single quote forces the span onto a new line. Create a new document.
Change span position to absolute and right to 0px.
Here you can change the space between the cross/tick and the text.
li{
position:relative;
width:600px;
}
.cross, .tick {
position:absolute;
right:0px;
}
JSFidle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With