Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Isaac Lau
Isaac Lau
3,767 Points

HTML Reverse Table Order

Hi i try to reverse a table order but no effect. For some reason, i choose add css style into HTML content page. Please let me know if my direction are correct or not? or language miss-match?

show from recrod3 to record1

Thank You

Isaac Lau
Isaac Lau
3,767 Points
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
        <style>
                #contant {  
                    display: -webkit-flex; /* Safari */
    -webkit-flex-direction: column-reverse; /* Safari 6.1+ */
                        flex-direction: column-reverse;
                    }
                </style>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<table border='1' cellspacing='0' cellpadding='5'> 
<tr style='background-color: #BBBBBB'> 
<td width='150'>Last Name</td> 
<td width='150'>First Name</td> 
<td width='300'>Email Address</td> 



<ul class="column-reverse">
<tr><td>LastName1</td><td>FirstName1</td><td> 
Email1
</td></tr>
<tr><td>LastName2</td><td>FirstName2</td><td>
Email2
</td></tr>
<tr><td>lastName3</td><td>FirstName3</td><td>
Email3
</td></tr>
</ul>

</table>

</body>


</html>

1 Answer

It doesn't seem like you have an element of id "contant" so your style cannot be applied to anything.