WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] what CSS code do i use to customize the font style of the date? (3 posts)

  1. thetiff
    Member
    Posted 6 years ago #

    thank you.

  2. whooami
    Member
    Posted 6 years ago #

    look at your source:

    <h2><a href="http://tiffarts.com/?p=1" rel="bookmark" title="Permanent Link to Hello world!">Hello world!</a></h2>
    				<small>August 9th, 2007 <!-- by tiff --></small>

    your date is enclosed in <small> tags -- so youre stuck..

    You either style that tag

    OR

    you add something else to the theme files..
    so that it looks like this:

    <small class="date">.....</small>

    and then you can style the date class..

    As to "what code", there are all sorts of CSS tutorials that explain how to style fonts.

    http://www.google.com/search?hl=en&q=css+style+fonts&btnG=Google+Search

  3. Root
    Member
    Posted 6 years ago #

    You could use a descendant selector (I think) h2 small {} might work. It would avoid a class. But the best thing is to change the h2 to something smaller h4 etc. Thats what they are for. Small should not have been there in the first place. The mark up is not semantic. I would take it out too.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags