Log In · Register

 
a code
dreamsbecomereal...
post Aug 13 2008, 07:29 PM
Post #1


Senior Member
***

Group: Member
Posts: 90
Joined: Jul 2008
Member No: 666,978



i'm trying 2 figure out y no 1 is helping me. but whatever. i ask a lot of ?s. i'm new at this still n 2day i actually hav sum patience with editing my pg. so can sum1 plz tell me what this is?




table, tr, td {background-color: transparent; border: 0px; padding:2;}
table table {border: 0px;}
table table table table{border: 0px;}
 
 
Start new topic
Replies
fixtatik
post Aug 14 2008, 01:44 AM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



that code won't change the background of your myspace profile. it's for tables.

the specific one you gave is going to make all tables have a transparent background, no border, and a padding of 2 pixels. the extra parts (table table and table table table table) also adjust tables that are embedded, but in the code you gave, they're not even necessary.

it's sort of like this:
CODE
<table> (#1)
<tr>
  <td>
    <table> (#2)
    <tr>
      <td></td>
    </tr>
    </table>
  </td>
</tr>
</table>

if you were to use a code such as table { background-color:ff00ff; }, it would give all tables (#1 & #2) a magenta background color. if you also add in table table { background-color:ffffff; }, then table #1 will be a magenta color, while table #2 will be a white color.

on myspace profiles, all your info (picture, contact table, interests, about me, comments, etc.) are contained within a larger table. if you want to change the background of that larger table, think of it as table #1. if you want to change the background of your info tables, think of those as table #3, in which case, you'd use a code like table table table { background-color:000000; }
 
dreamsbecomereal...
post Aug 15 2008, 10:31 PM
Post #3


Senior Member
***

Group: Member
Posts: 90
Joined: Jul 2008
Member No: 666,978



QUOTE(fixtatik @ Aug 14 2008, 01:44 AM) *
that code won't change the background of your myspace profile. it's for tables.

the specific one you gave is going to make all tables have a transparent background, no border, and a padding of 2 pixels. the extra parts (table table and table table table table) also adjust tables that are embedded, but in the code you gave, they're not even necessary.

it's sort of like this:
CODE
<table> (#1)
<tr>
  <td>
    <table> (#2)
    <tr>
      <td></td>
    </tr>
    </table>
  </td>
</tr>
</table>

if you were to use a code such as table { background-color:ff00ff; }, it would give all tables (#1 & #2) a magenta background color. if you also add in table table { background-color:ffffff; }, then table #1 will be a magenta color, while table #2 will be a white color.

on myspace profiles, all your info (picture, contact table, interests, about me, comments, etc.) are contained within a larger table. if you want to change the background of that larger table, think of it as table #1. if you want to change the background of your info tables, think of those as table #3, in which case, you'd use a code like table table table { background-color:000000; }

wow i understand now! thank u so much!
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: