Quantcast
Viewing all articles
Browse latest Browse all 215

BEAUTIFUL MENU LIST USING TABLE

This post describes you how to create a simple and beautiful menu list using table.Usually we all in need of creating menu list for our blog but wonder how to do in simple and effective manner.The above menu list was created by means of a table and CSS along with it.This will be very effective for all the Bloggers and website owners all you have to do is change the color and the link to which you want your users to go.Lets see the which makes this menu list.


  1. <html>
  2. <style type ="text/css">
  3.  td.menu{
  4.              background-color:#359AFF;
  5.              text-align:center;
  6.              border:2px solid black;
  7.               }
  8. td.menu:hover{
  9.               background-color:#0167D8;
  10.                        }
  11. a.menu { color:#000000;
  12.                 font-family:arial;
  13.                 font-size:1em;
  14.               }
  15. a.menu:visited { color:#232323; }
  16. a.menu:hover { color:#FFFFFF; }
  17. a.menu:active {color:#232323; }
  18. a.menu:link {text-decoration:none;}
  19. a.menu:visited {text-decoration:none;}
  20. </style>
  21. <body>
  22. <table cellpadding="5" cellspacing="5" width="150" border="0">
  23. <tr><td class="menu"><font face ="arial" size="2"><a class="menu" href="http://gadgetronicx.blogspot.in" target="_blank">ELECTRONICS</a></td></tr>
  24. <tr><td class="menu"><a class="menu" href="http://gadgetronicx.blogspot.in" target="_blank">GADGETS</a></td></tr>
  25.  <tr><td class="menu"><a class="menu" href="http://gadgetronicx.blogspot.in" target="_blank">TECHNOLOGY</a></td></tr>
  26. </table>
  27.  </body>
  28. </html>
EXPLANATION:
           Copy and paste the above code in your new html/javascript gadget.Now you need to change few things in the code inorder to make it work for your blog or website.Here exch link was embedded into a table inorder to give a menu like appearance.Here are the steps to personalise the code for your blog/website.

  1. In the 2nd line you can see we have defined the CSS for attractiveness of the menu list.You can change the colors of the visited,hover and link colors by replacing the color codes (#FFFFFF,#232323...etc) with your own color codes.You can obtain the HTML color codes here 
  2. CSS plays an important role here the lines 3 to 19 defines the various attribute of the table and by adding a class ="menu" to the CSS we can specify the applied CSS to the table alone.By using class we can avoid the impact of CSS on various tables.
  3. Next step is to assign a table in line 22 for placing our links in a table and i have defined the table width as 150px and you must give the border value as 0 in order to make it look like a menu.
  4. Cell padding defines the distance between various cells and cellspacing defines the distanc between contents and borders of the cell.
  5. Now you have to define rows <tr> defines rows for menu.
  6. <td> in line 23 defines the column here we use a single row and a single column for the purpose of menu list.
  7. Border in the style attribute of <td> is optional but it gives better look to your menu list.
  8. <a> tag defines the link and you have to paste your desired link in the href="" attribute.
  9. And the text to be show should be placed in between the link <a> </a>
  10. You have to add the <tr> ..........</tr> in line 23 repeatedly by replacing the link in it alone to obtain your desired number of menu's
Now you can obtain your own menu list with our own style and color give us your feedback and post your queries regarding this code.   
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 215

Trending Articles