View Full Version: Box like navagation

VN Blab > HTML - Coding > Box like navagation



Title: Box like navagation
Description: How do you do it?


Ringo - December 1, 2006 10:50 PM (GMT)
I wan't to do box like navagation on my website, but I don't know how. ;~; Could someone tell me the code? :blink:

Eeveechan - December 5, 2006 03:23 PM (GMT)
Meow, what kind of box-like navigation? As in a 3-column?

Ringo - December 5, 2006 10:01 PM (GMT)
Kinda like the one that VN has. =D

Eevereon - December 6, 2006 05:29 PM (GMT)
You will need to use a TD for every single link there is (hooray) ^^;; There is no actual code for it... but you will need to know CSS and how to work with tables x3 Well eh...I'll tell you how to do them:

In your CSS...

Add this BEFORE the body {
(this is for your the links in TDs only, it will not affect regular links in A:link...)

A.n:link {display: block; width: 100px;}
A.n:visited {display: block; width: 100px;}
A.n:active {display: block; width: 100px;}
A.n:hover {display: block; width: 100px; background-color: #FFFFFF;}


Add this IN the body {
(this tells what the TD should do when you hover your mouse over it/click it)

.nav {width: 100px;
background-color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
background: url('IMAGE optional');}
.normal {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color:#000000; background-color: #FFFFFF; width: 100px; background: url('IMAGE optional');}
.highlight {background-color: #FAFAFA; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; width: 100px; background: url('IMAGE optinal');}

and in your HTML...
(this is the table and TDs that will contain the links)

<table border="0" cellpadding="0" cellspacing="0">
<tr><td class="nav" valign="top">
<a href="linkURL" class="n"> LINK </a></tr></td>
<tr><td class="nav" valign="top">
<a href="linkURL" class="n"> LINK </a></tr></td>
<tr><td class="nav" valign="top">
<a href="linkURL" class="n"> LINK </a></tr></td>

etc. etc...keeping adding

<tr><td class="nav" valign="top">
<a href="linkURL" class="n"> LINK </a></tr></td>

for every new link that you have.

Edit everything that are in red... things that are in blue are optional. Whatever in green should not be removed.


I hope that...um...helped you in some way? O_o;; I know it'll be confusing if you don't understand CSS xD

Ringo - December 6, 2006 09:57 PM (GMT)
Eeek my savior! *arrow'd*
Thanks Ev! I owe you big time!

Eeveechan - December 8, 2006 03:47 AM (GMT)
OwO;; That was a full-blown guide. You should throw that up somewhere on VN! xD

I'll have to torture you on Yahoo until you explain it again to my slow brain.

Eevereon - December 8, 2006 04:33 PM (GMT)
It's quite easy if you give try it ^^ and I'll get some HTML tutorials up on VN too =D

Eeveechan - December 8, 2006 09:59 PM (GMT)
Hee heee haha haa. XD




Hosted for free by InvisionFree