Ric 的个人资料HTML Tutorial日志列表 工具 帮助
8月3日

Curved Borders

 
Curved Borders

Have you ever seen webpage’s with tables that have curved borders? Want to know how to add them? Then just follow this relatively simple tutorial:

I have created two sets of tables for this tutorial, one for pages with dark backgrounds (black, midnight blue, etc), and one with light backgrounds (white, pink, etc), choose whichever you want.

  1. First things first, get the files:
    If you want a black background then these are the files you need to download CLICK HERE, if you want an example of the table CLICK HERE.
    If you want a white background then these are the files you need to download CLICK HERE, if you want an example of the table CLICK HERE.
    To open these files you need WinZip CLICK HERE to get the program (its free).
  2. OK, so now you have the files its time to store them somewhere, I would recommend signing up for an account with 50 webs, CLICK HERE to go there (also free). You can store 60MB there for free.
  3. Now you need the code for you table, for the white background table the code is:
    <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
    <td width="16"><img src="top_left.gif" width="16" height="16"></td>
    <td height="16" background="top_middle.gif"><img src="top_middle.gif" width="16" height="16"></td>
    <td width="24"><img src="top_right.gif" width="24" height="16"></td>
    <tr>
    <td width="16" background="left.gif"><img src="left.gif" width="16" height="11"></td>
    <td>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="3" bgcolor=ffffff>

    YOUR THINGS GO HERE

    </table>
    </td>
    <td width="24" background="right.gif"><img src="right.gif" width="24" height="11"></td>
    <tr>
    <td width="16" height="16"><img src="bottom_left.gif" width="16" height="16"></td>
    <td height="16" background="bottom_middle.gif"><img src="bottom_middle.gif" width="16" height="16"></td>
    <td width="24" height="16"><img src="bottom_right.gif" width="24" height="16"></td>
    </table>
    For the black background table the code is:
    <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
    <td width="16"><img src="top_left2.gif" width="16" height="16"></td>
    <td height="16" background="top_middle2.gif"><img src="top_middle2.gif" width="16" height="16"></td>
    <td width="24"><img src="top_right2.gif" width="24" height="16"></td>
    <tr>
    <td width="16" background="left2.gif"><img src="left2.gif" width="16" height="11"></td>
    <td>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="3" bgcolor=000000>

    YOUR THINGS GO HERE

    </table>
    </td>
    <td width="24" background="right2.gif"><img src="right2.gif" width="24" height="11"></td>
    <tr>
    <td width="16" height="16"><img src="bottom_left2.gif" width="16" height="16"></td>
    <td height="16" background="bottom_middle2.gif"><img src="bottom_middle2.gif" width="16" height="16"></td>
    <td width="24" height="16"><img src="bottom_right2.gif" width="24" height="16"></td>
    </table>
    In the above two codes you can see there are several colour coded parts, these can be changed for a desired effect:
    • Firstly there is the 85%, this allows you to change the amount of your blog the table takes up, you can changed it to whatever size you want. (Tops obviously 100%)
    • Next there is the center, this states where on your blog you table appears (if you table is under 100%, if it is 100% it will just take up the entire blog width), it can be center, left or right
    • Now there are all the images you are using, just putting this code directly onto your site will not produced the desired effect, you have to make sure all the links of your pictures are working. To do this just follow these simple steps:
      • (Presuming you are using 50webs.com), once you have set up a new account go to your accounts main menu and click on File Manager (Screenshot 1)
      • Then click on your sub domain (Screenshot 2), this will display all you files (if its a new account there should be none, or maybe 1 (an index.html file))
      • Scroll down to the bottom and there are 12 file upload slots (Screenshot 3)
      • Click browse on any of them and locate the files you downloaded before off my site (Screenshot 4), you can only upload one of these files per upload slot
      • Click OK and repeat these steps until all your files are in separate upload slots (Screenshot 5)
      • Then click upload files (Screenshot 6). You will get a confirmation of the uploads, then move onto these steps.
        • You should now have a list of the files on your space (Screenshot 7) click on any of the files and it will display a new window, if you are opening a .gif file if will display:
          403 Forbidden
          You must supply a local referer to get URL '/html/border1/bottom_left.gif' from this server.
          This is normal, what you want to do is copy down the URL of the image (Screenshot 8), this is the location of your image on the internet, replace the relevant codes (in your table code) with the URL's you are getting off this.
        • After repeating these steps with all your codes you should have a code looking something like this:
          <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
          <td width="16"><img src="http://keepthechange.50webs.com/html/border2/top_left2.gif" width="16" height="16"></td>
          <td height="16" background="http://keepthechange.50webs.com/html/border2/top_middle2.gif"><img src="http://keepthechange.50webs.com/html/border2/top_middle2.gif" width="16" height="16"></td>
          <td width="24"><img src="http://keepthechange.50webs.com/html/border2/top_right2.gif" width="24" height="16"></td>
          <tr>
          <td width="16" background="http://keepthechange.50webs.com/html/border2/left2.gif"><img src="http://keepthechange.50webs.com/html/border2/left2.gif" width="16" height="11"></td>
          <td>
          <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="3" bgcolor=000000>

          YOU THINGS GO HERE

          </table>
          </td>
          <td width="24" background="http://keepthechange.50webs.com/html/border2/right2.gif"><img src="http://keepthechange.50webs.com/html/border2/right2.gif" width="24" height="11"></td>
          <tr>
          <td width="16" height="16"><img src="http://keepthechange.50webs.com/html/border2/bottom_left2.gif" width="16" height="16"></td>
          <td height="16" background="http://keepthechange.50webs.com/html/border2/bottom_middle2.gif"><img src="http://keepthechange.50webs.com/html/border2/bottom_middle2.gif" width="16" height="16"></td>
          <td width="24" height="16"><img src="http://keepthechange.50webs.com/html/border2/bottom_right2.gif" width="24" height="16"></td>
          </table>
    • And finally, you replace the YOUR THINGS GO HERE with whatever you want in your table!
    • To put this code into your blog you will need to create a new blog, click the <HTML> button, and paste the code you have edited (Ctrl+V), click the <HTML> button again and you should have a table!

    Hope this works for you! Have fun making curved tables!

    Screenshot 1


    Screenshot 2


    Screenshot 3


    Screenshot 4


    Screenshot 5


    Screenshot 6


    Screenshot 7


    Screenshot 8


TOP OF PAGE

MAIN PAGE SIGN GUESTBOOK
MSN Alerts | © RIC-KEEPTHECHANGE123

评论

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

引用通告 (1)

此日志的引用通告 URL 是:
http://keepthechange123.spaces.live.com/blog/cns!F6A299334D3EAB8D!307.trak
引用此项的网络日志