[Gllug] [OT?] Please sign my Google petition ...

Ian Norton bredroll at darkspace.org.uk
Fri Jun 11 11:04:34 UTC 2004


On Wed, Jun 09, 2004 at 11:34:34AM +0100, Tethys wrote:
> 
> "Daniel P. Berrange" writes:
> 
> So tell me how to get a centred table in Strict. That's the only thing I
> still use Transitional for. If you try:
> 
> 	<div style="text-align: center;">
> 	<table>
> 		[...]
> 	</table>
> 	</div>
> 
> then it just appears left justified (in both Gecko and KHTML, so it's
> either a bug in both rendering engines, or I'm just doing something
> wrong). I'm guessing it's because text-align only applies to inline
> elements, which probably doesn't include tables. This, however, works:
> 
> 	<div align="center">
> 	<table>
> 		[...]
> 	</table>
> 	</div>
> 
> Anyone know how I can do this properly?
> 

It's a bit of a hack, but it works, it's slightly less text than some of the
other solutions,

http://void.printf.net/~bredroll/gllug_xhtml/

Enjoy.

Ian

-- 
/* www.darkspace.org.uk {
 web development, application development, consultancy, firewalls 
 */
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list