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.

Mozilla und "width"

Empfohlene Antworten

Ich habe folgendes Problem: Der Link ist von einem Rahmen umgeben, welcher eine feste Breite hat. Unter Mozilla z.B. ist die Angabe der Breite aber völlig wirkungslos...


<html>

<head>

<title>Untitled</title>

<style type="text/css">

body { font-family: verdana, tahoma, arial, helvetica;

font-size: xx-small; color: #666666; }

a:link { font-family: verdana; color: #555555; padding: 3px;

border: 1px solid #FFFFFF; text-decoration: none; }

a:visited { color: #555555; padding: 3px; border: 1px solid #FFFFFF;

text-decoration: none; }

a:hover { color: #555555; background-color: #EEEEEE;

padding: 3px; border: 1px solid #AAAAAA; text-decoration: none; }

a:active { font: bold; background-color: #FFFFFF; color: #555555;

padding: 3px; border: 1px solid #FFFFFF; text-decoration: none; }

</style>

</head>

<body>

<br><br><br><a href="#" style="width:100">Link</a>

</body>

</html>

Das war in der Eile ein Tippfehler. ;)

Auch mit px schließt der Rahmen bei Mozilla direkt nach dem letzten Buchstaben.

Ich hab auch noch nie gehört das man einem Link eine Breite geben kann, selbst Self-HTML schweigt sich dazu aus.

Vielleicht musst du es einfach hinnehmen das der IE das versucht zu interpretieren und der Mozilla nicht.

Mir fällt jetzt grad nicht ein wie du das mit href lösen könntest.

Höchstens mit einem Div drumherum, aber das ist nicht ganz das was du willst, oder?

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.