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

Empfohlene Antworten

Hi Leute,

möchte folgendes wissen:

Habe einen Webserver unter Linux.

Im Verzeichnis /var/www/error bfindet sich die von mir erstellte 401.html, die bei einer fehlgeschlagenen Anmeldung im geschützten Bereich angezeigt wird. Auf dieser *.html befinden sich Links.

Diese Datei habe ich lokal erstellt und in einer format.css ist definiert, wie die Links auszusehen haben. Doch sobald ich die 401.html und format.css in das /var/www/error-Verzeichnis kopiert habe, wird die Seite zwar angezeigt, doch die Links sehen nicht so aus, wie sie in der format.css defniert sind.

(Auf meinem Rechner funktionieren die Links mit der format.css

---> format.css richtig!)

Beide Dateien liegen im selben Verzeichnis.

Was mache ich falsch? :rolleyes:

Danke schon mal im voraus...

hi,

mit welchem browser schaust du dir denn die datei lokal an? und mit welchem browser schaust du die datei an, wenn sie auf den server geladen ist?

netscape und ie zeigen bei den selben befehlen nicht immer das selbe an.

lass mal den code von deinem css sehen.

mfg korea1

Sowohl lokal, als auch vom Server aus, wird die 401.html mit dem IE betrachtet.

Hier die format.css:

/* schriftstil,abstände */

body

{ color: #000000; background-color:#ffffff; font-family: verdana,arial; font-size: 10pt;}

table,tr,td

{ color: #000000 ;font-family: verdana,arial; font-size: 10pt}

/* scrolleiste internet explorer ab vers.5.5 */

body

{scrollbar-arrow-color: #808080; scrollbar-base-color: #ffffff;

scrollbar-highlight-color : #808080; scrollbar-shadow-color : #808080;

SCROLLBAR-TRACK-COLOR: #e6e6e6;}

/* menue linke seite */

#menuli a {display: block;

color:#000000;text-decoration:none;font-family:verdana, sans-serif; font-size:10pt; width:205px;

padding-left: 5px; padding-bottom: 3px; padding-top: 3px;margin: 0px auto;

border-bottom:dotted 1px #838383

}

#menuli a:visited{

color:#000000;text-decoration:none;font-family:verdana, sans-serif; font-size:10pt; width:205px;

padding-left: 5px; padding-bottom: 3px; padding-top: 3px;margin: 0px auto;

border-bottom:dotted 1px #838383

}

#menuli a:active {color:#000000;text-decoration:none;font-family:verdana, sans-serif; font-size:10pt; width:205px;

padding-left: 5px; padding-bottom: 3px; padding-top: 3px;margin: 0px auto;

border-bottom:dotted 1px #838383

}

#menuli a:hover {background-color:#ffffff;

color:#000000;text-decoration:none;font-family:verdana, sans-serif; font-size:10pt; width:205px;

padding-left: 5px; padding-bottom: 3px; padding-top: 3px;margin: 0px auto;

border-bottom:dotted 1px #cccccc

}

/* menue unten */

#menu a {display: block;

color:#5F5F5F;text-decoration:none;font-family:verdana, sans-serif; font-size:10pt; width:125px;

padding-left: 2px; padding-bottom: 3px; padding-top: 3px;margin: 0px auto;

}

#menu a:visited{

color:#5F5F5F;text-decoration:none;font-family:verdana, sans-serif; font-size:10pt; width:125px;

padding-left: 2px; padding-bottom: 3px; padding-top: 3px;margin: 0px auto;

}

#menu a:active {color:#5F5F5F;text-decoration:none;font-family:verdana, sans-serif; font-size:10pt; width:125px;

padding-left: 2px; padding-bottom: 3px; padding-top: 3px;margin: 0px auto;

}

#menu a:hover {

color:#ffffff;text-decoration:none;font-family:verdana, sans-serif; font-size:10pt; width:125px;

padding-left: 2px; padding-bottom: 3px; padding-top: 3px;margin: 0px auto;

border:solid 1px #EFEFEF

}

/* allgemeine links im text */

a:link{ color: #000000; text-decoration:underline;font-family: verdana; font-size: 10pt;}

a:visited{color: #000000;text-decoration:underline;font-family: verdana; font-size: 10pt;}

a:active{ color: #000000;text-decoration:underline;font-family: verdana; font-size: 10pt; }

a:hover{ color: #000000; text-decoration:none;font-family: verdana; font-size: 10pt; }

hi,

also aufs erste fällt mir jetzt auch kein fehler auf. zumindest bei den links.

poste mal bitte noch den codeschnipsel an der stelle, an der du das css einbindest bzw. die links mit den attributen aus dem css.

korea1

wahrscheinlich stimmt der link von der html datei auf die css datei nicht!

Doch, der Link müsste stimmen "format.css".

Die format.css liegt doch auch im selben Verzeichnis wie die 401.html.

Ich bin mit meinen Latein am Ende :(

verusch ma die error datei direkt per Browser aufzurufen.

Sieht sie dann besseraus?

ansonsten:

poste mal den kopf der error datei in der die css datei eingebunden wird

und die struktur wo genau die error datei und die css datie liegen

Doch, der Link müsste stimmen "format.css".

Die format.css liegt doch auch im selben Verzeichnis wie die 401.html.

Ich bin mit meinen Latein am Ende :(

Probier mal als Link "./format.css" und achte auf die Groß-/Kleinschreibung. /var/www sieht nach Linux/Unix aus und du selber wirst es wohl auf Windows testen (lokal).

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.