Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to specify cellspacing & cellpadding in css?

    Hello,

    I have to change this HTML code <table width="100%" border="1" cellspacing="1" cellpadding="3"> to css code. I have done with width and border attribute but don't know how to set cellspacing and cellpadding attributies in css code.

    Please, help me asap. Thank you very much!
    Last edited by wood_flower; 03-14-2005 at 10:04 AM.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Padding, margins

    Padding on the individual cells can be set through the padding property; cell spacing should be controllable with styles in the separated borders model, but is not correctly supported by IE. If you need the cells to be spaced out, it's adviced to maintain using the cellspacing attribute.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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