---
title: "Hoverfunktionen i menyer"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/178628-hoverfunktionen-i-menyer"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "Jompan"
published: "2009-05-20T16:29:11.000Z"
updated: "2009-05-20T16:29:11.000Z"
replies: 0
views: 259
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/178628-hoverfunktionen-i-menyer"
---

# Hoverfunktionen i menyer

## #1 — Jompan, 2009-05-20T16:29Z

Jag håller på och anpassar en gratismall till en egen webbsida, men jag har problem med hoverfunktionen.

Adressen till min sida är denna: <http://www.vskg.nu/byggnytt/index.html>

I menyerna ska valen mellan de olika katalogerna följas av dels mörk bild och dels att katalogtexten växlar från svart till vit. Så funkar det i alla fall i den ursprungliga kodningen. Nu ligger HEM-funktionen kvar även i valet GUIDEPROGRAM.

(Jag har bara gjort i ordning litet grand i valen HEM och GUIDEPROGRAM.)

Kan någon hjälpa mig att hitta felet i css.filerna?

STYLE.css

\#menu ul {
	margin: 0 auto 0 auto;
	color: #dbe0e3;
}
\#menu li {
	list-style:none;
	line-height:25px;
}
\#menu li a {
	text-decoration:none;
	font-family:Tahoma, "Franklin Gothic Medium", Georgia;
	font-size: 11px;
	letter-spacing: 1px;
	background: url(img/left.gif) no-repeat;
	color: #5e7080;
	padding-left: 10px;
}
\#menu li a:hover {
	color: #000;
}
\#menu li a, #menu li span {
	display: block;
}
\#menu li span {
	padding-right: 10px;
	padding-bottom: 3px;
	background:url(img/right.gif) no-repeat top right;
}
\#menu .clicked a {
	background:url(img/left_clickec.gif) no-repeat;
	color: #ffffff;
}
\#menu .clicked a:hover {
	background:url(img/left_clickec.gif) no-repeat;
	color: #ffffff;
}
\#menu .clicked span {
	background:url(img/right_clicked.gif) no-repeat top right;
}

GENERAL.css

body, img, ul, li, p, h1, h2, h4, a {
	margin: 0;
	padding: 0;
	border: 0;
	text-decoration:none;
}
body {
	background: url('bak.jpg');
}
h2 {
	padding-top: 3px;
	padding-bottom: 5px;
	color: #5e7080;
	font-size: 18px;
}
p {
	font-family: verdana, Arial;
	font-size: 12px;
	margin-bottom: 10px;
	color: #111;
	line-height: 150%;
}
\#logotype {
	height: 160px;
	background: #FAFAD2;

}
\#menu {
	padding: 10px;
	float: left;
	width: 150px;
	font-weight: bold;
}
\#title {
	position: absolute;
	margin: 33px 0 0 100px;
}
\#title h1 {
	font-family: "Franklin Gothic Medium", Arial, Verdana;
	font-size: 30px;
	color: #ffffff;
	font-weight: Normal;

}
i	 {
	font-family: Tahoma, "Franklin Gothic Medium", Georgia;
	font-size: 11px;
	letter-spacing: 1px;
	color: #006400;
	font-weight: bold;	
}
\#container {
	width: 900px;
	background: #DBE0E3;
	margin-left: auto;
	margin-right: auto;
}
\#field {
	width: 680px;
	margin: 10px auto 10px auto;
	background: white;
	padding: 20px;
	float: left;
}
\#field h1 {
	font-family: verdana, Arial;
	font-size: 24px;
	font-weight: normal;
	margin-bottom: 10px;
	margin-left: 20px;
	color: #4B0082;
}
\#columnleft {
	border: 1px dashed #c8cccf;
	padding: 20px;
	width: 288px;
	float: left;
	margin-right: 10px;
}
\#columnright {
	border: 1px dashed #c8cccf;
	padding: 20px;
	width: 288px;
	float: left;
	margin-left: 10px;
}
\#columnbig {
	width: 638px;
	border: 1px dashed #c8cccf;
	padding: 20px;
}
\#columnbig img {
	float: right;
	border: 1px solid #C8CCCF;
	margin: 0 20px 0 20px;

}
table {
	width: 100%;
	background: #718C9D;
	border: 1px solid #C8CCCF;
}
th {
	font-family: "Franklin Gothic Medium";
	font-weight: normal;
	color: #ffffff;
}
td {
	border: 1px solid #C8CCCF;
	background: #FAFAD2;
	font-family: verdana, Arial;
	font-size: 12px;
	padding: 5px;
}
\#footer {
	background: url('menu/img/menu_bkg.gif');
	font-family: Arial, Verdana;
	font-size: 11px;
	text-align: center;
	color: #666;
	height: 15px;
	padding: 5px;
	line-height: 12px;
}
\#footer a {
	font-family: Arial, Verdana;
	font-size: 11px;
	font-weight: normal;
	color: #000000;
	
}
\#footer a:hover {
	text-decoration: underline;
}
.clear {
	clear: both;
	float: none;
	padding: 0;
	margin:0;
}

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

---

Tråden på webben: https://www.webforum.nu/amne/html-css/178628-hoverfunktionen-i-menyer
