Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[CSS] pulldown menue Abstände.

Empfohlene Antworten

HI leute. Hab hier ein Pulldown Menue mit Hover effekt in css geschrieben. Funktioniert auch soweit super. Nur 2 Dinge kriege ich nicht raus.

1. Möchte ich den Abstand zwischen der Kategorie oben und dem block der beim hovern erscheint vergrößern.

2. Würde ich gerne die Zellen der Hover umranden. Nicht komplett via Border, sondern den gesammten Zellen Block.

hier der CSS Quellcode.


* {

margin: 0;

padding: 0;

} 




#menu {

width: 100%;

padding: 0 10px;

background: #000000;

font-family: Verdana;

font-size: 0.8em;

line-height: 1.5;

float: left;

} 


#menu ul {

float: left;

width: 100px;

list-style-type: none;

} 



#menu h3 {

font-size: 0.8em;

text-align: center;

color: #ffffff;

border: 1px solid #000000;

background: #000000;

}



#menu a {

text-decoration: none;

font size: 0.8em;

display: block;

border: 0px solid #ccc;

text-align: center;

background: #000000;

color: #ffffff;

}



#menu a:hover {

color: #000000;

background: #ffffff;

} 




#menu li {

position: relative;

}


#menu ul ul {

position: absolute;

z-index: 2;

display: none;

}



#menu ul li:hover ul {

display: block;

} 


Und hier einer der HTML Blöcke:
<ul>

      <li>

         <h3>Thema 1</h3>

            <ul>

               <li><a href="#">Thema 1.1</a></li>

               <li><a href="#">Thema 1.2</a></li>

               <li><a href="#">Thema 1.3</a></li>

            </ul>

         </li>

   </ul>

Danke im Vorraus.

lg

habs hinbekommen.. mit top: 10px; funktioniert.

und das umranden habe ich jetzt mit border-left solid #ccc; und border-right solid #ccc; gelöst.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.