SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot Tech9's Avatar
    Join Date
    Oct 2004
    Location
    Arlington, TX
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Border not showing?!

    My border isnt show that is supposed to go around my hole site, i wanted it to be a 1px 000000 color border

    <html>
    <head>
    <title>testing width</title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" type="text/css" href="style.css" />
    <body bgcolor=#f7f7f7 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>
    <table class="tableMain" width="981" cellpadding="0" cellspacing="0"align="center">
    <table width="980" border="0" cellpadding="0" cellspacing="0"align="center">
    <tr>
    <td class="tdtop" valign="top" background="banner.jpg" width="980" height="120" /></td>
    </tr>
    <tr>
    <td valign="top" background="nav.jpg" width="980" height="50" /></td>
    </tr>
    <tr>
    <td class="tdcopyright" background="footer.jpg" width="980" height="20"><center> 2004 Team Syst3mat!k All Rights Reserved</center></td>
    </tr>
    <tr>
    <td class="tdfooter" width="980" height="35" bgcolor="#2a2a2a"><center>Home | Forums | Support | Privacy Policy</center></td>
    </tr>
    </table>
    </body>
    </html>
    css
    .tableMain {
    border: 1px solid #000000;
    }
    can anyone please help me www.teamsik.net/teamsiknet

    thx

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,877
    Mentioned
    160 Post(s)
    Tagged
    4 Thread(s)
    Hi,

    Disregarding the debate of css versus tables the main problem is that your tables are formatted incorrectly.

    Here is the correct format:
    Code:
    <table class="tableMain" width="981" cellpadding="0" cellspacing="0" align="center">
      <tr> 
    	<td> <table width="980" border="0" cellpadding="0" cellspacing="0"align="center">
    		<tr> 
    		  <td class="tdtop" valign="top" background="banner.jpg" width="980" height="120">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    		</tr>
    		<tr> 
    		  <td valign="top" background="nav.jpg" width="980" height="50">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    		</tr>
    		<tr> 
    		  <td class="tdcopyright" background="footer.jpg" width="980" height="20"><center>
    			   2004 Team Syst3mat!k All Rights Reserved</center></td>
    		</tr>
    		<tr> 
    		  <td class="tdfooter" width="980" height="35" bgcolor="#2a2a2a"><center>
    			  Home | Forums | Support | Privacy Policy</center></td>
    		</tr>
    	  </table></td>
      </tr>
    </table>
    The border should now show

    Its good practice to validate your page and simple errors like these will show up immediately.

    Paul

  3. #3
    SitePoint Zealot Tech9's Avatar
    Join Date
    Oct 2004
    Location
    Arlington, TX
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey paul thx man, do you think you could help me with this other problem i am having if you look at www.teamsik.net/teamsiknet you will see a little logo to the bottom in the middle of Home | Forums blah i cant get the text to be in the middle of the banner instead of being at the bottom of it im stuck could you pls help

    thx

    <td class="tdfooter" width="980" height="35" bgcolor="#2a2a2a"><center>
    Home | Forums <img src="small.jpg"> Support | Privacy Policy</center></td>

  4. #4
    SitePoint Addict JamieJelly's Avatar
    Join Date
    Jan 2004
    Location
    London
    Posts
    226
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the answer isn't css as you are using tables but here goes:


    HTML Code:
    <td class="tdfooter" width="980" height="35" bgcolor="#2a2a2a" valign="middle"><center>
    Home | Forums <img src="small.jpg"> Support | Privacy Policy</center></td>
    You use "valign" for vertical alignment.
    International calls from the UK
    Cheap International Calls

  5. #5
    SitePoint Zealot Tech9's Avatar
    Join Date
    Oct 2004
    Location
    Arlington, TX
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it didnt fix it www.teamsik.net/teamsiknet

  6. #6
    SitePoint Addict RamsayX's Avatar
    Join Date
    Oct 2003
    Location
    Canada
    Posts
    324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You've got an extra bit of code you dont need:
    </td></tr></table>
    Hope that helps.
    Personal Portfolio
    Paul O'B is the CSS god

  7. #7
    SitePoint Zealot Tech9's Avatar
    Join Date
    Oct 2004
    Location
    Arlington, TX
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i got it :P

  8. #8
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,877
    Mentioned
    160 Post(s)
    Tagged
    4 Thread(s)
    Glad you sorted it (with the help from those above) and sorry I didn't reply earlier but I had an early night


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
  •