Support » Themes and Templates » what CSS code do i use to customize the font style of the date?

Viewing 2 replies - 1 through 2 (of 2 total)
  • whooami

    (@whooami)

    Member

    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

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘what CSS code do i use to customize the font style of the date?’ is closed to new replies.