I have a list and I want to alight part of that list to the right hand side. So the money I want to justify up to the right border of the space...
This is what I had..
<ul>
<li>Fred £20</li>
<li>Bob £40</li>
</ul>
So I tried..
<ul>
<li>Fred <span class="text-align:right" > £20</span></li>
<li>Bob <span class="text-align:right" > £40</span></li>
</ul>
But that does not work, anyone know what I am doing wrong?
Thanks
It sounds like your designer needs to learn when to use them for the right reasons![]()
The designer was asked to put a list in sometime in January, he put the list in and styled accordingly, he finished the job in February and was paid in February, I have not spoken to him since then.
A new requirement came in sometime in the summer where a monetary value was asked to be put in to the list and I do not think it is a totally ridiculous question to ask how to align a bit of text up against the right hand side of it's area's border.
Quite why you wanted to come into this knowing bugger about the history leading up to the thread and start being an arse by questioning the ability of some one you have never met based on a piece of work you have never seen is only something you can answer. I tend not to come up with assumptions based on minor facts like yourself.

blah blah blah
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
ul {
list-style: none;
border: 1px solid #000;
width: 400px;
}
ul span {
float: left;
}
ul span.currency {
float: right;
}
li {
clear: both;
overflow: hidden;
}
</style>
</head>
<body>
<ul>
<li><span>Blah di blah</span> <span class="currency">£3.75</span></li>
<li><span>Foo di foo</span> <span class="currency">£23.00</span></li>
<li><span>boogle oogle oogle</span> <span class="currency">£1234.56</span></li>
</ul>
</body>
</html>