help!

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
Alvin1123
Forum Newbie
Posts: 10
Joined: Thu Jul 14, 2011 11:40 am

help!

Post by Alvin1123 »

how do i create a menu in css

like i want the menu buttons to say

Home , forums , about me , forums

someone help?
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Re: help!

Post by aravona »

Well really its a case of having your links:

[text]
<a href="">Home</a> , <a href="">forums</a> , <a href="">about me</a>
[/text]

And then stylining the anchor tags. On a really basic level you can make a menu that changes on hover over.

Really though google is your friend for this, there are many searchable tutorials on how to make a menu with an unordered list:

[text]
<ul>
<li>
<a href="">Home</a>
</li>
<li>
<a href="">forums</a>
</li>
<li>
<a href="">about me</a>
</li>
</ul>
[/text]

With this you can then set the menu vertically or horizontally and then edit hover outs / sub menus etc.
Alvin1123
Forum Newbie
Posts: 10
Joined: Thu Jul 14, 2011 11:40 am

Re: help!

Post by Alvin1123 »

that's html, not css.!
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Re: help!

Post by aravona »

Well you still fundamentally require HTML even when using CSS to create things. Google CSS menu and you will still require some html aspects.

If you do not have anchors, ul and li (for example) you have nothing for your CSS to refer to.

If you do not even know this, I suggest you look at the w3schools website.

CSS has to refer to something, it does not float magically onto the page it needs an ID or Class or HTML tag to refer to.
Alvin1123
Forum Newbie
Posts: 10
Joined: Thu Jul 14, 2011 11:40 am

Re: help!

Post by Alvin1123 »

oh ok
Post Reply