---
title: "Länkproblem"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/129458-länkproblem"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "AnnelieT"
published: "2005-06-05T09:03:05.000Z"
updated: "2005-06-07T10:23:27.000Z"
replies: 3
views: 245
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/129458-länkproblem"
---

# Länkproblem

## #1 — AnnelieT, 2005-06-05T09:03Z

Hej!
Jag har ett par länkar som är placerade i en tabell, men nu har jag fått lite problem. Jag vill ha dem i en speciell färg och utan understrykningar mm.

När jag lägger till denna kod i CSS-mallen för indexsidan
a:link { color: #3a7171; 
text-decoration: none;
font-weight: bold;}
a:visited { color: #3a7171; 
font-weight: bold;
text-decoration: none}
a:active { color: #3a7171;
font-weight: bold;
text-decoration: none}

så ser länkarna ut som de ska i tabellen, MEN då försvinner länkarna i min dropdownmeny.

Jag har även testat att lägga följande kod i CSS-mallen

td.layout1 a:link { 
color: #3a7171; 
text-decoration: none }

td.layout1 a:visited { 
color: #3a7171; 
text-decoration: none }

td.layout1 a:hover { 
color: #3a7171; 
text-decoration: underline }

td.layout1 a:active { 
color: #3a7171; 
text-decoration: none }

Då funkar det i IE, men inte i Mozilla

Mallen för dropdownmenyn ser ut så här:
.ddmx {
    font: 11px tahoma;
}
.ddmx .item1,
.ddmx .item1:hover,
.ddmx .item1-active,
.ddmx .item1-active:hover {
    padding: 3px 10px 3px 10px;
    background: #3a7171;
    font: 12px arial;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    position: relative;
}
.ddmx .item2,
.ddmx .item2:hover,
.ddmx .item2-active,
.ddmx .item2-active:hover {
    padding: 3px 8px 4px 8px;
    font: 11px tahoma;
    color: #3a7171;
    font-weight: bold;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    position: relative;
    z-index: 500;
}
.ddmx .item2 {
    background: #ffffff;
}
.ddmx .item2:hover,
.ddmx .item2-active,
.ddmx .item2-active:hover {
    background: #ffffff;
}
.ddmx .arrow,
.ddmx .arrow:hover {
    padding: 3px 16px 4px 8px;
}
.ddmx .item2 img,
.ddmx .item2-active img{
    position: absolute;
    top: 4px;
    right: 1px;
    border: 0;
}
.ddmx .section {
    border: 1px solid #3a7171;
    position: absolute;
    visibility: hidden;
    z-index: -1;
}

\* html .ddmx td { position: relative; } /\* ie 5.0 fix \*/

Någon som har något tips om hur jag kan rätta till detta?

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

## #2 — AnnelieT, 2005-06-05T14:55Z

Hej igen!

Problemet är löst.

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

## #3 — icaaq, 2005-06-06T05:21Z

Hej.
Skriv gärna hur du löst det så kan det hjälpa andra....

mv icaaq

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

## #4 — AnnelieT, 2005-06-07T10:23Z

Hej igen!

Jo, jag skippade tabellen och använde mig av boxar istället och då fungerade det med följande kod i css-mallen.

.boxlink a:link {
font-size: 11px;
color: #3a7171;
text-align: left;
margin-left: 10px}

.boxlink a:visited { 
font-size: 11px;
color: #3a7171;
text-align: left;
margin-left: 10px}

.boxlink a:active {
font-size: 11px;
color: #3a7171;
text-align: left;
margin-left: 10px}

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

---

Tråden på webben: https://www.webforum.nu/amne/html-css/129458-länkproblem
