youngros Posted March 17, 2011 Report Share Posted March 17, 2011 I am trying to alter some of the CSS on the table I have www.sanssouciwebdesign.com/holytrinity/trinity_rooms I am able to alter the headers individually but not the table cells. I would like to be able to centre the text in all the columns except the left hand column, I want that to stay left aligned. I have tried al-sorts of things, but only seem to be able to apply it to all columns. Thanks Rosalind Quote Link to comment Share on other sites More sharing options...
falkencreative Posted March 17, 2011 Report Share Posted March 17, 2011 Couldn't you do this by setting all table cells to be center aligned, and only td.field-charge-value to be left aligned? Quote Link to comment Share on other sites More sharing options...
youngros Posted March 17, 2011 Author Report Share Posted March 17, 2011 If I put td.field-charge-value in my css file and add some style to it, nothing happens. I'm missing something on the css somewhere. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted March 17, 2011 Report Share Posted March 17, 2011 Looking at the source code, it looks like you are missing opening quotes on your table classes. You may need to fix that before you can apply styling on these tables. example: <td class=field-charge-value"> Quote Link to comment Share on other sites More sharing options...
youngros Posted March 17, 2011 Author Report Share Posted March 17, 2011 Thanks for that Ben, I will probably have to head over to Drupal to see why they are missing. I'd not noticed before. Quote Link to comment Share on other sites More sharing options...
youngros Posted March 17, 2011 Author Report Share Posted March 17, 2011 A quick google for the missing quote turned up trumps on the theme I am using <td class=<?php print $fields[$field]; ?>"> to <td class="<?php print $fields[$field]; ?>"> all patched and now all working. Thanks Ben Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.