WordPress.org

Ready to get started?Download WordPress

Forums

post.php can't be located when using inline css (3 posts)

  1. violated
    Member
    Posted 9 years ago #

    any one know what could be causing this?

    when i try to create a page using inline CSS (yes i checked my code, it's fine) i get a bad request telling me post.php is missing....but it's there. i can create a new page without problems when i'm not using any inline css though.

  2. Lorelle
    Member
    Posted 9 years ago #

    What do you mean by inline CSS. You can't "create" a page using CSS. CSS doesn't create, it styles. Inline CSS looks like this:

    <p style="color:green; font-size:110%">This is a paragraph that is green and larger than the rest.</p>

    Are you talking about adding such CSS to your post or Page and it isn't found? Odd. HTML/XHTML tags and CSS works fine in WordPress posts. If you are including a lot of inline CSS and HTML in your posts, I recommend that you get TextControl Plugin to really control the way WordPress converts your post when generated on a post by post basis.

    Are you talking about using a template file called post.php that has a different header or a header with the head that brings in a different style sheet from the rest of your posts? That's a style link.

    And are you talking about a Page or a static php file, or a single post template (what you see when you click on an individual post view)?

    We just need a little clarity on this.

  3. violated
    Member
    Posted 9 years ago #

    sorry if i wasn't clear enough.

    what is happening is i am trying to write a page using wp-admin. in the code for the page i am attempting to use inline css to float an image to the left of the text. when i try to do this as soon as i click create new page i get an http 400 error page saying post.php can't be found. (not a template file) however when i remove the inline css it creats the page without any problems.

    i've also just discover the same thing happens when i try to use inline css in a post.

    i hope that clarifies it a little more.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags