Jump to content
Sign in to follow this  
strmiba

CSS problem?

Recommended Posts

strmiba    0
strmiba

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


Göteborg:

Mikael Båth

Pontus Wiknersgatan 1

411 32 Göteborg

076-030 6873

mikael.bath@ixnix.co.uk

http://www.9nine.se

London:

Ixnix Group Ltd.

8 Russell Street

Westminster

London WC2B 5HZ

http://www.ixnix.co.uk

Share this post


Link to post
Share on other sites
kastelic    6
kastelic
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
strmiba    0
strmiba
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.

Göteborg:

Mikael Båth

Pontus Wiknersgatan 1

411 32 Göteborg

076-030 6873

mikael.bath@ixnix.co.uk

http://www.9nine.se

London:

Ixnix Group Ltd.

8 Russell Street

Westminster

London WC2B 5HZ

http://www.ixnix.co.uk

Share this post


Link to post
Share on other sites
Jackey    29
Jackey
@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
strmiba    0
strmiba
Thank you! I love the support on this forum.

Göteborg:

Mikael Båth

Pontus Wiknersgatan 1

411 32 Göteborg

076-030 6873

mikael.bath@ixnix.co.uk

http://www.9nine.se

London:

Ixnix Group Ltd.

8 Russell Street

Westminster

London WC2B 5HZ

http://www.ixnix.co.uk

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  

×