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.

tabelle in die mitte des fensters positionieren

Empfohlene Antworten

kann ich eine HTML Seite so gestalten, das eine Tabelle (die 500px breit und ca. 300px hoch ist) genau in der Mitte des Fensters erscheint, egal wie groß das aktuelle Browserfenster gerade ist?

Probiers mal damit:

(center) (/center)

Anstatt der runden Klammern, nimmst du natürlich die normalen Tags


<table style="width: 100%; height: 100%">

<tr>

<td style="width: 100%; height: 100%; text-align: center; vertical-align: center">

<div>DIESER TEXT SOLLTE IN DER MITTE STEHEN</div>

</td>

</tr>

</table>

ist ungetestet!

<center> ist deprecated, also nicht mehr empfohlen, weil es nicht mehr im Standard ist bzw. rausfliegen wird.

<html>

<body>

<table border=0 height=100% width=100%>

<tr>

<td valign=middle align=center>


<table border=1>

<tr>

<td>

Test

</td>

</tr>

</table>


</td>

</tr>

</table>

</body>

</html>

Probier mal das

klappt.........

wird so aber nicht für alle browser funktionieren. ich weiss z.b. dass es bei safari (mac) damit probleme gibt. auch ältere netscapes machen da probleme.

um sicher zu gehen solltest du dir

das hier

mal durchlesen und mit <div>s arbeiten...

ay? es geht ja um die 100% height. das kann nicht jeder browser so einfach...

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.