Ah, i only tried Firefox, try inline-block
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
CSS Help
Collapse
X
-
-
Shouldn't use a div. Try a span+50 Xeno Geek Points
Come back Toolpusher, scotspine, Voodooflux.Pogle
As for the rest of you - DILLIGAF
Purveyor of fine quality smut since 2005
CUK Olympic University Challenge Champions 2010/2012
Comment
-
Firstly, I think you meant to use style="text-align:right" but that won't work anyway. Quick easy way would be:Originally posted by minestrone View PostI 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
<ul>
<li style="width:100px">Fred<div style="float:right">£20</div></li>
<li style="width:100px">Bob<div style="float:right">£40</div></li>
</ul>Comment
-
So to confirm:
<style type="text/css">
.bigFloater {
float:right;
}
</style>
<ul>
<li style="width:100%">Fred<span class="bigFloater">£20</span></li>
<li style="width:100%">Bob<span class="bigFloater">£40</span></li>
</ul>
Works in Safari and cant be arsed testing beyond that.Comment
-
All wrong in FF 3.0.5
Price is right justified but a line below where it should be.+50 Xeno Geek Points
Come back Toolpusher, scotspine, Voodooflux.Pogle
As for the rest of you - DILLIGAF
Purveyor of fine quality smut since 2005
CUK Olympic University Challenge Champions 2010/2012
Comment
-
Tabular data goes in tables. That's what they're for.
We've spent most of this decade teaching people not to use tables for the wrong reasons. It sounds like your designer needs to learn when to use them for the right reasons
Comment
-
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.Originally posted by NickFitz View PostIt sounds like your designer needs to learn when to use them for the right reasons
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.Comment
-
Originally posted by minestrone View PostThe 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.
Comment
-
Oh, BTW:Originally posted by minestrone View Postblah blah blah
WFM in Firefox 3.5.2, Chrome 3.0 Beta, and IE 6.Code:<!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>Comment
-
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- How IR35 inflated an £8.5bn consultancy bill — and tests Burnham at the Budget Aug 28 07:47
- Autumn Budget 2026: FCSA’s 5 contractor asks of John Healey Aug 27 04:15
- Andy Burnham's Zoom gripe doesn’t apply to IT contractors, say recruiters Aug 26 03:41
- Check your Loan Recall paperwork for the Isle of Man: it could matter Aug 25 03:27
- Budget 2026: Contractor advisers ask for ‘IR35 reset’ Aug 24 04:57
- Why might an umbrella company fail to pay its total tax bill to HMRC? Aug 18 06:08
- Contractors, here are the late payment fixes that the Lords just turned down Aug 17 08:03
- How will HMRC's Direct Debit plan affect contractors paying VAT and PAYE? Aug 13 23:54
- HMRC's new 'reckless' tax offence: an IR35 game-changer for contractors? Aug 13 13:50
- “I’m not a Machiavellian overlord”: Adrian Sacco breaks his silence on the Contractor Loan Recalls Aug 13 06:50


Comment