Forums

[resolved] the_content() not working with css (3 posts)

  1. jonathantopf
    Member
    Posted 3 years ago #

    hi there i have a problem with the get_content() function in my loop. Why isn't the text returned by the_content() being styled when the get_time() function is styled just fine. the syntax is exactly the same...

    <div>
             <p class="NewsPostContent"><?php the_content();?>
    
        </div>
        <div>
             <p class="NewsPostDate"><?php the_time('F j, Y');?>
    
        </div>
    }
    .NewsPostBody {
      margin-top:2px;
      margin-bottom: 5px;
      margin-left: 20px;
      margin-right: 20px;
      font-family: "Arial";
      font-size: 14px;
      color: #888;
    }
    .NewsPostDate {
      margin-left: 20px;
      margin-right: 20px;
      margin-top: 7px;
      font-family: "Arial";
      font-size: 14px;
      color: #666;
    }
  2. tugbucket
    Member
    Posted 3 years ago #

    you P is called "NewsPostContent"

    your CSS calls "NewsPostBody"

  3. jonathantopf
    Member
    Posted 3 years ago #

    Oh god, i've obviously been staring at this for too long. how could i miss that.

    thanks for your help

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.