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.

Problem mit der Positionierung position:absolute

Empfohlene Antworten

Veröffentlicht

Hallo miteinander,

ich habe folgendes Problem.

Ich habe ein Formular, welches ich mit css positionieren will

Wenn ich allerdings in css eingebe:

position:absolute;

dann verschwindet das Formular aus der php-Seite

Streiche ich diese Zeile wieder ist es wieder da, aber nicht in der richtigen Position. Gibt es da noch irgendwas zu beachten oder was mache ich falsch?

Code aus der Styles.css:


.formbewerb

{	

  	font-size: 11px;

	position: absolute;

	top: 10px;

	left: 40px;

}

Code aus der php:


<div class="formbewerb">
<form action="form2.php" method="post">
<b>Ausgeschriebene Stelle:</b><br>
<input type="text" size="20" name="Stelle">
</div>
[/PHP]

Vielen Dank schon mal im Voraus.

Gruss Sebi

Hi!

Also bei mir funktioniert's:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">

  <head>

    <title>9106</title>

    <style type="text/css">

    .formbewerb {	

    	position: absolute;

    	top: 10px;

    	left: 40px;

    }

    </style>

  </head>

  <body>

    <div class="formbewerb">Hallo Welt</div> 

  </body>

</html>

Grüße, Tobias

Jupp, es lag wohl etwas darüber.

Schon behindert mit so einer Datei umzugehen die man nicht selber geschrieben hat und die auch noch dermassen schlecht auskommentiert ist und null Übersicht gewährleistet :(

Vielen Dank trotzdem

Wie änder ich nun die Position mehrerer Textfelder in einem Formular?

Also ich meine ich muss mehrere Texte und Textfelder zwischen dem <div></div> positionieren.

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.