by nextlevelgaming December 3rd 2012, 9:04 pm
ok so you would want to use an unordered list like so
- Code:
<div id="sideMenu">
<ul>
<li><a href="/h1-name">Link 1</a></li>
<li><a href="/h2-name">Link 1</a></li>
<li><a href="/h3-name">Link 1</a></li>
<li><a href="/h4-name">Link 1</a></li>
</ul>
</div>
That is a quick markup again. <ul> stands for unordered list, <li> stands for list item.
<a href="/h1-name"> would be changed to the html pages you have, when you go to your html pages you should see
next to each of course, well on the complete left side you can actually see the links. by making the href="/h1-name" we are stating that this is a subpage of our domain. And it will go to that link without opening a new page or anything messing up.
To style this there maybe some fun for you
Some immediate CSS lesson:
ul{list-style-type:none;} this makes it so there are no bullets.
I'd rather not just give you a code, and instead teach you thats why I am explaining this to you as I go.
to edit the the text for font size and font color and hover effects you must first add class so that no other ul li or div will be messed around with.
- Code:
<div id="sideMenu">
<ul class="sidemenuUL">
<li><a href="/h1-name">Link 1</a></li>
<li><a href="/h2-name">Link 1</a></li>
<li><a href="/h3-name">Link 1</a></li>
<li><a href="/h4-name">Link 1</a></li>
</ul>
</div>
CSS quicky
- Code:
#sideMenu{width:200px;height:auto; padding:2px;background-color:#000;overflow:hidden;border:2px solid #00ff00; border-radius:5px;/* You may not need this try with and without float:right; */}
.sidemenuUL{list-style-typle:none; width:200px;text-align:center;}
.sidemenuUL li a{width:200px;height:30px;font-size:14px; color:#0000ff; text-decoration:none; }
.sidemenuUL li a{color:#ff0000;background:#c3c3c3; }
That was something quick without looking at any thing. I hope you understand this all...
Also you must add this to your OVERALL_HEADER next to the logo in that template