vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Side Tables

[F] Side Tables - Posted By dog199200 (dog199200) on 30th Apr 08 at 2:21pm
http://deluxeanimeforum.vforums.co.uk/

What i'm trying to do is make a side table for both sides that will fit in the black area around my forum perfectly, as well as it will scroll. I have the tables set to the right height to fit in the black area, but i cant get them to move back into the black area, they want to push against the forum, also i took a snip-it from one of wright's codes for the hover/scroll effect but for some reason it keeps trying to hover all my boards as well. Can someone help me finish the code?

header
Code:
 
  1. <style>
  2. body {
  3.     margin-top: 20px;
  4. }
  5. </style>
  6.  
  7. <table width="100%" border="0" style="position: fixed; left: 0px; top: 4px">
  8.     <tr>
  9.         <td align="center">
  10. <table width="92%" cellpadding="0" cellspacing="1" align="center">
  11. <tr>
  12. <td width="20%" vAlign="top" align="center">
  13. <br />
  14. <br />
  15. <table class="border" width="95%" cellpadding="4" cellspacing="1">
  16. <tr>
  17. <td class="title2" align="center" width="100%">
  18. <font size=2>Left Menu</font>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td class="window1" align="center">
  23. <font size=2>Left Top Box Content</font>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td class="window1" align="center">
  28. <font size=2>Left Middle Box Content</font>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td class="window1" align="center">
  33. <font size=2>Left Bottom Box Content</font>
  34. </td>
  35. </tr>
  36. </table>
  37. </td>
  38. <td width="60%" align="center" vAlign="top">
 


footer
Code:
 
  1. </td>
  2. <td width="20%" vAlign="top" align="center">
  3. <br />
  4. <br />
  5. <table class="border" width="95%" cellpadding="4" cellspacing="1">
  6. <tr>
  7. <td class="title2" align="center" width="100%">
  8. <font size=2>Right Menu</font>
  9. </td>
  10. </tr>
  11. <tr>
  12. <td class="window1" align="center">
  13. <font size=2>Right Top Box Content</font>
  14. </td>
  15. </tr>
  16. <tr>
  17. <td class="window1" align="center">
  18. <font size=2>Right Middle Box Content</font>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td class="window1" align="center">
  23. <font size=2>Right Bottom Box Content</font>
  24. </td>
  25. </tr>
  26. </table>
  27. </td>
  28. </tr>
  29. </table>
  30. </td>
  31. </tr>
  32. </table>
 

Re: Side Tables - Posted By Michael (wrighty) on 30th Apr 08 at 3:52pm
Unfortunately the way you have done it, it wont work. I'll have to take a look at it later for you and code it from scratch! {Smile}

Re: Side Tables - Posted By dog199200 (dog199200) on 30th Apr 08 at 8:43pm
ah ok, hey i gave it a try at least {Smile}

Re: Side Tables - Posted By dog199200 (dog199200) on 6th May 08 at 4:08am
bump

Re: Side Tables - Posted By dog199200 (dog199200) on 12th May 08 at 2:32am
bump

Re: Side Tables - Posted By Michael (wrighty) on 12th May 08 at 6:14pm
put this: position: fixed; left: 0px; top: 4px

in both of these near the start of both parts: <table class="border" width="95%" cellpadding="4" cellspacing="1">

I'm sure that'll fix it... Just guessing! {Tongue Out}

Re: Side Tables - Posted By dog199200 (dog199200) on 13th May 08 at 9:24pm
so like this:

head:
Code:
 
  1. <style>
  2. body {
  3.     margin-top: 20px;
  4. }
  5. </style>
  6.  
  7. <table width="100%" border="0" style="position: fixed; left: 0px; top: 4px">
  8.     <tr>
  9.         <td align="center">
  10. <table width="92%" cellpadding="0" cellspacing="1" align="center">
  11. <tr>
  12. <td width="20%" vAlign="top" align="center">
  13. <br />
  14. <br />
  15. <table class="border" width="95%" cellpadding="4" cellspacing="1">
  16. <tr>
  17. <td class="title2" align="center" width="100%">
  18. <font size=2>Left Menu</font>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td class="window1" align="center">
  23. <font size=2>Left Top Box Content</font>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td class="window1" align="center">
  28. <font size=2>Left Middle Box Content</font>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td class="window1" align="center">
  33. <font size=2>Left Bottom Box Content</font>
  34. </td>
  35. </tr>
  36. </table>
  37. </td>
  38. <td width="60%" align="center" vAlign="top">
 


foot:

Code:
 
  1. </td>
  2. <td width="20%" vAlign="top" align="center">
  3. <br />
  4. <br />
  5. <table class="border" width="95%" cellpadding="4" cellspacing="1" style="position: fixed; left: 0px; top: 4px">
  6. <tr>
  7. <td class="title2" align="center" width="100%">
  8. <font size=2>Right Menu</font>
  9. </td>
  10. </tr>
  11. <tr>
  12. <td class="window1" align="center">
  13. <font size=2>Right Top Box Content</font>
  14. </td>
  15. </tr>
  16. <tr>
  17. <td class="window1" align="center">
  18. <font size=2>Right Middle Box Content</font>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td class="window1" align="center">
  23. <font size=2>Right Bottom Box Content</font>
  24. </td>
  25. </tr>
  26. </table>
  27. </td>
  28. </tr>
  29. </table>
  30. </td>
  31. </tr>
  32. </table>
 


if so it doesnt work they all just go to the top..

Re: Side Tables - Posted By Michael (wrighty) on 15th May 08 at 3:25pm
Try this:

Global Header
<style>
body {
margin-top: 20px;
}
</style>


<table class="border" width="20%" cellpadding="4" cellspacing="1" style="position: fixed; left: 0px; top: 4px">
<tr>
<td class="title2" align="center" width="100%">
<font size=2>Left Menu</font>
</td>
</tr>
<tr>
<td class="window1" align="center">
<font size=2>Left Top Box Content</font>
</td>
</tr>
<tr>
<td class="window1" align="center">
<font size=2>Left Middle Box Content</font>
</td>
</tr>
<tr>
<td class="window1" align="center">
<font size=2>Left Bottom Box Content</font>
</td>
</tr>
</table>


Global Footer
<table class="border" width="20%" cellpadding="4" cellspacing="1" style="position: fixed; right: 0px; top: 4px">
<tr>
<td class="title2" align="center" width="100%">
<font size=2>Right Menu</font>
</td>
</tr>
<tr>
<td class="window1" align="center">
<font size=2>Right Top Box Content</font>
</td>
</tr>
<tr>
<td class="window1" align="center">
<font size=2>Right Middle Box Content</font>
</td>
</tr>
<tr>
<td class="window1" align="center">
<font size=2>Right Bottom Box Content</font>
</td>
</tr>
</table>


Resize your forum using the 'resize' in the Modify Skins area.

Re: Side Tables - Posted By dog199200 (dog199200) on 15th May 08 at 5:32pm
ok ty that works great

Re: Side Tables - Posted By Michael (wrighty) on 15th May 08 at 6:11pm
Welcome! {Smile}