SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    Vilnius, Lithuania
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Let's say I have a table tag like

    <table cellspacing="1" ...>

    how do I do that (cellspacing) in CSS?

    Thanks,
    SPAW Editor v.2 - web based wysiwyg editor for PHP and ASP.NET.
    Opera and Safari support, tabbed interface, floating toolbar...

  2. #2
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think you can.
    only cellpadding according to CSS Specification 1

    cellpadding :
    'padding-top'
    'padding-right'
    'padding-bottom'
    'padding-left'
    'padding'


    Though full support for these tags would be IE and Mozilla, and Opera.
    Netscape isn't fully supported.

    So i suggest you use the standard cellpadding and cellspacing
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  3. #3
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    Vilnius, Lithuania
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your reply! Actually I'm asking cause I haven't found it in specification. That's really sad and I can't see a reason why it's not included.
    Last edited by ailon; Mar 28, 2001 at 02:53.
    SPAW Editor v.2 - web based wysiwyg editor for PHP and ASP.NET.
    Opera and Safari support, tabbed interface, floating toolbar...

  4. #4
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LOL
    Maybe they will add that in CSS3?
    (Or is it supported in CSS2?)
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  5. #5
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    Vilnius, Lithuania
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But maybe there's some workaround through some attributes of cells like border or something!? It's pointless if I can't change cellspacing in a table by editing single (or few) line in one file (.css).
    SPAW Editor v.2 - web based wysiwyg editor for PHP and ASP.NET.
    Opera and Safari support, tabbed interface, floating toolbar...

  6. #6
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah..
    you could try setting a border....and making the border the colour of the background?
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  7. #7
    SitePoint Wizard
    Join Date
    Jan 2001
    Location
    Milton Keynes, UK
    Posts
    1,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try using 'border-spacing'.

    http://www.w3.org/TR/REC-CSS2/tables.html

  8. #8
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    Vilnius, Lithuania
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! But that's CSS2 -> not even try this in NS4
    SPAW Editor v.2 - web based wysiwyg editor for PHP and ASP.NET.
    Opera and Safari support, tabbed interface, floating toolbar...

  9. #9
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    Vilnius, Lithuania
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by shane
    Try using 'border-spacing'.

    http://www.w3.org/TR/REC-CSS2/tables.html
    Just tried: IE5.5 - no effect, Mozilla 0.8.1 - works as expected, NS4 - not even bothered to try
    SPAW Editor v.2 - web based wysiwyg editor for PHP and ASP.NET.
    Opera and Safari support, tabbed interface, floating toolbar...

  10. #10
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it shoudl work on IE5 on Macintosh computers too.
    Since that and Mozilla supports the standards to a gretaer extent.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  11. #11
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    td { padding-top:3px; padding-right:3px; padding-bottom:3px; padding-left:3px; }

    Is actually CSS1 compatible and Netscape STILL doesn't support it properly.

    A fantastic CSS1 reference:
    http://www.zvon.org/xxl/css1Reference/Output/

    and CSS2:
    http://www.zvon.org/xxl/CSS2Reference/Output/index.html

    and assorted other web tech:
    http://www.zvon.org/index.php?nav_id...nces&mime=html
    Last edited by creole; Mar 28, 2001 at 07:43.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  12. #12
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Netscpae only shows the padding top and some of padding left if i remember correctly.

    So if youre using padding, please specify different style sheet.

    If you use in netscpae, it might show sudden large empty spaces somewhere in your site design. that happened to me and the only solution was the remove some of thepadding tags. apparrently, padding right and bottom donn't work.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein


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
  •