Update Boxes

continued...

Now we need to create a table for our updates box : ) The table must be the same width and height as your box. No cellspacing, cellpadding, no border. 3 rows and 3 columns. Make the table background your box image. So my table code looks like this :

<table width="242" height="160" border="0" align="center" cellpadding="0" cellspacing="0" background="fig_upd_box.gif"> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table>

You will then need to adjust the height of the top and bottom rows to accomodate the center area for your updates. For this I am going to use rulers :) First I am going to measure the top border and then I am going to measure from the bottom of the box, to the top of Updates.. ( To access Rulers in PSP 7 go into VIEW >> RULERS>> ) Here are screenshots of how I measured my box.

Mine came to around 32 bottom and 10 top. So here is what my table code looks like now :

<table width="242" height="160" border="0" align="center" cellpadding="0" cellspacing="0" background="fig_upd_box.gif"> <tr> <td>&nbsp;</td> <td height="11">&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td height="32">&nbsp;</td> <td>&nbsp;</td> </tr> </table>

 

Now do the same for the width of the right and left borders. Remember to include items in positions similar to my hearts.
So my widths were right 12 and left 18. So I am going to make the widths for the top right cell and the top left cell according. And my code now looks like this :

<table width="242" height="160" border="0" align="center" cellpadding="0" cellspacing="0" background="fig_upd_box.gif"> <tr> <td width="18">&nbsp;</td> <td height="10">&nbsp;</td> <td width="12">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td align="left" valign="top">&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td height="32">&nbsp;</td> <td>&nbsp;</td> </tr> </table>

 

More math : p Take the total height of your image and subtract the top row height and the bottom row height. For me the equation would look like this : 160 -10 - 32 = 118. Keep the sum of your equation in mind, you will need it for your layer : ) Now do the same with the total width of your image minus right width and left width so my equation looks like 242 - 12 - 18 = 212. These sums make up the width and height of our layer. In the center cell of your second row, paste in the following code :

<div id="upd" style="position:absolute; width:YOURWIDTHSUMpx; height:YOURHEIGHTSUMpx; z-index:1; overflow: auto;"> </div>

 

So now my code looks like this :

<table width="242" height="160" border="0" align="center" cellpadding="0" cellspacing="0" background="fig_upd_box.gif"> <tr> <td width="18">&nbsp;</td> <td height="10">&nbsp;</td> <td width="12">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td align="left" valign="top"> <div id="upd" style="position:absolute; width:212px; height:118px; z-index:1; overflow: auto;"></div></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td height="32">&nbsp;</td> <td>&nbsp;</td> </tr> </table>

 

Now all you do is ad your updates between the div tags. The following code creates the updates box seen below it :) Granted I had to adjust my bottom height and layer height a little as the content was running over the word UPDATES but you get the gist of it ; ) All of the additional stuff in the div code is style properties I added so you could see the real effect of the updates box. When used on a matching website with stylesheets you wont need to add any to the code.

<table width="242" height="160" border="0" align="center" cellpadding="0" cellspacing="0" background="fig_upd_box.gif"> <tr> <td width="18">&nbsp;</td> <td height="10">&nbsp;</td> <td width="12">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td align="left" valign="top"> <div id="Layer1" style="position:absolute; width:212px; height:113px; z-index:1; overflow: auto; color: #F0587C; scrollbar-3dlight-color: #FFFFFF; scrollbar-highlight-color: #FFFFFF; scrollbar-darkshadow-color: #F0587C; scrollbar-shadow-color: #FCA6BA; scrollbar-face-color: #FDD4DD; scrollbar-track-color: #FFF1F4; scrollbar-arrow-color: #FCA6BA"> <center> Updated November 25, 2003<br><br> Easy isn't it? Not near as hard as you expected I'm sure ;)<br><br> The scrollbars will match your webpage, or if you know styles you can change them yourself in the div code as I have here... </center></div></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td height="35">&nbsp;</td> <td>&nbsp;</td> </tr> </table>
     
 
Updated November 25, 2003

Easy isn't it? Not near as hard as you expected I'm sure ;)

The scrollbars will match your webpage, or if you know styles you can change them yourself in the div code as I have here...
 
     

~Link Hearts Enchanted~

Links are definitely appreciated! Please feel free to right click to save one of these images to your hard drive and link them back to:
http://www.heartsenchanted.com

Thanks for your support!

Hearts Enchanted Logo

468x60 link logo

Home