• 0
Sign in to follow this  
Followers 0

CSS problem?

Question

Posted · Report post

I have a page where I read data from a table (MySQL) and list the result on a page. The problem I have is that all data are center-align and I can't figure out where I can change this to text-align: left. Sample page: http://ammarnasfvo.se.preview.binero.se/fangstrapport/ (psw: loftaan) or http://ammarnasfvo.se/fangstrapport/ Regards, Mikael

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Posted · Report post

Just getting a login screen at that link. But you can try to target the table and to this: [code]td { text-align: left }[/code]

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

You have the password in the first post. I can change most option for my db-result in a CSS but Pagelines Framework controls the text alignment. If I use some other theme all text are align to left. In my CSS for table views color control works fine but not the text alignment: .wct-td1 { background-color: #CCCCCC; text-align: left; } .wct-td2 { background-color: #EEEEEE; text-align: left; } I'm using a plugin called WordPress Custom Tables.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

@Mikael Indeed this is leaking through: [code].hentry table td, #comments table td { padding: .35em .6em; text-align: center; }[/code] Try this: [code].hentry table.wct-table tbody td { text-align: left; }[/code]

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thank you! I love the support on this forum.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0