Jump to content

Archived

This topic is now archived and is closed to further replies.

jane

Styling table - why is everything centred?

Recommended Posts

jane

Hello,

 

I'd like more control over how my tables look. For example on this page: all the text is centred. How do I get it to be left justified?

 

Thanks

Share this post


Link to post
Share on other sites
Danny

Hi,

 

You can give your table a custom class and then add that class to the following custom CSS:

 

#site table table-class-here td {
text-align: left;
}
 
So you Markup would like this:
 
<table class="table table-condensed table-class-here">
 

Of course you would want to replace table-class-here with your own.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
jane

Thanks for the quick reply much appreciated - I will try that out!

Share this post


Link to post
Share on other sites
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×