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 Links mit Hintergrundbild

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich habe folgende Definition:


.infoboxtext a:link, .infoboxtext a:visited {

	padding-left: 0.9em;	

	text-decoration: none; 

	color: #000000;

  	background: url(../shared/linkpoint.gif) no-repeat;

	background-position: left center;

}


.infoboxtext a:hover,  .infoboxtext a:active, .infoboxtext a:focus {

	color: #A6A6A6;

	background: url(../shared/linkpoint2.gif) no-repeat;

	background-position: left center;


}

Dies führ dazu, dass meine Links ein Hintergrundbild bekommen.

Jetzt möchte ich aber, dass dies nur bei Links passiert, die nicht auf Bildern liegen...

Wie kann ich das am besten bewerkstelligen?

Gruß,

Markus

Jetzt möchte ich aber, dass dies nur bei Links passiert, die nicht auf Bildern liegen...

Hm... wie meinst du auf Bildern liegen? Wenn du das bei der Gestalltung weisst, gibst du denen ne eigene Klasse


.infotextbox a .noimage { background-image: none; }

Würd ich jetzt mal so sagen...

Hi,

Hm das mit der eigenen Klasse geht nicht, da die Bilder durch einen WYSIWYG Editor eingefügt werden...

Gruß,

Markus

Das Prinzinzip steht doch schon fast da:

.infotextbox a img {

// kein bild

}

Ja so einfach hab ich mir das auch gedacht...

Aber bei dieser Definition bezieht sich "// kein bild" auf das "img" und nicht auf das "a". Heisst also, der link behält weiterhin sein Background-Image...

Gruß,

Markus

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.