Hello! Can anyone provide some insight on how to make the categories and the date/comments/views portion show up on the same line?
I want the categories text on the left formatted one way and the date/comment/views information on the right on the same line formatted another way.
This is the relevant index.php code:
<div class="clearfloat">
<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
<h3 class=cat_title><?php the_category(' | '); ?> »</h3>
<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>
And, this is the style.css code:
/* HTML Elements */
* {
margin:0;
padding:0;
}
body {
font: 100% Arial, Helvetica;
background: #000000 url(images/diag_stripe.gif);
color: #333;
}
p {
margin: 15px 0;
}
a:link, a:visited {
color: #FF0000;
text-decoration:none
}
a:hover, a:active {
color: #FF0000;
text-decoration:underline;
}
a img {
border:0;
}
code {
font: 1.0em 'Courier New', Courier, Fixed;
background:#ececec;
}
acronym, abbr, span.caps {
font-size: 0.9em;
letter-spacing: .07em;
cursor: help;
}
acronym, abbr {
border-bottom: 1px dashed #999;
}
blockquote {
padding: 10px 10px 0 10px;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
background: #eee;
font:1.0em Arial;
line-height:1.5em;
margin:10px 0px;
}
select {
width: 130px;
}
table{
margin: .5em 0 1em;
border: 1px solid #ebebeb;
}
table td, table th{
text-align: left;
padding: .2em .4em;
border: 1px solid #ebebeb;
}
table th{
background: #ebebeb;
border: 1px solid #ebebeb;
}
table tr.odd{
background: #ebebeb;
}
p{
line-height: 140%;
margin: .4em 0 1em;
}
/* Structure */
#head {
width:960px;
margin:0px auto;
margin-top:15px;
padding:0px;
font-size:0.7em;
}
#page {
width:940px;
margin:0px auto;
padding:10px;
background: #2C2C2C url(images/grey_diag.png);
font-size:0.7em;
}
.left, .alignleft {
float:left;
}
.right, .alignright {
float:right;
}
/* Text*/
h1 {
font:3.5em Arial;
font-weight:bold;
letter-spacing:-0.08em;
}
h2 {
font:2.3em Georgia, "Times New Roman";
}
h3 {
font:1.3em Arial;
margin-bottom:3px;
color:#FF0000;
font-weight:bold;
}
h4 {
font:1.0em Arial;
}
H3.CAT_TITLE, h3.cat_title a {
color:#333;
letter-spacing:-0.05em;
font-size:0.85em;
}</strong>h3#respond {
margin-top:0px;
padding-top:20px;
}
h3#comments {
margin-top:32px;
padding-left:0px;
}
h3.authors {
margin-top:15px;
}
/* Index Page*/
#logo {
width:350px;
}
#tagline {
margin-top:5px;
font-size:1em;
color:#333;
}
#top {
padding:0;
}
#headline {
width:590px;
height:306px;
float:left;
background:#FFFFFF;
background-image: url('images/pbox_content_bg.gif');
background-repeat: repeat-x;
background-position: top;
padding:10px;
font-size:1.05em;
line-height:1.5em;
margin:0;
}
#headline div.title {
font:1.3em Arial;
margin-bottom:3px;
font-weight:bold;
color:#333;
letter-spacing:-0.05em;
padding-bottom:2px;
}
#headline div.meta {
display:block;
margin-top:-5px;
padding-bottom:2px;
}
#headline p {
padding-bottom:15px;
}
#featured {
width:300px;
height:306px;
background:#FFFFFF;
background-image: url('images/pbox_content_bg.gif');
background-repeat: repeat-x;
background-position: top;
float:right;
padding:10px 10px 9px 10px;
}
#featured div.title {
background: url(images/twitter.png) top right no-repeat;
font:1.3em Arial;
margin-bottom:3px;
font-weight:bold;
color:#333;
letter-spacing:-0.05em;
padding-bottom:8px;
}
#featured .clearfloat {
margin-top:7px;
margin-bottom:8px;
}
#featured .info {
margin-top:5px;
padding-top:5px;
float:right;
width:180px;
}
#featured .title {
font-weight:bold;
}
#headline a img, #featured a img {
border:1px solid #ccc;
margin-top:5px;
margin-right:10px;
padding:2px;
}
#middle {
width: 920px;
background:#fff;
float:right;
padding:10px;
margin:10px 0;
}
.category {
width:164px;
float:left;
margin:0px;
padding:5px 10px 10px 10px;
background:#333;
}
.category p {
margin:0;
}
.category span.cat_title, #front-popular h3, #front-list .cat_title, #archive .cat_title {
text-transform:lowercase;
margin:0;
font-weight:bold;
font-size:1.5em;
letter-spacing:-0.05em;
}
#front-popular h3 {
color:#fff;
}
.category a {
color:#fff;
display:block;
background: none;
}
.category a:hover {
background:none;
color:#fff;
text-decoration:none;
}
#cat-1:hover, #cat-3:hover, #cat-5:hover {background:#FF0000; color:#fff; }
#cat-2:hover, #cat-4:hover {background:#FF0000; color:#fff; }
#cat-1:hover a, #cat-3:hover a, #cat-5:hover a {background:#FF0000; color:#fff; }
#cat-2:hover a, #cat-4:hover a {background:#FF0000; color:#fff; }
#bottom {
width: 940px;
}
#front-list {
width:590px;
background:#fff;
padding:10px;
font-size:1.05em;
line-height:1.75em;
float:left;
}
#archive {
padding-top:15px;
font-size:1.05em;
line-height:1.75em;
}
#front-list blockquote {
padding: 0px 10px 0 10px;
}
#front-list .title, #archive .title {
font-weight:bold;
font:2.0em Georgia;
letter-spacing:-0.05em;
}
#front-list .clearfloat, #archive .clearfloat {
background-image: url('images/pbox_content_bgb.gif');
background-repeat: repeat-x;
background-position: bottom;
padding-bottom:10px;
border-bottom:1px dotted #ccc;
margin-bottom:10px;
}
#front-list .spoiler, #archive .spoiler {
display:block;
margin-top:3px;
}
#front-list p, #archive p {
margin:0px;
padding:0px;
}
.author {
font-size:0.8em;
font-weight:bold;
}
.META {
font-size:0.8em;
color:#333;
}
.meta a {
color:#333;</strong>
}#headline p, #featured p {
margin:0;
}
I know it has to do with getting the span tagging correct, but I just can't seem to get it. I bolded the code segments I have tried to work on. I am new to .css and php obviously. I have posted before on the forum and never received any help. I have searched this topic and still cannot find a solution.
Please help.