Hi Leute,
ich beschäftigte mich seit heute mit CSS um mir eine eigene Webseite für mein Fotohobby zu basteln. Meine Frage ist eigentlich ganz einfach (denke ich) und ich denke ein Basisthema.
Hier ein Auszug aus meinem Code, was ich bisher bis jetzt erstellt habe.
Code
<body>
<table align="center">
<tr>
<td>
<div id="logo">
<img src="images/logo_2.png" width="150px" align="left" />
</div>
<div id="navigation" align="right" >
<ul id="navigation">
<li><a href="index.html">Home</a></li>
<li><a href="ueber.html">Über mich</a></li>
<li><a href="portfolio.html">Portfolio</a></li>
<li><a href="kontakt.html">Kontakt</a></li>
</ul>
</div>
<div id="content_img">
<img src="portfolio/img1.jpg" oncontextmenu="return false;"/>
</div>
<div id="copyright" style="float: left;">Copyright 2014 © rawshoot</div>
<div id="footer" align="right" style="float: right;">
<a href="impressum.html">Impressum</a>
</div>
</td>
</tr>
</table>
</body>
Alles anzeigen
CSS
#logo {
width: 500px;
margin-top: 10px;
}
#navigation {
height: 40px;
width: 100%;
margin-top: 40px;
font-family: Arial;
font-size: 20px;
color: #FFF;
}
ul#navigation {
margin: 0px;
padding: 0px;
list-style-type: none;
vertical-align: bottom;
}
ul#navigation li {
padding: 10px;
/*'margin: 0px; display: inline;*/
/* floaten der Hauptlistenpunkte */
margin: 0;
float: left;
display: block;
padding-right: 15px;
}
#content_img {
margin-top: 30px;
height: 800px;
width: 1200px;
}
Alles anzeigen
Nun würde ich gerne links neben dem zentrierten content_img ein div mit einer fixen breite anzeigen. Kann mir dabei jemand helfen?
Viele Grüße
Flo