Jump to content

W3css Vertical align not working


gordonisnz
 Share

Recommended Posts

Hello.

I'm using a copy of https://www.w3schools.com/w3css/4/w3.css

Basically I have a table with 4 TD entries per row. 3 of them are just numbers & the 4th has text in it. Sometimes the text column is very long & goes onto several lines.

When this happens, the 3 number fields are vertically-aligned to the middle. 

How can i alter my text to vertically-align the whole row to the top ? Ive put the Srtyle tag in the TR field and / or the TD fields - nothing works.

Im (currently) using 

<tr class='w3-margin'  stye='vertical-align: text-top'><td>31</td>
<td>01</td><td>3</td>
<td class='w3-left w3-left-align'>TEXT HERE<br /><br /></td></tr>

Link to comment
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
 Share

×
×
  • Create New...