SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Problem with NS4 - must be fixed for client

    I'm working on a site for a client. So far it looks like this: http://www.help4newbies.com/AA (make sure you're viewing w/ Netscape 4 or you won't see the problem). The only problem I'm having is centering the nested table so that there is a 1px border down each side. With IE6 and NS6 it works fine, but in NS4 it's still aligning the nested table to the left, causing there to be a 0px border and a 2 px border.

    Here is the nested table code:
    Code:
    <table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="#244695" align="center">
    <tr>
    <td align="center" valign="top">
    
    <table width="698" border="0" cellpadding="0" cellspacing="0">
    Could someone help me out?

    Also, does anyone have any ideas how to make the search box lign up in the bar nicer? (Also a NN4 problem).

    Thanks!
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  2. #2
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've not looked too much at your code, but from your post: have you tried making your border colour table 3 columbs, the left and right with a 1x1px spacer gif, and the middle with the centered content in your current one?

    I'd never trust all browsers to round off the same way att the time.. (I have a centered css bg, and sometimes it ligned up with a centerd table..sometimes not )

    You doing a site for Bill too?

    hth,
    Douglas
    Hello World

  3. #3
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    another idea is to give your outer table a cellspacing=1

    I tested this with your html and it did seem to help
    Last edited by freakysid; Jul 14, 2002 at 06:50.

  4. #4
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by DougBTX
    I've not looked too much at your code, but from your post: have you tried making your border colour table 3 columbs, the left and right with a 1x1px spacer gif, and the middle with the centered content in your current one?
    I had thought that was going to be too complicated, but I gave it a go and it ended up working out. It only took about half an hour to change all the code and get it working. So, thanks!
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  5. #5
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by freakysid
    another idea is to give your outer table a cellspacing=1

    I tested this with your html and it did seem to help
    Argh! Wish I would've seen this earlier.
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  6. #6
    SitePoint Enthusiast ListerMint's Avatar
    Join Date
    May 2002
    Location
    Iowa, USA
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    swimm5001,

    Here's a thought:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE></TITLE>
    </HEAD>
    <BODY>
    <TABLE WIDTH="700" BGCOLOR="#244595" ALIGN="center" BORDER="0" CELLPADDING="1" CELLSPACING="0">
    <TR>
    <TD>
    <TABLE WIDTH="100%" BGCOLOR="white" BORDER="0" CELLPADDING="4" CELLSPACING="0">
    <TR>
    <TD VALIGN="top">TEXT HERE<BR><BR><BR><BR><BR><BR><BR><BR><BR></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Here's another thought:
    You might want to consider separating your tables. You have got a lot stuff in only one table. It'll slow down your load time since the table format is read before it is loaded.

    ListerMint
    Oh! Drat these computers. They're so naughty and so complex. I could just pinch them.

    Visit Lint's Prints

  7. #7
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by swimm5001
    half an hour
    half an hour?!?!?!?!?



    It was only 2 cells??

    Douglas
    Hello World

  8. #8
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by DougBTX


    half an hour?!?!?!?!?



    It was only 2 cells??

    Douglas
    I know that. But adding the two cells resulted in a number of other changes to the code. I had to completely rework the PHP includes for other reasons that don't concern this. Anyways, thanks for the idea.
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  9. #9
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    aa, no problem then
    Hello World


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
  •