Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7679895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:59:06+00:00 2026-05-31T17:59:06+00:00

I built a site in HTML/CSS, and everything was to my liking. However, in

  • 0

I built a site in HTML/CSS, and everything was to my liking. However, in the conversion from HTML to WordPress(WP), the CSS styling seems to have been lost. I’m new to this, so it’s difficult for me to pinpoint what’s going on..

The #main article <p> section doesn’t seem to be following the #main article p {float: right; margin-top: -85px; margin-left: 230px; padding-left: ; width: 403px;} parameters. Any ideas on what has happened?

<div id="main">
        <article>


            <?php if(have_posts()) : while(have_posts()) : the_post(); ?>

            <div id="headline">
                <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></h1>
            </div><!-- end headline -->

            <div class="postinfo">
                <ul>
                    <li>Posted by <?php the_author(); ?></li>
                    <li><?php the_date(); ?></li>
                    <li>tags: <a href="#">cool</a>, <a href="#">awesome</a></li>
                </ul>
            </div><!-- end postinfo -->

            <p><?php the_content(); ?></p>

        </article><!-- end article -->

            <?php endwhile; ?>

            <?php else :?>
                <p>I'm not quite sure what you're looking for.</p>
            <?php endif; ?>


    </div><!-- end main -->

#main {
    float: left;
    margin-left: 315px;
    margin-top: 310px;
}
#main article .postinfo {
    list-style-type: none;
    margin-left: ;
    width: 150px;
}

#main article p {
    float: right;
    margin-top: -85px;
    margin-left: 230px;
    padding-left: ;
    width: 403px;
}

EDIT: here it is live here it is live

ideal

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:59:07+00:00Added an answer on May 31, 2026 at 5:59 pm

    You don’t need the <p></p> tags around <?php the_content(); ?> since that will be generated within the content, and you are basically wrapping that in a paragraph.

    It is a also good idea to have the static html files open and your WordPress project side by side, so you can inspect elements on both and make sure your selectors match. This usually helps me figure out when I’m missing the selector for some reason.

    screen shot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client who has built her entire site using html extensions. As
I have built a site in wordpress and the home page is really screwed
I have already built a site from scratch. It has banning, PM, comments, etc.
i have been tasked with changing a bit of css for a site that
I'm getting more into jQuery and so have set up a HTML/Javascript/CSS base site
I have a site built in Ruby On Rails which has many ads in
I've built a site in MVC3 using EF 4.0 using the Repository pattern. Everything
I built a website in HTML and CSS, and whenever I resize the browser
I have built the site: www.bgarchitect.co.nz which was as much a learning experience in
I have never used a CMS before nor have I built a E-commerce site

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.