Posted by David Dorward on 06/22/06 06:29
rosdi wrote:
> I tried to separate my table rows a few pixels away from each other,
> but my css below doest work, why?
> <!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">
> <head>
> <style type="text/css">
> <!--
Two reasons, first - you commented out your stylesheet. So it will be
ignored (unless you're serving your XHTML as text/html, in which case -
what's the point?).
Second, tables are different when it comes to layout. Try border-spacing
instead.
http://www.w3.org/TR/CSS2/tables.html#separated-borders
I don't think anything exists that will work in MSIE though.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
[Back to original message]
|