kitchenwench
10-21-2007, 10:00 AM
I'm currently modifying a Wordpress theme that I want to use on my blog, and after 2 days of trying to figure this out, I've finally got everything sitting where I want it to...EXCEPT for this :(
http://www.insanitytheory.net/images/floatdiv.gif
In the index.php file I have:
<div class="post_date">
<div class="date_post"><?php the_time('j') ?> <?php the_time('M') ?></div>
<div class="year_post"><?php the_time(' Y') ?></div>
</div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="top"><a href="http://del.icio.us/post?url=<?php echo get_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/images/delicious.gif" title="del.icio.us this!" alt="del.icio.us" /></a>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/trackback.gif" title="Trackback" alt="TRACK" /></a>
<a href="#top"><img src="<?php bloginfo('template_directory'); ?>/images/top.gif" border="0" alt="TOP" title="To the top" /></a></div>
<small>By <?php the_author() ?>. Filed in <?php the_category(', ') ?>.<br /> <?php comments_popup_link('No comments yet. Be the first to comment!', '1 comment filed', '% comments filed'); ?> <?php edit_post_link('Edit.', '', ''); ?></small>
And in style.css:
.post_date {
background: url('images/datebg.jpg');
background-repeat: no-repeat;
clear:left;
float:left;
margin-right:5px;
position:relative;
width:42px;
height:40px;
}
html>body .post_date {
width: auto;
width: 42px;
height: auto;
height: 40px;
}
.date_post {
border-bottom:1px dotted;
clear:left;
color:#2C4353;
float:left;
font-size:12px;
font-weight:400;
padding-top:2px;
text-align:center;
width:42px;
}
.year_post {
float: left;
clear: left;
width: 42px;
font-size: 14px;
color: #2C4353;
text-align: center;
padding-bottom:2px;
}
.top {
float: right;
padding-left: 10px;
}
Whilst I'm fairly chuffed that I've managed to get this far by myself (the extent of my mark-up code knowledge comes from a 6-week course on 'introduction to the web' and toying with my blog), I'm losing my mind because of that silly calendar won't align in IE :(
You can see how its working so far here - www.insanitytheory.net/test
Any and all help would make me indebted to you for life!
(Oh, and I know that all the images don't work on the test site, but I wanted to get the code right before toying with the aesthetics!)
http://www.insanitytheory.net/images/floatdiv.gif
In the index.php file I have:
<div class="post_date">
<div class="date_post"><?php the_time('j') ?> <?php the_time('M') ?></div>
<div class="year_post"><?php the_time(' Y') ?></div>
</div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="top"><a href="http://del.icio.us/post?url=<?php echo get_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/images/delicious.gif" title="del.icio.us this!" alt="del.icio.us" /></a>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/trackback.gif" title="Trackback" alt="TRACK" /></a>
<a href="#top"><img src="<?php bloginfo('template_directory'); ?>/images/top.gif" border="0" alt="TOP" title="To the top" /></a></div>
<small>By <?php the_author() ?>. Filed in <?php the_category(', ') ?>.<br /> <?php comments_popup_link('No comments yet. Be the first to comment!', '1 comment filed', '% comments filed'); ?> <?php edit_post_link('Edit.', '', ''); ?></small>
And in style.css:
.post_date {
background: url('images/datebg.jpg');
background-repeat: no-repeat;
clear:left;
float:left;
margin-right:5px;
position:relative;
width:42px;
height:40px;
}
html>body .post_date {
width: auto;
width: 42px;
height: auto;
height: 40px;
}
.date_post {
border-bottom:1px dotted;
clear:left;
color:#2C4353;
float:left;
font-size:12px;
font-weight:400;
padding-top:2px;
text-align:center;
width:42px;
}
.year_post {
float: left;
clear: left;
width: 42px;
font-size: 14px;
color: #2C4353;
text-align: center;
padding-bottom:2px;
}
.top {
float: right;
padding-left: 10px;
}
Whilst I'm fairly chuffed that I've managed to get this far by myself (the extent of my mark-up code knowledge comes from a 6-week course on 'introduction to the web' and toying with my blog), I'm losing my mind because of that silly calendar won't align in IE :(
You can see how its working so far here - www.insanitytheory.net/test
Any and all help would make me indebted to you for life!
(Oh, and I know that all the images don't work on the test site, but I wanted to get the code right before toying with the aesthetics!)