Borders showing in table on HTML and Ad module

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheGLForum
    Senior Member
    • Jul 2014
    • 338
    • 5.0.X

    Borders showing in table on HTML and Ad module

    Not really sure why, but I have a table in my HTML with border="0" and cellspacing="0", yet a border is showing up when the page is rendered. I have tried both the HTML and the AD module and it does it in both places:

  • BirdOPrey5
    Senior Member
    • Jul 2008
    • 9613
    • 5.6.3

    #2
    CSS is overriding the HTML attributes. You need to add your own CSS, one way is with inline CSS...

    Code:
    <table border="0" cellspacing="0" style="border: 0; padding: 0; margin: 0;">
    also add the
    Code:
    style="border: 0; padding: 0; margin: 0;"
    part inside each <td> tag-

    Code:
    <td style="border: 0; padding: 0; margin: 0;">
    Would be beneficial to read up on CSS and how it works if you are unfamiliar.

    Comment

    • TheGLForum
      Senior Member
      • Jul 2014
      • 338
      • 5.0.X

      #3
      Joe, great info. Thanks!

      Last edited by TheGLForum; Thu 9 Oct '14, 4:08am.

      Comment

      Related Topics

      Collapse

      Working...