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.

Schrift als Link nicht verändern

Empfohlene Antworten

Veröffentlicht

Hi Leute!

Habe folgendes Problem!

Will auf meiner Startseite hinschreiben abcde.de, dort soll man wenn man draufklickt auf meine Page gelangen.

Wenn ich dies aber per HTML verlinke wird diese Schrift blau (also als Link) angezeigt und ist unterstrichen (da es ja ein Link ist).

Gibts einen Befehl, dass diese Schrift dann Ihre Farbe (weiss habe ich eingestellt) beibehält und auch nicht mehr unterstrichen ist? Versuchte border="0", funzte aber nicht!

Danke für eure Hilfe

Frichdel

Am besten verwendest Du dafür CSS.

a:link { color:#000099; text-decoration:none;}

a:visited { color:#000099; text-decoration:none;}

a:active { color:#000099; text-decoration:none;}

a:hover { color:#000099; text-decoration:none;}

  • 2 Wochen später...

Oder auch ohne css z.B.:

<p><a href="http://www.homepage.de"><font color="#FFFFFF">

<span style="text-decoration: none">Homepage</span></font></a></p>

Oder auch ohne css z.B.:

css ist bestimmt die bessere Lösung,

- da nicht so umständlich

- einfacher für korrekturen später

- von jedem Browser sowieso schon unterstützt

- Alle Formatierungsangaben zentral an einem platz untergebracht werden können

Oder auch ohne css z.B.:

Naja, Style="" ist nichts anderes als CSS nur nicht zentral in einer externen .css Datei abgelegt ;)

Edit:

und wenn schon nicht zentral und mit css dann doch ganz css und nicht nur halb: ;)


 <a href="http://www.homepage.de" style="color: #FFFFFF; text-decoration: none">

Homepage</a>

in der Css ist es sicher am einfachsten und sinnvollsten!

Stellt sich nur die Frage:

:confused:

Für alle Links oder nur für den einen?

Für alle Links klar in der CSS Datei!

Für ausschliesslich diesen einen link dann in der Page selber

noch eine Anmerkung und etwas was bisher hier vergessen wurde:

Die Mischung aus beidem (externe CSS-Datei und lokales CSS nur für diese eine Datei).

Es ist lokal nicht nur über die Style-Angabe in den HTML Tags möglich CSS zu benutzen, dies kann auch für das ganze Dokument "zentral" im Kopf der Datei geschehen.


<html>

<head>

<title>Titel</title>

<style type="text/css">

<!--

a:link { color:#000099; text-decoration:none;}

a:visited { color:#000099; text-decoration:none;}

a:active { color:#000099; text-decoration:none;}

a:hover { color:#000099; text-decoration:none;}

-->

</style>

</head>

<body>

 <a href="http://www.homepage.de">

Homepage</a>

</body>

</html>

Damit wären alle Links in einer Farbe und nicht unterstrichen, allerdings nur auf dieses Dokument beschränkt.

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.