I am in the process of creating a Tumblr theme to work on my CSS and HTML abilities and I have run into a problem.
http://cl.ly/3c0q3X3a0A193z1u2u2V - photo post
http://cl.ly/3V3R1W2h17100g371W2y - text post
As you can see from the picture above, the text seems to scoot itself down without any other code versus the photo which is always in the correct location.
I am still in my infancy whenever it comes to this kind of thing so I'm not really sure what to do.
Here's my CSS and HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<ul class="header">
<li><a href="/"><h1>{Title}</h1></a>
<li><a href="/about">About</a>
<li><a href="/message">Message</a>
<li><a href="/archive">Archive</a>
</ul>
<ul class="content">
{block:Posts}
{block:Text}
<li class="text_post">
{block:Title}
<h3><a href="{Permalink}">{Title}</a></h3>
{/block:Title}
{Body}
</li>
{/block:Text}
{block:Photo}
<li class="photo_post">
<img src="{PhotoURL-500}">
</li>
{/block:Photo}
{/block:Posts}
</ul>
<style type="text/css">
body {
font-family:Georgia, times, serif;
font-size:0.7em;}
h1 {
display:inline;
font-family:'Lucida Grande', Arial, sans-serif;
font-size:100%;
color:#00C462; }
ul, ol {
list-style-type:none;
margin:0;
padding:0;}
.header {
position:fixed;
margin-top:1em;}
.header li {
float:left;
padding-left:1em;}
.header li a, a:visited {
color:#000000;
font-family:'Lucida Grande', Arial, sans-serif;
text-decoration:none;}
.header li a:hover {
color:#CCCCCC;}
.content {
float:left;
overflow:auto;
margin-top:1.3em;
width:500px;
margin-left:23em;}
</style>
Also, if you have any suggestions on how I can improve my code, please share.
Thank you for your help,