It’s a long time since I have posted a query but I cannot get a table cell to align properly.
I know that the cells are set to align center due to the TD+child+child setting,
But I want one specific cell in that second row to align left.
The web page is c5d.co.uk/1939LFVD.php
The table is classed as “table1939”
The cell is in the row above 10 wakefield road. I want SBge to align left of that cell if possible
Any help would be welcome.
Antony
PaulOB
2
If you match the specificity you can change the alignment to left as required. You don’t have a special class on that cell so you could do this:
.table1939 tr td[colspan="11"] +td{
text-align:left;
background:red;/* for testing only*/
}
Note the code above will apply to all cells that follow a colspan=“11” which I’m assuming is what you want?
If you only want the one cell targeted then add a class in the html to the cell in question and use it with my code above.
e.g. Assuming a classname called .special.
.table1939 tr td[colspan="11"] +td.special{
text-align:left;
background:red;/* for testing only*/
}
1 Like
Thank you.
It was the second option I wanted. It works perfectly.
1 Like
Paul is so good solving problems. Paul has been very helpful to me!
1 Like
system
Closed
6
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.