WordPress.org

Ready to get started?Download WordPress

Forums

Default WordPress CSS Styling (5 posts)

  1. xmatter
    Member
    Posted 2 years ago #

    I want to use as make default CSS styling as possible to keep everything clean. I have found most of the default settings, but I cannot find anything for the post CSS itself.

    here is my index:

    [code moderated - please use the pastebin - see forum guidelines]

    here is my CSS so far:

    .post {margin:0 0 10px 0; padding:0; border:1px solid #ccc}
    .post h2 {background:blue;}
    .post-meta {background:green;}

    how can I style the actually text entry using default CSS? I do not want to throw another selector into my index.

    Thanks!!!!!!!!!

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    default CSS styling

    there is no default css by WordPress - any theme can either leave it down to browser default styles, or make its own CSS in style.css

  3. xmatter
    Member
    Posted 2 years ago #

    what about default selectors?

  4. xmatter
    Member
    Posted 2 years ago #

    .post p seemed to do the trick

  5. alchymyth
    Forum Moderator
    Posted 2 years ago #

    your code uses post_class() which outputs various selectors depending on circumstances: http://codex.wordpress.org/Function_Reference/post_class

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.