Forums

custom field - editing CSS - need help (2 posts)

  1. ka81
    Member
    Posted 3 weeks ago #

    Hello.
    so, what i got is:

    in theme css

    .post-meta {list-style-type: none; color: #4F3636;}
    .post-meta-key {list-style-type: none; display: none;}

    in theme's index.php

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="entry-header">
    			<a href="<?php the_permalink() ?>" rel="bookmark" title="Перейти до: <?php the_title(); ?>"><?php the_title(); ?></a>
    		</div>
    			<?php the_meta(); ?>
    		<div class="entry-content">
    			<?php the_time('d M Y'); ?></br>
    			<?php the_tags('Теги: ',', '); ?>
    			<?php the_content(__('Читати далі'));?>
    		</div>

    and we can see the result on page with publication

    <div class="content">
    			<div class="entry-header">
    			<a href="http://x-files.net.ua/?p=1" rel="bookmark" title="Перейти до: Pilot">Pilot</a>
    		</div>
    			<ul class='post-meta'>
    <li><span class='post-meta-key'>Справа:</span> #1x79</li>
    </ul>
    		<div class="entry-content">
    			10 Вер 1993</br>

    the page is - http://x-files.net.ua/?p=1

    so, problem is:
    a) empty line between the_title and the_meta, and between the_meta and the_time
    b) the_meta starts alot to right. all others starts earlier in the left.

    Could you please advise hot to write in CSS to make it normal?

    Thanx a lot.

  2. ka81
    Member
    Posted 2 weeks ago #

    .post-meta {list-style-type: none; color: #4F3636; padding:0px; margin:0px;}
    .post-meta-key {display: none;}
    .post-meta, .post-meta li {display: inline;}
    .epnumb {float:right; border: 1px dotted #344342; text-align:center; width:45px; height:14px; padding:0px; margin:0px; background:transparent;}

    how can i take up a little bit text in box??
    padding doesn;t help me.. :(

Reply

You must log in to post.

About this Topic