Shop-Hilfe.com
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 16.10.2003, 15:38   #1
TP-Junior
 
Registriert seit: Sep 2003
nilpferd macht alles soweit korrekt

Kleines Verständnisproblem


Moinsen

Also CSS mag ja ne feine Sache sein, aber ich hab damit mal wieder ein Problem:

Code:
div#leftboxmenue a {
      color:#000000;
      font-family: verdana, helvetica, sans-serif;
      font-size:15px;
      padding-left:25px;
      padding-bottom:2px;
      margin-top:10px;
      background-color:Yellow;
      text-decoration:none;
      border-bottom:1px dotted black;
      z-index:4;
      }
Wenn ich dann in meiner XHTML Datei folgendes angebe:

Code:
          <div id="leftboxmenue"><a href="#">News</a></div>
          <div id="leftboxmenue"><a href="#">Hallo</a></div>
Dann überblendet aber das Hallo-Element, den unteren gestrichelten border, obwohl ich margin-top:10px mit angegeben habe.
Was mache ich falsch?

MFG

nilpferd
nilpferd ist offline   Mit Zitat antworten


Alt 16.10.2003, 15:41   #2
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
du machst was grundsätzliches falsch - aber hallo erstmal!

du darfst eine ID - welche, wie der name schon sagt, ein einzigartiger identifier ist - nur einmal pro seite anwenden.

für mehrmalige verwendung => klasse, in deinem fall:

Code:
div.leftboxmenue a {
      color:#000000;
      font-family: verdana, helvetica, sans-serif;
      font-size:15px;
      padding-left:25px;
      padding-bottom:2px;
      margin-top:10px;
      background-color:Yellow;
      text-decoration:none;
      border-bottom:1px dotted black;
      z-index:4;
      }
Code:
          <div class="leftboxmenue"><a href="#">News</a></div>
          <div class="leftboxmenue"><a href="#">Hallo</a></div>
alles klar??
prefix ist offline   Mit Zitat antworten
Alt 16.10.2003, 15:48   #3
TP-Junior
 
Registriert seit: Sep 2003
nilpferd macht alles soweit korrekt
Ja erstmal danke für deine schnelle antwort prefix. hab das jetzt geändert, aber das löst mein Problem immer noch nicht.

Braucht ihr noch mehr Code???
nilpferd ist offline   Mit Zitat antworten
Alt 16.10.2003, 15:56   #4
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
du solltest mal die klasse "leftboxmenu" zuerst definieren, danach erst das pseudo-element "a":

Code:
<!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>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
.leftboxmenue {
      color:#000000;
      font-family: verdana, helvetica, sans-serif;
      font-size:15px;
      padding-left:25px;
      padding-bottom:2px;
      margin-top:10px;
      background-color:Yellow;
      /*text-decoration:none;
      border-bottom:1px dotted black;*/
      z-index:4;
      }
.leftboxmenue a {
	border-bottom: 1px dotted black;
	text-decoration: none;
}

</style>
</head>

<body>
<div class="leftboxmenue"><a href="#">News</a></div>
<div class="leftboxmenue"><a href="#">Hallo</a></div>

</body>
</html>
das klappt mal (ie6/nn7/op7/mozfb0.61) - wobei bekanntermaßen der ie6 probleme mit "dotted" hat, hier würde ich "dashed" verwenden (nur so am rande)
prefix ist offline   Mit Zitat antworten
Alt 16.10.2003, 21:11   #5
TP-Junior
 
Registriert seit: Sep 2003
nilpferd macht alles soweit korrekt
Besten Dank Prefix....
nilpferd ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > HTML Puristen
Kleines Verständnisproblem Kleines Verständnisproblem
« Alternative zu Iframe? | Ungewollter Zeilenumbruch nach Formular(feld) »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 10:29 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



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

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