Troy New Member
Posts: 10 Status: Offline Joined:
pm | Table background (1st Jun 08 at 9:03pm UTC) | | I put a table in my header, under the title, to tell the story in the board and I changed the text colour but I was wondering how could I change the background colour to black? | |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Table background (1st Jun 08 at 9:04pm UTC) | | in the tag: '<td ... >'
add this:
style = 'background-color: #000000;'
| |
|
Troy New Member
Posts: 10 Status: Offline Joined:
pm | Re: Table background (1st Jun 08 at 9:07pm UTC) | | cool thank you | |
|
Troy New Member
Posts: 10 Status: Offline Joined:
pm | Re: Table background (1st Jun 08 at 9:17pm UTC) | | I did it but the table didn't go black, the spacing in between the categories did though | |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Table background (1st Jun 08 at 9:31pm UTC) | | Can I have a forum link? And do you want the whole table to change, or just the cell? | |
|
Troy New Member
Posts: 10 Status: Offline Joined:
pm | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Table background (1st Jun 08 at 9:48pm UTC) | | Where the text is red? You want just behind that part to be black? | |
|
Nick Very Senior Member
Posts: 3,012 Status: Offline Gender: Male Location: vForums Age: 34 Joined:
pmwww | Re: Table background (1st Jun 08 at 11:59pm UTC) | | Try this:
Code: - <table border="0" cellpadding="3" cellspacing="1" class="border" width="100%" body bgcolor="#000000">
- <tr>
- <td class="title2" style="text-align:center;color:#6DC4E3;">Welcome to East High...
- </td></tr>
- <td class="window1">
-
- <font color='#FF0000'><center>...Where the drama club is loved and the Wildcats rule. We come to the beginning of senior year (year 11), just after Troy met Gabriella at the ski resort. Everything may seem normal, at the moment, but soon enough things would change like no one could ever imagine, before anyone could control it, the status quo would be, in a way, thrown out the window.<br>
- <br>
- Miss Darbus is getting ready for the Twinkle Town musicale, the Wildcats are getting ready for their basketball finals, against West High Knights, and the decathlon team are getting ready for their day, but everything won't go as smooth as every one thinks.
- <center></font>
- </tr></table>
-
Were it shows <table border="0" cellpadding="3" cellspacing="1" class="border" width="100%" body bgcolor="#000000"> It will make the whole table black. If that is what you want.
| |
|
Marc vChat Developer
I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
pmwww | Re: Table background (2nd Jun 08 at 12:15am UTC) | | Try this: Code: - <table border="0" cellpadding="3" cellspacing="1" class="border" width="100%" body bgcolor="#000000">
- <tr>
- <td class="title2" style="text-align:center;color:#6DC4E3;">Welcome to East High...
- </td></tr>
- <td class="window1">
-
- <font color='#FF0000'><center>...Where the drama club is loved and the Wildcats rule. We come to the beginning of senior year (year 11), just after Troy met Gabriella at the ski resort. Everything may seem normal, at the moment, but soon enough things would change like no one could ever imagine, before anyone could control it, the status quo would be, in a way, thrown out the window.<br>
- <br>
- Miss Darbus is getting ready for the Twinkle Town musicale, the Wildcats are getting ready for their basketball finals, against West High Knights, and the decathlon team are getting ready for their day, but everything won't go as smooth as every one thinks.
- <center></font>
- </tr></table>
-
Were it shows <table border="0" cellpadding="3" cellspacing="1" class="border" width="100%" body bgcolor="#000000"> It will make the whole table black. If that is what you want.
There is no "body bgcolor" attribute to any tag; "body" is a tag in itself that denotes the start of the page's main content. That has nothing to do with the table. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Nick Very Senior Member
Posts: 3,012 Status: Offline Gender: Male Location: vForums Age: 34 Joined:
pmwww | Re: Table background (2nd Jun 08 at 12:16am UTC) | | well it works.
EDIT:
it makes this work:
Code: - <center>
- <table border="2" cellpadding="2" cellspacing="1" bgcolor=black >
- <tr>
- <td>
- <b>Staff</b>
- </td>
- <td>
- <b>Color</b>
- </td>
- </tr>
- <tr>
- <td>
- Founder/Admin
- </td>
- <td>
- <font color=white>White</color>
- </td>
- </tr>
- <tr>
- <td>
- Admin
- </td>
- <td>
- <font color=Gray>Gray</color>
- </td>
- </tr>
- <tr>
- <td>
- Global Moderator
- </td>
- <td>
- <font color=Green>Green</color>
- </td>
- </tr>
- <tr>
- <td>
- Moderator
- </td>
- <td>
- <font color=Blue>Blue</color>
- </td>
- </tr>
- </table>
- </center>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </table></center>
-
-
| |
|
Marc vChat Developer
I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
pmwww | Re: Table background (2nd Jun 08 at 12:17am UTC) | | well it works.
It's also improper coding, would return errors in any code validation check and wouldn't work in older browsers.
The motto I've always based my coding on: "Just because it works doesn't mean it's right" | |
rroll.to— Shorten a link, rickroll your friends. |
|
Nick Very Senior Member
Posts: 3,012 Status: Offline Gender: Male Location: vForums Age: 34 Joined:
pmwww | Re: Table background (2nd Jun 08 at 12:21am UTC) | | ahh but you see it works in IE and FF, not sure about the rest like safari, or whatever other browsers are out there | |
|
Marc vChat Developer
I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
pmwww | Re: Table background (2nd Jun 08 at 12:31am UTC) | | I'll bet you're using the most recent versions, which not everybody is.
While yes, it does work, it just doesn't make sense in the coding world. The body tag is a tag used solely for indicating the start of a page's content [as I said before]. It just doesn't belong within another tag, as that would make it an attribute rather than an element. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Nick Very Senior Member
Posts: 3,012 Status: Offline Gender: Male Location: vForums Age: 34 Joined:
pmwww | Re: Table background (2nd Jun 08 at 12:39am UTC) | | I'll bet you're using the most recent versions, which not everybody is. While yes, it does work, it just doesn't make sense in the coding world. The body tag is a tag used solely for indicating the start of a page's content [as I said before]. It just doesn't belong within another tag, as that would make it an attribute rather than an element.
New version? FF? I use FF2.
and big words, can you rephrase what you said please. | |
|