Error » Certification & Programming center Error !! » Programming tutorials » Rounded Table Corners Tutorial

Programming tutorials All Knowledge Info and links to posted here

Post New Thread Reply
  Rounded Table Corners Tutorial
LinkBack Thread Tools Display Modes
Old 27-Feb-2007, 12:40 AM   #1 (permalink)
Fixed Error!
 
AQUARIAN's Avatar

Posts: 803
Join Date: Feb 2007
Rep Power: 2 AQUARIAN is on a distinguished road

IM:
Default Rounded Table Corners Tutorial

Rounded Table Corners Tutorial
Part 1 - Introduction
Introduction

One of the best effects which you can use on your website to make it look more professional is rounded table corners. They can be used very effectively to create borders, blocks of colour, navigation bars and many other effects. Throughout this tutorial we will show you how do this.

The software used in this tutorial is Macromedia Fireworks but you can use nearly any image software.

Creating The Table

The first example in this tutorial will be a table looking like this:
This is where your table content is placed if you want it there.
A simple block of colour with rounded corners. Firstly, you create a normal coloured table but slightly different to how you would normally do it. You should add 2 rows and 2 columns to the table you want (for example if you want a table with one cell you should create one with 3 rows and 3 columns as follows:

The central cell will be used for your content and the other ones will be for the edging. You should set the border, cell padding and cell spacing of the table to zero for this to work.

Before you create the corners you will need to make the table the right colours. Set the background of all the cells to the colour red (#FF0000).


Creating The Images

The actual corners for the table are created using 4 images. This is where your graphics program is required. Firstly, create a new image with a white background which is 25 pixels high and 25 pixels wide. Choose the circle tool and draw a circle touching the edges of the image but with only quarter of the circle in the image li
ke this:

Next, set the fill colour of the circle to red which will produce this:

Finally, export or save the image as topleft.gif

Then, use the rotate function to rotate the image 90 degrees clockwise, save it as topright.gif. Rotate it another 90 degrees and save it as bottomright.gif then do it one more time and save it as bottomleft.gif. You should now have a set of images like this:


Creating The Table

Now all you have to do is insert these images in your table. In each of the corner cells place the appropriate image. You will now have something which looks like this:

Now all you need to do is set the alignment of the two right cells to 'right' and your table will nearly be complete. Just add the text to the center cell and you now have a table with rounded corners:
This is where your table content is placed if you want it there.
="25">
AQUARIAN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
   


   
Old 27-Feb-2007, 12:41 AM   #2 (permalink)
Fixed Error!
 
AQUARIAN's Avatar

Posts: 803
Join Date: Feb 2007
Rep Power: 2 AQUARIAN is on a distinguished road

IM:
Default Re: Rounded Table Corners Tutorial

Introduction

In the last part of this tutorial I showed you how to use HTML and your image program to create rounded corners for your HTML tables. In this part I will show you how to create inside corners and how to make a 'frame' round your content.

Creating The Inside Corners

In this part I will show you how to create a table slightly different from last week:



This is where your table content is placed if you want it there.
This works better with large amounts of text (or full web pages) but could be used for anything. To create this you have to create a table with 5 rows and 5 columns. The cell spacing and padding should be 0 and there should be no border. As with the last example the central cell will contain the content. The outer cells will contain the border. The cells between the outer border and the content will be the margin and will contain the inside corners.

Now you must set the background colours of all the outside cells to red (#FF0000) and set the widths of the two outer colums to 25 pixels.

>

Creating The Images

As with the other example all the corners are made from images. You can use the four you created for the last table:
img src="http://www.freewebmasterhelp.com/static/tutorials/corners/topleft.gif" width="25" height="25">
and, as with that table, they should be placed in the four corner cells. You must also create four inside corner images. These are made in exactly the same way as the outer corner images with a few differences. When you create your 25x25 image this time, set the background to red. Then draw a circle like the one for the outer corners but this time make it white. As before, rotate the image four times and you will be left with a set of images like this:


Creating The Table

Now all you have to do is insert these images in your table. In each of the inner 4 corner cells (the ones between the content and the border place the appropriate corner. If you need to, adjust the alignment and the widths and heights of the cless. You should now have a table like this:




height="25"> This is where your table content is placed if you want it there.

Creating 'Frames' On Your Site

One of the best uses of rounded table corners is to create a 'frame' for your site. One very good example is to make a table like the one above except making the left border column wider. This can then contain your navigation bar. All the page's content will go in the central cell, containing your whole site in a coloured frame.

Another thing you could do is to create a half frame like this:
N
A
V
I
G
A
T
I
O
N
This is where your table content is placed if you want it there.

This is where your table content is placed if you want it there.

This table actually has 5 columns and 5 rows.

One of the best things about rounded table corners is that the same ones can be used over and over again for many different designs, only changing the colours. You could even save the ones from this page!

Conclusion

Rounded table corners are an easy but effective effect to produce and should give you lots of new design ideas. The designs here are only ideas but there are thousands you could create. Sometimes you will need to make slightly different images but the basic idea is the same.
AQUARIAN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 27-Feb-2007, 12:42 AM   #3 (permalink)
Fixed Error!
 
AQUARIAN's Avatar

Posts: 803
Join Date: Feb 2007
Rep Power: 2 AQUARIAN is on a distinguished road

IM:
Default Re: Rounded Table Corners Tutorial

source :Free Webmaster Help - Everything A Webmaster Needs- For Free
AQUARIAN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Post New Thread Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -8. The time now is 09:30 AM.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

DMCA Policy

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227