Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > HTML / XHTML
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 05-19-2009, 12:48 PM
  #1
doaji
Novice (Level 1)
 
Join Date: May 2009
Posts: 3
iTrader: (0)
doaji is an unknown quantity at this point
Static Menu

Please i would like to know how i can create a side menu that would actually be independent of the content of the page.
What i normally do is insert a table and split it into two, one for the menu and the other for the content, but i always struggle with setting the menu t align properly with the content, since many at times the content is always more than the menu, it would bring the menu lower than where i want it to be, please is there anyway i cant create a menu that is not going to move irrespective of the length on the content section.
doaji is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-19-2009, 08:39 PM
  #2
chuckymong
SuperHero (Level 14)
 
chuckymong's Avatar
 
Join Date: Jun 2007
Location: Crewe, Cheshire
Posts: 260
iTrader: (0)
chuckymong will become famous soon enough
First of all i would like to recomend that you learn to make a layout use div's - <div></div> because this makes better practice and second of all i think this should be a solution to you problem -

Code:
<html>
  <head>
  </head>
  <body>
    <!--Begin table for layout-->
    <table cellpadding="3" cellspacing="0" border="0" width="100%">
      <!--New row in table-->
      <tr>
        <td width="20%" valign="top">
        <!--Navigation content here-->
        </td>
        <td width="80%">
        <!--Content section here-->
        </td>
      </tr>
    </table>
  </body>
</html>
As you can see by adding the valign attribute to the <td> tag we can set the vertical alignment of that data cell in the table. Therefore if we set the value of the valign attribute to "top" we can vertically align all the contents of that data cell to stay at the top.

Code:
valign="top"
Hope this not only sorts but explains how this problem is resolved
__________________
Portfolio Site: Chucky-mong - New name soon!
chuckymong is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-20-2009, 10:07 AM
  #3
doaji
Novice (Level 1)
 
Join Date: May 2009
Posts: 3
iTrader: (0)
doaji is an unknown quantity at this point
Thanks for your advice, let me look it up now
doaji is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-20-2009, 10:15 AM
  #4
doaji
Novice (Level 1)
 
Join Date: May 2009
Posts: 3
iTrader: (0)
doaji is an unknown quantity at this point
Jus tried it out and it worked, i also read th explanations u gave and i must say that i am very happy bout it, thanks a million. as for the Div, jus that i dont have and dont know of any IDE that really has a vitual interface for its manipulation as they have for tables, thats why i dont really know much about that, but i would try and dig in.
doaji is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


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



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 05:52 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.