vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Table Problem

[F] Table Problem - Posted By Nick (nickb) on 21st Feb 08 at 10:12pm
Forum: http://freunion.vforums.co.uk

Description:
I need help with this Table, I cant seem to get the boxes around the text, It is supposed to be a table in table, you know what I mean if you go to my forum and on the side it says (Staff Legend)

Code:
 
  1. <table cellpadding="2" cellspacing="1">
  2. <tr>
  3. <td>
  4. <b>Staff</b>
  5. </td>
  6. <td>
  7. <b>Color</b>
  8. </td>
  9. </tr>
  10. <tr>
  11. <td>
  12. Founder/Admin
  13. </td>
  14. <td>
  15. <font color=white>White</color>
  16. </td>
  17. </tr>
  18. <tr>
  19. <td>
  20. Admin
  21. </td>
  22. <td>
  23. <font color=Grey>Grey</color>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td>
  28. Global Moderator
  29. </td>
  30. <td>
  31. <font color=Green>Green</color>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td>
  36. Moderator
  37. </td>
  38. <td>
  39. <font color=Blue>Blue</color>
  40. </td>
  41. </tr>
  42. </table></center>
  43.  
 


Thanks,
Darkmage

Re: Table Problem - Posted By Michael (wrighty) on 21st Feb 08 at 10:57pm
I think this is what you want....

Code:
 
  1. <table cellpadding="2" cellspacing="1" class="border">
  2. <tr>
  3. <td>
  4. <b>Staff</b>
  5. </td>
  6. <td>
  7. <b>Color</b>
  8. </td>
  9. </tr>
  10. <tr>
  11. <td>
  12. Founder/Admin
  13. </td>
  14. <td>
  15. <font color=white>White</color>
  16. </td>
  17. </tr>
  18. <tr>
  19. <td>
  20. Admin
  21. </td>
  22. <td>
  23. <font color=Grey>Grey</color>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td>
  28. Global Moderator
  29. </td>
  30. <td>
  31. <font color=Green>Green</color>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td>
  36. Moderator
  37. </td>
  38. <td>
  39. <font color=Blue>Blue</color>
  40. </td>
  41. </tr>
  42. </table></center>
  43.  
 

Re: Table Problem - Posted By Nick (nickb) on 22nd Feb 08 at 12:43am
Nope it turnes the background of it to blue, I want the background to be black and I want boarders around the text like this would be:











Staff
Color

Founder/Admin

White

Admin

Grey

Global Moderator

Green

Moderator

Blue


Thats how with the boarders around them.

EDIT: but without that big huge space in the Staff column.

Re: Table Problem - Posted By Michael (wrighty) on 22nd Feb 08 at 12:50am
lol ok,

If no one does this, I'll code it tomorrow! {Smile}

Re: Table Problem - Posted By Nick (nickb) on 22nd Feb 08 at 12:54am
ok thanks.

Re: Table Problem - Posted By FreeUS (freeus) on 23rd Feb 08 at 2:37am
Is this what you want?

Code:
 
  1. <table border="5" cellpadding="2" cellspacing="1" bgcolor=black >
  2. <tr>
  3. <td>
  4. <b>Staff</b>
  5. </td>
  6. <td>
  7. <b>Color</b>
  8. </td>
  9. </tr>
  10. <tr>
  11. <td>
  12. Founder/Admin
  13. </td>
  14. <td>
  15. <font color=white>White</color>
  16. </td>
  17. </tr>
  18. <tr>
  19. <td>
  20. Admin
  21. </td>
  22. <td>
  23. <font color=Grey>Grey</color>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td>
  28. Global Moderator
  29. </td>
  30. <td>
  31. <font color=Green>Green</color>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td>
  36. Moderator
  37. </td>
  38. <td>
  39. <font color=Blue>Blue</color>
  40. </td>
  41. </tr>
  42. </table></center>
  43.  
  44.  
 

Re: Table Problem - Posted By Nick (nickb) on 23rd Feb 08 at 10:06pm
Yep thats it thanks ^_^. The 5 was thick so I put it to a 2.

Re: [F] Table Problem - Posted By Michael (wrighty) on 23rd Feb 08 at 11:32pm
Thanks FreeUS