• 0
bluemoonredsun

HTML code help "Menu"

Question

So this is the website I am working at http://shizzle.uphero.com ...

And this is the HTML code , So what I wanna do , is making a little menu at the top that goes horizontal like

Home -o- Blog -o- Forum -o-

could someone please help me ? :D

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<html>

<div id="menu">

<ul>

<li><a href="https://www.google.com/">Google</a></li>

<li><a href="http://www.youtube.com">Youtube</a></li>

</ul></div>

<body bgcolor=grey>

<head>

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

<title>SHIZZLE</title>

<link href="/images/favicon.ico" rel="icon" type="image/x-icon" />

<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />

</head>

<body onload="UR_Start()" bgcolor="FFFFFF">

<font face="Comic Sans MS" size="6" color="#190707">

<br /> Welcome to my Website ;D

</font>

</body>

</html>

Share this post


Link to post
Share on other sites

17 answers to this question

Recommended Posts

  • 0

I would recommend using a Content Management System.

But if you do want to continue making it in HTML go ahead. Also for forums you would probably have to use a free forum software and also you would need an MySQL database for a forum

Share this post


Link to post
Share on other sites
  • 0

You can use the following CSS on the list:

ul {

list-style-type : none;

}


ul li {

display : inline;

margin-right : 5px;

}


ul li a {

text-decoration : none;

color: #333;

}


ul li a:hover {

color: #555;

}


If something is wrong, let me know... I have a suspicion I missed something.

Share this post


Link to post
Share on other sites
  • 0

There is no CSS file , Only HTML :L

Yeah, you'll need an entirely separate file for your CSS sheet, and then you need to reference it in the header of the html page (each one) so it knows to use it.

What Flaw said isn't a complete CSS sheet, but it is a good start.

You can use the following CSS on the list:

ul {
list-style-type : none;
}

ul li {
display : inline;
margin-right : 5px;
}

ul li a {
text-decoration : none;
color: #333;
}

ul li a:hover {
color: #555;
}

[/CODE]

If something is wrong, let me know... I have a suspicion I missed something.

EDIT: Wow... Flaw said the same thing and only had to hit the Quote button twice... XD

Edited by Tim

Share this post


Link to post
Share on other sites
  • 0

I'm actually in between classes at the moment, but later on this evening, I can try to work out what is wrong with your code @bluemoonredsun.

Whatever I do, I'll put it up here. If you'd like me to help you, I only need your code - just send it to me (Tim@.Net) or just zip it up and stick it in a post here as an attachment :3

EDIT: I won't be creating an entire CSS Sheet though - that takes a good deal of time. If you just search for "free CSS templates" or something of the nature, you'll get a full webpage designed with a CSS sheet that you can then use to manipulate as you see fit. You only need to keep a link to the original author in the footer (usually in the footer, although anywhere will work generally).

Share this post


Link to post
Share on other sites
  • 0

For the menu's ul and li use this:


ul {display:inline-block;
margin:0px;}
li {padding-right:10px;
margin:0px;}
[/CODE] To style the links use this:
[CODE]
#menu a{ color:#(6 digit hex code);
text-decoration: none;}
#menu a:hover{ color:#(6 digit hex code);
text-decoration: none;}
#menu a:visited{ color:#(6 digit hex code);
text-decoration: none;}

For the visited, I generally put it the same as the normal a. Do you have PHP? I could really help you with your menu if you have PHP :P Also remember for the menu, never saw you had it on the html code you showed above:

<div id="menu">
<ul>
<li><a href="link.html">Test</a></li>
<li><a href="link.html">Test</a></li>
</ul>
</div>
[/code]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Topics

  • Recent Status Updates

  • Posts

    • This should be resolved now, please let me know!
    • I noticed that on extinction the char level isnt raised. Its still level 105. While on ragnarok and the island its a lot higher. Probably something went wrong with Extinction.  
    • So a little while ago I completed the main story for Far Cry New Dawn and I have to say they made a huge improvement on 5. I'll start off this review with a warning, if you don't want the story to be spoiled for you then stop reading and go pick up the game.   Starting off, the story was greatly improved, it was intriguing the full way through and constantly made me want to know what was going to happen next, with it even featuring a lot of cameos from characters from Far Cry 5. The game itself is set after the events of the last game's good ending, when Joseph Seed set off a nuclear warhead. Believe it or not in this game New Eden still lives on, as the good guys! You don't personally play as them or join them, but you do meet with Joseph and his son in an attempt to team up against the new threat facing hope county: the highwaymen. Led by two twins that this game will teach you to hate in every way physically possible.  Next we'll look at the new way weapons are ranked. Instead of just being judged on stats and being able to add attachments, weapons are based on a colour that determines their rarity. Grey, blue, purple and finally golden. You have a similar system for vehicles. You are also put in charge of upgrading your home base that is home to the resistance fighting the highwaymen. With these upgrades you'll get perks and access to crafting more powerful weapons.  As we move on we'll discuss the new enemy systems too. They also share the ranking system with weapons and vehicles. With the most common being easy to beat and with no armour. All the way up to the golden enemies. They can take a real bad beating and have incredibly powerful weapons, these guys should NOT be messed with unless you know you have the firepower to match. You mostly meet them at the most difficult outposts. Speaking of which, outposts can be scavenged. Meaning you let the highwaymen retake it and you'll get better rewards for taking it back. Another topic that I want to touch on is the brand new expeditions. You'll take a helicopter with a loveable pilot to highwaymen outposts all across North America, ranging from Texas all the way to remote jungles containing massive military planes. Each of these expeditions has a package you have to steal, after 30 seconds a beacon signifies to the highwaymen, "Oh **** our stuff's gone" and they all come in brute force while you wait for the pilot to swing back around. The unique locations and great loot, make this another really nice addition to the game. Although there has been these good points I must touch on something I personally didn't like too much. And it might seem petty or small considering the game. The character face/hair/clothing options. Really couldn't find anything that didn't look kinda stupid as a guy who's meant to be single handedly taking on the massive army. But other than that, my review is finished. My final verdict is that Far Cry New Dawn is a game definitely worth buying. If you're a long time fan of the series and you haven't got it yet now is definitely the time. 
  • Who's Online (See full list)

    There are no registered users currently online