| 
	
 | 
 Posted by Jukka K. Korpela on 02/26/07 07:28 
Scripsit Gérard Talbot: 
 
> Why do you want to use a table for that page title? Your title 
> "Worldwide Wheelchair Accessible Washrooms" has nothing, absolutely 
> nothing to do with tabular data. 
 
First, I'd like to point out that the word "title" is ambiguous in HTML  
contexts. It could refer to the external title of a page (the <title>  
element), to an advisory, tooltip-like text attached to an element (via a  
title attribute), or some of the many heading-like elements like <h1> thru  
<h6>, or <caption>, or <th>. So it's better to refer to the <h1> element as  
the main heading (or page heading). 
 
> <h1 style="text-align: center; border: 3px solid black;">Worldwide 
> Wheelchair Accessible Washrooms</h1> 
 
No, it's not quite that simple. The current design makes the box as wide as  
the text (plus padding and border), whereas an <h1> element by default  
occupies the entire available width (normally, canvas width minus some  
paddings or margins of the <body> element). I'm afraid a single-cell table  
is the simplest way to achieve that (in a way that works on most browsers).  
For a CSS solution, you would probably have to use artificial <span> markup  
(<h1><span>...</span></h1>) and set the border and background for the  
<span>. 
 
--  
Jukka K. Korpela ("Yucca") 
http://www.cs.tut.fi/~jkorpela/
 
  
Navigation:
[Reply to this message] 
 |