followtheboat
Programmer
I'm sure this may have been discussed before but I couldn't find a solution on the searches. In IE my numbers for my ordered list are appearing at the bottom-right of the li instead of the top left. See here:
My CSS is thus:
And the html is thus:
Anyone any clues? I tried the clear:right solution found on another website but it didn't make any difference.
Thanks in advance.
My CSS is thus:
Code:
.comments {float:left; width:600px; padding-top:10px}
.comment-header{align:left;}
.comment-avatar {float:left;width:80px;}
.comment-author {font-family: "Times New Roman", Times, serif; font-size: 16px; text-decoration: underline; font-weight: bold;}
.comment-date {font-family: "Times New Roman", Times, serif; font-size: 12px; font-style: italic;}
.comment-top {background-image: url(images/commenttop.jpg); background-repeat: no-repeat; background-position: left top; width:500px; height:32px;}
.comment-bottom {background-image: url(images/commentbottom.gif); background-repeat: no-repeat; background-position: left bottom; width:500px; height:17px;}
.comment-container {width:500px;}
.comment-text {font-size:12px; background-color: #dfdfdf; padding:15px; width:472px;}
comment li {left: 0px; top: 0px;clear: right;}
comment ol {width:600px;left: 0px;top: 0px;}
#comment-formcontainer {BACKGROUND-COLOR: cccccc; width:600px; text-align:left;}
.comment-formborder {width:580px; padding: 3px;}
#author, #email, #url, #answer, #comment { background-color: #c19c3c;}
.odd .speech1container {width:570px; float:left;}
.odd .speech1 {float:left;width:63px;height:43px;background-image: url(images/speech1_r1_c1.gif);background-repeat: no-repeat;background-position: left top;}
.odd .speech1topwrap {width:507px;height:43px;float:left;}
.odd .clear {clear: both;}
.odd .speech2a {width:507px;float:left; height:37px;}
.odd .speech2b {width:507px;float:left; height:6px;background-image: url(images/speech1_r2_c2.gif);background-repeat: no-repeat;background-position: left top;}
.odd .speech3 {float:left;width:570px;background-image: url(images/speech1_r3_c1.gif);background-repeat: repeat-y;}
.odd .speech3pad {width:550px;padding-top: 5px;padding-left: 10px;padding-right: 10px;}
.odd .speech4 {float:left;width:570px;height:8px;margin-bottom:30px;background-image: url(images/speech1_r5_c1.gif);background-repeat: no-repeat;background-position: left top;}
And the html is thus:
Code:
<div class="comments">
<ol id="comments">
<?php foreach ($comments as $comment) : ?>
<?php if (get_comment_type()=="comment") : ?>
<li id="comment-<?php comment_ID(); ?>" class="<?php
/* Highlighting class for author or regular striping class for others */
/* Get current author name/e-mail */
$this_name = $comment->comment_author;
$this_email = $comment->comment_author_email;
/* Compare to $author array values */
if (strcasecmp($this_name, $author["name"])==0 && strcasecmp($this_email, $author["email"])==0)
_e($author["highlight"]);
else
_e($thiscomment);
?>">
<?php comment_author() ?>, <?php print $comment->extra_location; ?>
<br><div class="comment-date"><?php comment_date() ?></div>
<div class="speech1container">
<div class="speech1"></div>
<div class="speech1topwrap">
<div class="speech2a"></div>
<div class="speech2b"><img src="<?php bloginfo('template_directory'); ?>/images/speech1_r2_c2_spacer.gif" width="507" height="6" /></div>
<br class="clear" />
</div>
<div class="speech3">
<div class="speech3pad"><?php comment_text(); ?> </div>
</div>
<div class="speech4"><img src="<?php bloginfo('template_directory'); ?>/images/speech1_r5_c1_spacer.gif" width="570" height="8" /></div>
</div>
<?php if('odd'==$thiscomment) { $thiscomment = 'even'; } else { $thiscomment = 'odd'; } ?>
</li> <br /><br /> <br /><br />
<?php endif; endforeach; ?>
</ol>
</div>
Anyone any clues? I tried the clear:right solution found on another website but it didn't make any difference.
Thanks in advance.