Help please?

  • iveysaur
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 08, 2009
  • Posts: 18
  • Loc: Florida
  • Status: Offline

Post July 8th, 2009, 12:29 am

Mkay so, I'm converting my website to XHTML, and I have a problem..

I have a table layout but the XHTML validator won't accept, "bordercolor."

Code: [ Select ]
Line 15, column 20: Attribute "bordercolor" is not a valid attribute


... Or, "border-color."

Code: [ Select ]
Line 15, column 21: Attribute "border-color" is not a valid attribute


So, I tried to put the table style on my style sheet; Now the validator accepts it, but the style of the table won't show up at all.

Here's what I have on my style sheet.

Code: [ Select ]
 .table1     {cellpadding: 0px;
            width: 800px;
            background-color: #b9fbcd;
            border: 1px solid #000000; } 
  1.  .table1     {cellpadding: 0px;
  2.             width: 800px;
  3.             background-color: #b9fbcd;
  4.             border: 1px solid #000000; } 


And the actual page.

Code: [ Select ]
 <table class="table1">
-didn't copy all the stuff in the table-
</table>
  1.  <table class="table1">
  2. -didn't copy all the stuff in the table-
  3. </table>


Can anyone help? c:
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 8th, 2009, 12:29 am

  • CXLink
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 22, 2004
  • Posts: 684
  • Loc: ATL-GA
  • Status: Offline

Post July 8th, 2009, 10:14 am

Have you tried using table.table1 instead of just .table1?
Push-Here ::: Web Design + Identity
WordPress - like mayonnaise - goes great with anything
We adore chaos because we love to produce order. -M. C. Escher
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post July 8th, 2009, 10:23 am

is it accepting the width, background-color, and cellpadding properties? Or no styles whatsoever?
Use your words like arrows to shoot toward your goal.
  • iveysaur
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 08, 2009
  • Posts: 18
  • Loc: Florida
  • Status: Offline

Post July 8th, 2009, 2:31 pm

@CXLink: I have, no help.

@mindfullsilence: The validator or the table? The validator accepts the styles, and the table isn't excepting any of them.
  • CXLink
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 22, 2004
  • Posts: 684
  • Loc: ATL-GA
  • Status: Offline

Post July 9th, 2009, 6:16 am

switch up your html

Code: [ Select ]
<table class="table1">
<tr>
    <td>didn't copy all the stuff in the table</td>
</tr>
</table>
  1. <table class="table1">
  2. <tr>
  3.     <td>didn't copy all the stuff in the table</td>
  4. </tr>
  5. </table>


got it working in ff3.5 on OSX
Push-Here ::: Web Design + Identity
WordPress - like mayonnaise - goes great with anything
We adore chaos because we love to produce order. -M. C. Escher
  • iveysaur
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 08, 2009
  • Posts: 18
  • Loc: Florida
  • Status: Offline

Post July 9th, 2009, 1:53 pm

What did you change? Should I just paste everything I have in the table so it would be easier for you to see what I did wrong. Because that looks the same. o.o
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 9th, 2009, 4:46 pm

Sure, post what you got here
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • iveysaur
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 08, 2009
  • Posts: 18
  • Loc: Florida
  • Status: Offline

Post July 9th, 2009, 6:47 pm

Alright.

Code: [ Select ]
<table class="table1">
<tr>
<td height="250" width="800" colspan="3" valign="top">
<img src="http://i25.tinypic.com/15hif42.jpg" alt="banner" /></td>
</tr>
<tr>
<td height="600" width="150" valign="top">
 
<div id="nav">
<h1>Site</h1>
<a href="">Test</a>
</div>
 
</td>
<td height="600" width="500" valign="top">
 
</td>
<td height="600" width="150" valign="top">
 
</td>
</tr>
<tr>
<td height="50" width="800" colspan="3" valign="top">
 
</td>
</tr>
</table>
  1. <table class="table1">
  2. <tr>
  3. <td height="250" width="800" colspan="3" valign="top">
  4. <img src="http://i25.tinypic.com/15hif42.jpg" alt="banner" /></td>
  5. </tr>
  6. <tr>
  7. <td height="600" width="150" valign="top">
  8.  
  9. <div id="nav">
  10. <h1>Site</h1>
  11. <a href="">Test</a>
  12. </div>
  13.  
  14. </td>
  15. <td height="600" width="500" valign="top">
  16.  
  17. </td>
  18. <td height="600" width="150" valign="top">
  19.  
  20. </td>
  21. </tr>
  22. <tr>
  23. <td height="50" width="800" colspan="3" valign="top">
  24.  
  25. </td>
  26. </tr>
  27. </table>


Code: [ Select ]
table1      {width: 800px;
            background-color: #b9fbcd;
            border: 1px solid #000000; }
  1. table1      {width: 800px;
  2.             background-color: #b9fbcd;
  3.             border: 1px solid #000000; }
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 9th, 2009, 6:55 pm

so... what is your problem again? I checked the CSS in the validator and it found it valid...

The HTML though, you can't have height and width in the HTML... gotta do that with CSS using classes or ids.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • iveysaur
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 08, 2009
  • Posts: 18
  • Loc: Florida
  • Status: Offline

Post July 9th, 2009, 7:15 pm

The problem is the style for the table won't work.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 9th, 2009, 7:31 pm

What doesn't work? It works for me...


Or do you mean the border for the cells? If so, do the following.
Code: [ Select ]
.table td {
    border: 1px solid #000000;
}
  1. .table td {
  2.     border: 1px solid #000000;
  3. }
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • iveysaur
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 08, 2009
  • Posts: 18
  • Loc: Florida
  • Status: Offline

Post July 9th, 2009, 7:45 pm

None of the style for the whole table is working. I think it might be something within the rest of the code or something.. I'm going to just paste everything.

Code: [ Select ]
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
<link rel="stylesheet" type="text/css" href="http://neopets.metrellie.comuv.com/style.css" />
<title>Metrellie~</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
 
<body>
 
<center>
 
<table class="table1">
<tr>
<td height="250" width="800" colspan="3" valign="top">
<img src="http://i25.tinypic.com/15hif42.jpg" alt="banner" /></td>
</tr>
<tr>
<td height="600" width="150" valign="top">
 
<div id="nav">
<h1>Site</h1>
<a href="">Test</a>
</div>
 
</td>
<td height="600" width="500" valign="top">
 
</td>
<td height="600" width="150" valign="top">
 
</td>
</tr>
<tr>
<td height="50" width="800" colspan="3" valign="top">
 
</td>
</tr>
</table>
 
</center>
 
</body>
 
</html>
  1.   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4.  
  5. <head>
  6. <link rel="stylesheet" type="text/css" href="http://neopets.metrellie.comuv.com/style.css" />
  7. <title>Metrellie~</title>
  8. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  9. </head>
  10.  
  11. <body>
  12.  
  13. <center>
  14.  
  15. <table class="table1">
  16. <tr>
  17. <td height="250" width="800" colspan="3" valign="top">
  18. <img src="http://i25.tinypic.com/15hif42.jpg" alt="banner" /></td>
  19. </tr>
  20. <tr>
  21. <td height="600" width="150" valign="top">
  22.  
  23. <div id="nav">
  24. <h1>Site</h1>
  25. <a href="">Test</a>
  26. </div>
  27.  
  28. </td>
  29. <td height="600" width="500" valign="top">
  30.  
  31. </td>
  32. <td height="600" width="150" valign="top">
  33.  
  34. </td>
  35. </tr>
  36. <tr>
  37. <td height="50" width="800" colspan="3" valign="top">
  38.  
  39. </td>
  40. </tr>
  41. </table>
  42.  
  43. </center>
  44.  
  45. </body>
  46.  
  47. </html>


Stylesheet:

Code: [ Select ]
body        {background-color: #0b140f;
            font-family: century gothic;
            color: #000000;
            font-size: 12px}
           
h1          {font-family: century gothic;
            text-transform: none;
            text-align: center;
            margin: 1;
            border-bottom: 1px #42815b dashed;
            color: #42815b;
            font-size: 14px; }
h2          {font-family: Century Gothic;
            text-transform: none;
            text-decoration: none;
            font-weight: none;
            text-align: center;
            margin: 4;
            border: 1px #f09e25 solid;
            color: #fff18b;
            font-size: 12px;
            width: 200px;
            background: #ffbe4e; }
 
b           {color: #f6cb03; }
i           {color: #f6cb03; }
u           {color: #f6cb03;
            border-bottom: 1px dashed #fffa97; }
li          {font-family: century gothic;
            color: #f6cb03; }
 
a:link      {font-family: century gothic;
            font-size: 12px;
            color: #adfffe;
            text-decoration: none; }
a:hover     {font-family: century gothic;
            font-size: 12px;
            color: #f8886f;
            text-decoration: none; }
a:visited   {font-family: century gothic;
            font-size: 12px;
            color: #adfffe;
            text-decoration: none; }
a:active    {font-family: century gothic;
            font-size: 12px;
            color: #adfffe;
            text-decoration: none; }
           
#nav        {background-color: #63b28e;
            border: solid 1px #000000;
            text-align: left;
            width: 125px;
            margin: 3px;
            padding: 2px; }
           
table1      {width: 800px;
            background-color: #b9fbcd;
            border: 1px solid #000000; }
  1. body        {background-color: #0b140f;
  2.             font-family: century gothic;
  3.             color: #000000;
  4.             font-size: 12px}
  5.            
  6. h1          {font-family: century gothic;
  7.             text-transform: none;
  8.             text-align: center;
  9.             margin: 1;
  10.             border-bottom: 1px #42815b dashed;
  11.             color: #42815b;
  12.             font-size: 14px; }
  13. h2          {font-family: Century Gothic;
  14.             text-transform: none;
  15.             text-decoration: none;
  16.             font-weight: none;
  17.             text-align: center;
  18.             margin: 4;
  19.             border: 1px #f09e25 solid;
  20.             color: #fff18b;
  21.             font-size: 12px;
  22.             width: 200px;
  23.             background: #ffbe4e; }
  24.  
  25. b           {color: #f6cb03; }
  26. i           {color: #f6cb03; }
  27. u           {color: #f6cb03;
  28.             border-bottom: 1px dashed #fffa97; }
  29. li          {font-family: century gothic;
  30.             color: #f6cb03; }
  31.  
  32. a:link      {font-family: century gothic;
  33.             font-size: 12px;
  34.             color: #adfffe;
  35.             text-decoration: none; }
  36. a:hover     {font-family: century gothic;
  37.             font-size: 12px;
  38.             color: #f8886f;
  39.             text-decoration: none; }
  40. a:visited   {font-family: century gothic;
  41.             font-size: 12px;
  42.             color: #adfffe;
  43.             text-decoration: none; }
  44. a:active    {font-family: century gothic;
  45.             font-size: 12px;
  46.             color: #adfffe;
  47.             text-decoration: none; }
  48.            
  49. #nav        {background-color: #63b28e;
  50.             border: solid 1px #000000;
  51.             text-align: left;
  52.             width: 125px;
  53.             margin: 3px;
  54.             padding: 2px; }
  55.            
  56. table1      {width: 800px;
  57.             background-color: #b9fbcd;
  58.             border: 1px solid #000000; }


I've previewed it in firefox, safari, and my html editor program but the table is border-less and background-less. :\ -doesn't get what I'm doing wrong-

Oh and the style sheet isn't complete yet because I am changing the styles from my last style sheet, so some of the colors won't match right.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 9th, 2009, 7:50 pm

Maybe it requires that dot in front of the class name? .table1
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • iveysaur
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 08, 2009
  • Posts: 18
  • Loc: Florida
  • Status: Offline

Post July 9th, 2009, 7:57 pm

Yea it does. Idk how that keeps getting erased. Anyway, Still nothing. :\
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post July 9th, 2009, 8:01 pm

Check your CSS... .table1 is not defined there. Don't forget to actually upload the CSS to your site

Also, add the following to your CSS (I think it would make the menu a little better :)
CSS Code: [ Select ]
#nav a   {display: block;
         width: 100%;}
  1. #nav a   {display: block;
  2.          width: 100%;}
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 9th, 2009, 8:01 pm

Post Information

  • Total Posts in this topic: 30 posts
  • Users browsing this forum: No registered users and 129 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.