Forum

> > Off Topic > HTML Menu Code
Forums overviewOff Topic overviewLog in to reply

English HTML Menu Code

5 replies
To the start Previous 1 Next To the start

Poll Poll

You like it?

Only registered users are allowed to vote
Yes
66.67% (4)
No
0.00% (0)
Maybe
33.33% (2)
6 votes cast

old Poll HTML Menu Code

Big Bang Mafia
User Off Offline

Quote
Hello us !
Well i'm going to share this menu for your website with all.
Well just copy the code then paste into notepad the press save as take save as type all files and give name eg;
name.HTML you must add .html. The menu rock's if you want one. Maybe if you need a menu for your website this is a beautiful menu.
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
<html>
<head>
<style type="text/css">
<!--
@charset "utf-8";


#navMenu {
        margin:0;
        padding:0;
        line-height:30px;
}

/* IE7 Display Fix */

#navMenu #holder ul li { display: inline; }

#navMenu ul {
        margin:0;
        padding:0;
}

#navMenu li {
        margin:0;
        padding:0;
        list-style:none;
        float:left;
        position:relative;
        background:#999;
}

#navMenu ul li a {
        text-align:center;
        font-family:"Comic Sans MS", cursive;
        text-decoration:none;
        height:30px;
        width:150px;
        display:block;
        color:#FFF;
        border:1px solid #FFF;
        text-shadow:1px 1px 1px #000;
}

#navMenu ul ul {
        position:absolute;
        visibility:hidden;
        top:32px;
}

#navMenu ul li:hover ul {
         visibility:visible;
}


#navMenu li:hover {
        background:#09F;
}

#navMenu ul li:hover ul li a:hover {
        background:#CCC;
        color:#000;
}

#navMenu a:hover {
         color:#000;         
}

.clearFloat {
         clear:both;
         margin:0;
         padding:0;    
}


-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8 />
<title>Menu<title>

</head>


<body>


<div id="wrapper">
<div id="navMenu">

<ul>
<li><a href="#">Main</a> 
<ul>
<li><a href="YourLink">HTML Tutorial</a></li> 
<li><a href="#">CSS Tutoriall</a></li>
<li><a href="#">PHP Tutorial</a></li>
<li><a href="#">JavaScript Tutorial</a></li>





</ul> <!-- end inner UL -->
</li>  <!-- end main LI -->
</ul> <!-- end main UL -->

<ul>
<li><a href="#">About us</a>
<ul>
<li><a href="#">About me</a></li>
<li><a href="#">About this website</a></li>

</ul> <!-- end inner UL -->
</li>  <!-- end main LI -->
</ul> <!-- end main UL -->

<ul>
<li><a href="#">Codes</a>
<ul>
<li><a href="#">HTML Code's</a></li>
<li><a href="#">CSS Code's</a></li>
<li><a href="#">PHP Code's</a></li>
<li><a href="#">JavaScript Code's</a></li>





</ul> <!-- end inner UL -->
</li>  <!-- end main LI -->
</ul> <!-- end main UL -->

<ul>
<li><a href="#">Website's</a>
<ul>
<li><a href="#">Unreal Software</a></li>
<li><a href="#">W3 Schools</a></li>

</ul> <!-- end inner UL -->
</li>  <!-- end main LI -->
</ul> <!-- end main UL -->

<ul>
<li><a href="#">Code</a>
<ul>
<li><a href="#">This Website Code</a></li>

</ul> <!-- end inner UL -->
</li>  <!-- end main LI -->
</ul> <!-- end main UL -->

<ul>
<li><a href="#">Contact us</a>
<ul>
<li><a href="#">Contact me</a></li>

</ul> <!-- end inner UL -->
</li>  <!-- end main LI -->
</ul> <!-- end main UL -->

<br class="clearFloat" />

</div> <!-- end navMenu -->
</div> <!-- end wrapper div -->




</body>
</html>

To add menu's do this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<ul>
<li><a href="#">Example</a>
<ul>
<li><a href="#">HTML Code's</a></li>
<li><a href="#">CSS Code's</a></li>
<li><a href="#">PHP Code's</a></li>
<li><a href="#">JavaScript Code's</a></li>





</ul> <!-- end inner UL -->
</li>  <!-- end main LI -->
</ul> <!-- end main UL -->

Where a href="#" add your link eg; a href="test.html"
And where's 'HTML Code's' that is the name that will be show.

So about this menu. Here's a screen:
IMG:https://i44.tinypic.com/2e1u62t.jpg


Enjoy!

old Re: HTML Menu Code

Flacko
User Off Offline

Quote
It's ok.
Although I preffer inline-block'ed divs so I don't have to float stuff around and I don't have to use lists.
shame it won't work on older IE versions

old Re: HTML Menu Code

Big Bang Mafia
User Off Offline

Quote
user MAX-russia has written
Is this your hobby work?

Yes, it is my hobby
Well i'm just a beginner in HTML and CSS i started almost a year ago to learn it or more.
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview