HX3 Foren

HX3 Foren (https://hx3.de/)
-   Software- und Webentwicklung (https://hx3.de/software-webentwicklung-23/)
-   -   [HTML/CSS] Zelle füllt sich bei Hover (https://hx3.de/software-webentwicklung-23/html-css-zelle-fuellt-hover-11424/)

Kompost 16.09.2005 16:35

[HTML/CSS] Zelle füllt sich bei Hover
 
Hi, ich hab ein kleines Problem mit den Links auf meiner Website.

In einer Zelle befindet sich ein Link. Sobald man diesen Link berührt soll sich die komplette Zelle färben. Ich hab es auch schohn mit "display: block;" probiert aber so bleiben immer ein paar Ränder oder andere Stellen weiß.

Gibt es da vielleicht noch eine andere Möglichkeit oder mache ich vielleicht etwas falsch?
Vielen Dank schoneinmal im vorraus.

boonz 16.09.2005 16:45

AW: [HTML/CSS] Zelle füllt sich bei Hover
 
Probier mal, deine CSS-Box mit diesen Einstellungen hier zu überarbeiten (den Namen des Containers abändern ;) )


[
#navlist
{
list-style-type: none;
color: darkgray;
background-color: gainsboro;
margin-left: 5px;
}
]

HTML-Code:


[ #navlist
{
list-style-type: none;
color: darkgray;
background-color: gainsboro;
margin-left: 5px;
}
]

#active:hover li { display: block; }
#active li { display: none; }

#navcontainer
{
width: 220px;
background-color: gainsboro;
border: 1px gray solid;
}

#navcontainer a
{
color: gray;
background-color: gainsboro;
width: 120px;
display: block;
}

#navcontainer a:visited
{
color: gray;
background-color: gainsboro;
}

#navcontainer a:active
{
color: white;
background-color: gray;
}

#navcontainer a:hover
{
color: white;
background-color: gray;
}

Jetzt eben nur noch an den entsprechenden Stellen die background colours abändern :)

Kompost 17.09.2005 11:34

AW: [HTML/CSS] Zelle füllt sich bei Hover
 
Dankeschön, hat wunderbar geklappt :)


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:11 Uhr.

Angetrieben durch vBulletin, Entwicklung von Philipp Dörner & Tobias


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119