SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast ro88o's Avatar
    Join Date
    Jun 2006
    Location
    Manchester, UK
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Correctly Linearizing a Table Which Should Be Read in Columns

    Hi all,

    I have a table which should be read in columns, here's an example of my page:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB"> 
    <head><title>Trains Tables</title></head>
    <body>
    	<h1>Table of Trains</h1>
    	<table id="trains" summary="Trains in the upcoming hours...">		
    	  <thead>
    		  <tr>
    			<th scope="col"></th>
    			<th id="northern" scope="col" axis="area">Northern Line</th>
    			<th id="southern" scope="col" axis="area">Southern Line</th>
    		  </tr>
    	  </thead>
    	  <tbody>
    		  <tr>
    			<th id="now" axis="time" scope="row">Now</th>
    			<td headers="northern now">
    				Pendolino
    			</td>  	    
    			<td headers="southern now">
    				KTX
    			</td>  	        
    		  </tr>
    		  <tr>
    			<th id="next" axis="time" scope="row">Next</th>
    			<td headers="northern next">
    				Slow Steam Train
    			</td>  	    
    			<td headers="southern next">
    				Super Fast Train
    			</td>  	        
    		  </tr>
    	  </tbody>
    	</table>
    </body>
    When the table is linearized, rather than horizontal cells being placed after each other (and hence the table be read Northern, Southern, Now, Pendolino...) I want the columns to appear after each other so that the table is read Northern, Pendolino, Slow Steam Train, Southern...

    Is there a way to get this to happen?

    Cheers, Tom
    Last edited by ro88o; Jul 30, 2009 at 07:01.
    www.nubornis.com
    Web Development from Nuborn Internet Services

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think it matters from a usability standpoint because you've defined the scope on all th-elements. But maybe you where thinking of something else? When the page is linearized, everithing is going to show up in the same order as you put it in the html file.
    You know I'm not gon diss you on the internet
    Cause my mama taught me better than that


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •