Div styling not hitting the_content PHP
-
Hello! I am fairly new to thing and am having trouble finding anything on this particular problem.
I can not for the life of me get the_content to style with my CSS. I wrote. In fact nothing does. What am I doing wrong?
HTML
<?php if( have_posts() ): while( have_posts() ): the_post(); ?> <div class="postWrapper"> <a href="#"><img class="avatar" src="avatar.jpg" title="avatar" alt="avatar"/></a> <h4 class="titleDate"><a href="#">USERNAME </a> /<span><?php the_time('F j, Y'); ?></span></h4> <div class="titleWrapper"><a href="#"><h4 class="titlePost"> <?php the_title(); ?></h4></a> </div> <article class=blogPost> <h3 class="hidden">Blog Post</h3> <div class="blogwordContent"> <?php the_content(); ?></div> <a href="#"><h5 class="readMore">READ MORE</h5></a> </article> </div> <?php endwhile; endif; ?>
CSS
section#blog article .blogPost .blogwordContent { padding-right: 5%; padding-left: 5%; padding-top: 10px; padding-bottom: 10px; font-family: Helvetica, Arial, sans-serif; font-size: 1em; font-weight: normal; color:#e6ddcc; }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Div styling not hitting the_content PHP’ is closed to new replies.