Hallo,
ich habe ein Projekt im Studium und es läuft alles soweit. Außer das Design lässt zu wünschen übrig
Ich bekomme es nicht hin das die gesamten Inhalte Mittig dargestellt werden und je nach browsergröße auch mittig bleiben.
hierzu die Css und php Dateien.
CSS Style Datei:
Navigation
Footer
zurzeit sieht es so aus
ich habe ein Projekt im Studium und es läuft alles soweit. Außer das Design lässt zu wünschen übrig

Ich bekomme es nicht hin das die gesamten Inhalte Mittig dargestellt werden und je nach browsergröße auch mittig bleiben.
hierzu die Css und php Dateien.
CSS Style Datei:
Code:
.grossebox {
width: 100%;
height: 400px;
background-color: #81BEF7;
border-radius: 50px;
margin-left: auto;
margin-right: auto;
margin-top: -21px;
margin-bottom: -21px;
text-align: center;
}
table {
margin-left: auto;
margin-right: auto;
}
/* css für navigation */
#navigation {
width: 100%;
height: 100px;
background-color: white;
border-radius: 50px;
text-align: center;
}
body {
margin: 0;
padding: 0;
}
#logo {
width: 100px;
height: 100px;
float: left;
margin-left: 50px;
}
/* */
li {
float: left;
margin-left: 10px;
list-style: none;
text-align: center;
}
ul {
padding-top: 45px;
text-align: center;
}
.hinzufuegen{
background:#81BEF7 ;
width:100% ;
border-radius: 50px ;
text-align: center;
margin-top: -21px;
margin-bottom: -21px;
}
#footer {
width: 100%;
height: 100px;
background-color: white;
border-radius: 50px ;
margin-left: auto;
margin-right: auto;
}
Navigation
Code:
<div id="navigation">
<div id="table">
<img id = "logo" src = "../images/logo.png"/>
<ul >
<li> <a href = "../index.php">Home</a></li>
<?php if (isset ($_SESSION ["login"]) && $_SESSION ["login"] == 1){?>
<li> <a href = "../seiten/liste.php">Einkaufsliste</a></li>
<?php } ?>
<?php if (isset ($_SESSION ["login"]) && $_SESSION ["login"] == 1){?>
<li> <a href = "../seiten/logout.php">Abmelden</a></li>
<?php }?>
</ul>
</div>
</div>
Footer
Code:
<div id="footer">
<ul>
<li> <a href = "../seiten/ueber.php">Über uns</a></li>
<li> <a href = "../seiten/impressum.php">Impressum</a></li>
</ul>
</div>
zurzeit sieht es so aus
