Announcement

Collapse
No announcement yet.

HTML Table - Going mad???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HTML Table - Going mad???

    Hi all,

    I have looked at this code about a million times now, and I just can't see where the problem is. If you take a look at http://www.tacklebargains.co.uk/acatalog/aboutus.htm

    You will see that on Chrome and IE8, there is a gap either side of the background image of the main table (in smart theme). This is happening on all pages with that header, plus some of the similar style tables we use in our smart right bar.

    The code for this is:

    Code:
    <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" bgcolor="#FFFFFF" width="13" align="left"><img src="theme_tab1_left.gif" alt="Left tab" /></td><td background="theme_tab_bg.gif" width="100%" height="20"><span class="boxheading">About Us</span></td><td valign="top" bgcolor="#FFFFFF" width="13" align="right"><img src="theme_tab1_right.gif" alt="Right tab" /></td></tr>
    and I know the central <td> is 100% but I had been playing around with this last night but to no avail.

    So if anyone is able to shed any light or give any suggestions while I still have hair left, I would be really pleased!

    Cheers,

    Stuart
    Tacklebargains.co.uk

    Located: Cheshire, UK

    #2
    Possible bug.

    It does sound like a bug to me. One reason why I hate tables for page layout (apart from the fact it's not good semantic HTML anyway).
    I have noticed similar things with IE8.
    Steve Griggs.

    "People in business often miss opportunities, mainly because they usually arrive dressed in overalls and looking like work."



    www.kitchenwareonline.com
    www.microwave-repair.co.uk

    Comment


      #3
      Just a quick something to check...

      When specifying widths make sure you either use % or px etc etc

      On your cells you have left the px off the widths which causes some browsers to misinterperate the widths.

      Comment


        #4
        Add % yes, not px, no need, just the numbers for px.

        Comment


          #5
          Does depend on the document type and browser though.

          Try that with XHTML doc type in firefox and things can start jumping all over the shop.

          Comment

          Working...
          X