WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Eleven
Aligning Header Image (2 posts)

  1. shaadiyan
    Member
    Posted 1 year ago #

    Hi,

    I have managed to add an image to the header but I need to align it to the center of the page. How do I do this?

    This is the code in the header file:

    <hgroup>
    				<h1 id="site-title"><span><a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="http://shaadiyan.com/wp-content/uploads/2012/12/Header1.jpg" alt="your site name" width="1000" height="260"></a></span></h1>
    				<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
    			</hgroup>

    [please mark any posted code - http://codex.wordpress.org/Forum_Welcome#Posting_Code - the above code got unfortunately corrupted by the forum parser]

    Thank you.

    Regards,
    Yogeeta

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Here's an all-you-need guide on how to centre things in CSS
    http://www.w3.org/Style/Examples/007/center.en.html

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.