stoo_s Posted April 28, 2015 Share Posted April 28, 2015 I'm using a table in my long description section for the products pages but am having trouble trying to align the text to the top instead of center. I've had a look in global.css and in products.css but can't find the section I need to change to achieve this. Have a look here to see the problem: http://www.thelearningemporium.co.uk/shop/numeracy/16-city-of-zombies.html?search_query=zombies&results=5 So instead of vertically aligning to the center I want it to vertically align to the top. Any help is much appreciated. Thanks, Stuart Link to comment Share on other sites More sharing options...
dioniz Posted April 28, 2015 Share Posted April 28, 2015 You can give your td css style vertical-align:top I think it would be better to define that in css file. You can give your table a class and then define css for it in global.css Link to comment Share on other sites More sharing options...
stoo_s Posted April 28, 2015 Author Share Posted April 28, 2015 Thanks for the help. I ended up taking the style 'vertical align: top' and adding it to the responsive-tables.css file. So that instead of table td, table th { padding: 9px 10px; text-align: left; } it now reads table td, table th { padding: 9px 10px; text-align: left; vertical-align: top; } Works perfectly for anyone looking to achieve the same. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now