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] Bild immer unten rechts

Empfohlene Antworten

Veröffentlicht

Ich möchte auf einer Website ein Logo/Bild/Container immer unten rechts in der Ecke im Hintergrund haben, vor dem der Seiteninhalt scrollt.

Ich hab das Ganze schon insoweit realisiert, dass der Container immer oben rechts steht. Wie aber bekomme ich ihn dazu, sich an den unteren Rand anzupassen?

Hier mal meine einfache Umsetzung (Container oben rechts):


body

	{

	margin:0;

	padding:0;

	overflow:hidden;

	}


#scroll

	{

	position:absolute;

	top:0;

	left:0;

	width:100%;

	height:100%;

	overflow:auto;

	}


#fix

	{

	float:right;

	width:100px;

	height:100px;

	background-color:#FF6600;

	}

Erst habe ich oben die Scrolleisten vom Body entfernt, dann einen Container (#scroll) als Ersatz-Body definiert und da dann mittels float den #fix-container oben rechts gefixt.

Ach ja, und dann noch eine Zusatzfrage: Warum kann man im Firefox den #scroll-Container nicht per Mousewheel steuern?! Man kann nur die Leiste packen und dann scrollen. Im IE geht das einwandfrei...

???


#fix

	{

	position:absolute;

	bottom:0px;

	right:0px;

	width:100px;

	height:100px;

	overflow:auto;

	}

Oh... :floet:

Danke. Ich hatte mich wohl zu sehr auf das float versteift... 'Schuldigung.

Bleibt aber Frage Nr. 2, warum kann man im Firefox nicht gescheit scrollen? Kennt jemand das Problem?

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.