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?
in the tag:
'<td ... >'
add this:
style = 'background-color: #000000;'
cool thank you
I did it but the table didn't go black, the spacing in between the categories did though
Can I have a forum link? And do you want the whole table to change, or just the cell?
http://xhsmroleplayx.vforums.co.uk/
I don't know just the back ground of the table lol - sorry
Where the text is red? You want just behind that part to be black?
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.
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.
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>
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"
ahh but you see it works in IE and FF, not sure about the rest like safari, or whatever other browsers are out there
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.
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.