tried some styling...

This commit is contained in:
Tim Krehan 2018-10-27 19:47:45 +02:00
parent 93a46fafe4
commit 4d33f4416e
2 changed files with 8 additions and 4 deletions

View file

@ -9,8 +9,8 @@
$user = $result->fetch_assoc(); $user = $result->fetch_assoc();
?> ?>
<div class="userprofile"> <div class="userprofile">
<span><font class="attribute">Benutzername</font><font class="value"><input type="text" name="username" value="<?php echo $user["username"]; ?>"></font></span> <span><font class="attribute">Benutzername</font><input class="change-attribute-input" type="text" name="username" value="<?php echo $user["username"]; ?>"></span>
<span><font class="attribute">Email</font><font class="value"><input type="text" name="username" value="<?php echo $user["email"]; ?>"></font></span> <span><font class="attribute">Email</font><input class="change-attribute-input" type="text" name="username" value="<?php echo $user["email"]; ?>"></span>
<span><font class="attribute">Letzter Login</font><font class="value"><?php echo $user["last_login"]; ?></font></span> <span><font class="attribute">Letzter Login</font><font><?php echo $user["last_login"]; ?></font></span>
</div> </div>
<button class="button" id="safeButton">Speichern</button> <button class="button" id="safeButton">Speichern</button>

View file

@ -1,6 +1,7 @@
.userprofile { .userprofile {
width: 30em; width: 30em;
max-width: 90%; max-width: 90%;
margin: 0 auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border: 1px solid grey; border: 1px solid grey;
@ -13,8 +14,11 @@
align-items: center; align-items: center;
} }
.attribute { .attribute {
width: 10em; width: 6em;
padding: 1em; padding: 1em;
}
.change-attribute-input {
} }
.value { .value {
padding: 1em; padding: 1em;