I've noticed that myspace css has a lot of css like this:
table table {whatever;}
table table table table{whatever;}

Does that just mean that it's modifying the table within the table within the table etc? I thought all css id's had to begin with a . or a #?

Thanks for the help.

    Yep.

    The best theory I have heard about the success of MySpace is that it's both stupid and not secure. 😉

      Grief; I just had a look at that CSS. Stuff like

      / Background /
      .bgWhite{background:#FFF;}
      .bgBlue{background:#039;}
      .bgLtBlue{background:#D5E8FB;}
      .bgDkBlue{background:#040C5C;}
      .bgNavBlue{background:#6698CB;}
      .bgGrey{background:#E5E5E5;}
      .bgDkGrey{background:#666;}
      .bgRed{background:#C00;}
      .bgPeach{background:#FC9;}
      .bgPurple{background:#96C;}
      .bgGreen{background:#090;}
      .bgOrange{background:#F60;} / Alternative #FF9800 /
      .bgBlack{background:#000;}

      and

      / Widths /
      .w25{width:25px;}
      .w50{width:50px;}
      .w75{width:75px;}
      .w100{width:100px;}
      .w125{width:125px;}
      .w150{width:150px;}
      .w175{width:175px;}
      .w200{width:200px;}
      .w225{width:225px;}
      .w250{width:250px;}
      .w275{width:275px;}
      .w300{width:300px;}
      .w325{width:325px;}
      .w350{width:350px;}
      .w375{width:375px;}
      .w400{width:400px;}
      .w49{width:49%;}
      .w40{width:40%;}

      This deserves submission

        yeah, what they've done is subdivide each myspace page into a dozen or so sections, and then given each one a color code beginning with bg and a color name and a size beginning with w and a number.

        Some of the worse code to try and decipher I've ever seen.

          So this myspace code:

          table table table {
            border: 2px solid; border-color:E5E5E5; background-color: 567966; padding: 0;}
          

          Should target this:

          <table>
          <tr>
          <td>
          <table style="width:100%;" cellpadding="4" cellspacing="8">
          <tr>
          <td style="width:45%;vertical-align:top;">
          
          <table>
          <tr>
          <td style="vertical-align:top;text-align:center;font-size:8pt;">
          
          	{%USER%}
          </td>
          <td style="vertical-align:top;font-size:9pt;">
          
          </td>
          </tr>
          <tr>
          <td style="vertical-align:top;font-size:8pt;text-align:center;">
          
          	{%IMAGE%}	
          
          </td>
          <td style="vertical-align:top;font-size:9pt;">
          	{%user%}
          </td>
          </tr>
          </table>
          </td>
          </tr>
          </table>
          </td>
          </tr>
          </table>
          

          Can't seem to get myspace codes to work with my template. What am I doing wrong? There are three <table>, but nothing shows up when I try displaying the myspace code.

            Write a Reply...