Changing page title font size

Discussion in 'CSS' started by sam132, Feb 24, 2011.

  1. #1
    Hi everyone,

    I'm now trying to change the size of my page title font (I am editing the page template.css) in wordpress.

    It is currently:

    
    <?php get_header(); ?>
    
    <div id="contentwide">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <?php /* list_subpages_andreas01(); */ ?>
    
    <div class="post">
    <h1><?php the_title(); ?></h1>
    <div class="contenttext"
    <?php the_content('<p class="serif">Read more &raquo;</p>'); ?>
    </div>
    <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    <?php edit_post_link('[e]','<p>','</p>'); ?>
    <?php comments_template(); ?>
    <?php endwhile; endif; ?>
    </div>
    </div>
    
    <?php get_footer(); ?>
    Code (markup):
    Since theres no size in there, where exactly should I add it in, and what should I write in order to determine the height - line-height:1.3em;?

    @WillR Thanks for the response, I checked my theme and this isn't the case, although its good to know for the future.

    Thanks,

    Sam
     
    sam132, Feb 24, 2011 IP
  2. sguduru

    sguduru Greenhorn

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    create css class and add font size like below:

    #contentwide .post h1 {
    font-size:16px;
    }
     
    sguduru, Feb 24, 2011 IP
  3. sam132

    sam132 Member

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    33
    #3
    Great!

    Thanks!

    Sam
     
    sam132, Feb 25, 2011 IP