2 replies [Last post]
jb37102
Offline
newbie
Last seen: 13 years 9 weeks ago
Joined: 2007-08-25
Posts: 2
Points: 0

I'm trying to move words in a td tag which I can only adjust using CSS (it's hosted content).

It's in a twice nested table.

Tables from outer to inner are:

an example tr/td in this last table is:

Journal Name



ISSN:




The already has an align=right but it is pushed to the left for some reason. I have tried a number of things, but I can't get it to move. My CSS for it is:
.RefinerLabel {
color: #980404;
margin-left: 20px;
}

Is there some other way to get it to move over to the right???

You can see the page here

Thank you!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 41 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

It's a specificity issue you

It's a specificity issue you can't align the text as a heavier weighted rule is left aligning the text.

This regains you control:

#intTopBodyTable td.RefinerLabel {text-align:right}

I have to mention though that that is an awful bit of coding on so many levels, sorry!

Not apart from the fact that it has deep nested tables for what is a very simple set of form controls, it has a fair number of markup errors that simply should not be, the id naming is hard to follow, it won't be particularly accessible freindly.

I realise that you mention that it's 'hosted content' but not sure really what that means, I simply wouldn't accept that as valid acceptable code :shrug:

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

jb37102
Offline
newbie
Last seen: 13 years 9 weeks ago
Joined: 2007-08-25
Posts: 2
Points: 0

Thanks for the fix! Trust

Thanks for the fix!

Trust me, if I had real control of this page, it would be a lot different. I will bring this up with the company that hosts our content!