Why does only the last div show the css changes?

  • Author
  • #497183


    On index.php I’ve adjusted it to look like this:

    <?php while (have_posts()) : the_post(); ?>
    <div class=”blog_post_wrap”>
    <div class=”blog_post_left”>
    <div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
    <h3>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></h3>
    <span class=”blog_date”>Updated <?php the_time(‘jS F Y’) ?> <!– by <?php the_author() ?> –></span>
    <div class=”blog_button_text”>
    ” title=”Read all of ’<?php the_title(); ?>’”>Read entire post
    <div class=”blog_button_text”>
    <?php the_tags(‘Tags: ‘, ‘, ‘, ‘
    ‘); ?> <?php comments_popup_link(‘Comments (0)’, ‘Comments (1)’, ‘Comments (%)’); ?>
    <div class=”blog_post_right”>
    <div class=”entry”>
    <?php the_content(‘Read the rest of this entry »’); ?>
    <?php endwhile; ?>

    I’ve made a part of the CSS as follows:

    .blog_button_text a, .blog_button_text a:visited, .blog_button_text a:hover {
    text-decoration: none;

    Why does only the final blog_button_text class div on the page show no text-decoration? All the others above it have the underline. Is this something to do with the loop? How do I overcome this?




    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

The topic ‘Why does only the last div show the css changes?’ is closed to new replies.