---
title: "problem med a:hover"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/165659-problem-med-a-hover"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "trygge"
published: "2007-10-20T10:54:09.000Z"
updated: "2007-10-20T11:05:43.000Z"
replies: 3
views: 354
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/html-css/165659-problem-med-a-hover"
---

# problem med a:hover

## #1 — trygge, 2007-10-20T10:54Z

Hej,

Jag fattar inte varför en länk i min meny fungerar som den ska och inte de andra. Jag hittar inte felet och jag hoppas att ni kan hjälpa mig.

adressen till sidan är denna <http://ekonomsektionen.se/karriar/index.html>

CSS kod

```
#wrap {
	position: relative;
	width: 600px;
	height: 100%;
	margin: 0 auto;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: silver;
	border-right-color: silver;
	border-bottom-color: silver;
	border-left-color: silver;
}
#top {
	width: 600px;
	background-image:url(meny.jpg);
	height: 105px;
}
#nav {
	width: 600px;
	height: auto;
	border-bottom-style: solid;
	border-bottom-color: silver;
}
.meny li{
	margin-left: 20px;
	list-style-type: circle;
	display: inline;
	font-family: "Comic Sans MS";
	margin-bottom: 20px;
	padding-bottom: 20px;
}
.meny a {text-decoration: none;}
.meny a:link {color: #C0C0C0;}
.meny a:hover {
	color: #e01e26;
	font-weight: bold;
}
.meny a:visited {color: #C0C0C0}
#content {
	width: 600px;
	margin: auto;
	position: static;
}
.text {
	padding: 0px;
	left: 20px;
	font-family: "Monotype Corsiva";
	font-size: small;
	line-height: 16px;
	color: #C0C0C0;
	margin-top: 0px;
	margin-right: 40px;
	margin-bottom: 0px;
	margin-left: 20px;
	letter-spacing: 2px;
}
```

Permalänk: https://www.webforum.nu/p/165659

## #2 — metalboy, 2007-10-20T11:03Z

> Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!!

 

Källa:
<http://www.w3schools.com/css/css_pseudo_classes.asp>

Permalänk: https://www.webforum.nu/p/2043110

## #3 — Danne V, 2007-10-20T11:05Z

> **trygge skrev:**
>
> Hej,
> 
> Jag fattar inte varför en länk i min meny fungerar som den ska och inte de andra. Jag hittar inte felet och jag hoppas att ni kan hjälpa mig.
> 
> adressen till sidan är denna <http://ekonomsektionen.se/karriar/index.html>

Vilken funkar, vilka funkar inte, och vad är skillnaden?

Permalänk: https://www.webforum.nu/p/2043111

## #4 — trygge, 2007-10-20T11:05Z

Så enkelt  :) 

Tack metalboy   :bire

edit: Tror att jag hann editera innan du såg det gamla

Permalänk: https://www.webforum.nu/p/2043112

---

Tråden på webben: https://www.webforum.nu/amne/html-css/165659-problem-med-a-hover
