SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Quake 1 Addict CreedFeed's Avatar
    Join Date
    Feb 2002
    Location
    Milwaukee, WI
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Table cellpadding and cellspacing with CSS resets?

    I am using a CSS reset file to reset all margins and paddings. When I create a table using the standard table tag now the cellpadding and cellspacing attributes do not affect the actual table. Is there a good way to use CSS resets yet still retain the functionality of the table cellpadding and cellspacing attributes WITHOUT having to use CSS to style the table?

    (The site I am working on is for a client without HTML knowledge. The site utilizes a CMS with a WYSIWYG and when you add a table to the page it uses cellpadding and cellspacing. Because of the CSS resets, those attributes do not modify the display of the table.)
    -- Steve Caponetto
    Quake 1 Resurrection :: CreedFeed

  2. #2
    Quake 1 Addict CreedFeed's Avatar
    Join Date
    Feb 2002
    Location
    Milwaukee, WI
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind, I figured it out. I added

    HTML Code:
    table { border-collapse:separate; }
    to my CSS file and cellpadding and cellspacing attributes now work.
    -- Steve Caponetto
    Quake 1 Resurrection :: CreedFeed


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
  •