Centering header image
-
Can someone please advise me on how to enter the header background image on this site https://64.37.52.162/~ramsjoin/
I cannot figure out how to centre the background image. Everything else is responsive and is centred. There is also a logo which I currently have set as a blank png image as I dont want to use the logo as it is part of the background image I have uploaded.
Would really appreciate some help as I am a complete novice at css.
Thanks you ??The header.php is as follows:
<!DOCTYPE html <?php language_attributes(); ?>> <html> <head> <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <?php wp_head(); ?> <!--[if lt IE 9]> <script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script type="text/javascript" src="js/respond.src.js"></script> <script type="text/javascript" src="js/PIE.js"></script> <![endif]--> </head> <body> <div class="home page_home center m_bottom_15" style="background:<?php echo vp_option('header_color'); ?> url(<?php if( vp_metabox('page_option.page_header_image') != '' ){ echo vp_metabox('page_option.page_header_image'); }else{ echo vp_option('default_header'); } ?>)no-repeat;"> <div class="container"> <div class="logo"> <?php if( vp_option('logo') != ''){ ?> <a href="index.html"><img src="<?php echo vp_option('logo'); ?>" alt="logo" /></a> <?php } ?> </div> <!-- Start Navigation Menu --> <?php get_template_part('nav'); ?> <!-- Start Navigation Menu --> <?php if( vp_metabox('page_option.page_title') != ''){ ?> <div class="one m_bottom_0"> <h1 class="header"><?php echo vp_metabox('page_option.page_title'); ?></h1> </div> <?php } ?> <div class="one"> <?php if( vp_metabox('page_option.page_desc') != ''){ ?> <h2 class="summary"><?php echo vp_metabox('page_option.page_desc'); ?></h2> <?php } ?> </div><!--end one--> <div class="clear"></div> <?php if( vp_metabox('page_option.page_button') != '' ){ ?> <a>"> <?php echo vp_metabox('page_option.page_button'); ?> </a> <?php } ?> <?php if( vp_metabox('page_option.page_title') == '' || vp_metabox('page_option.page_desc') == '' ){ ?> <div class="spacing-50"></div> <div class="clear"></div> <?php } ?> </div><!--end container--> </div><!--end home--> <div class="clear"></div> <div class="spacing-50"></div>
[Moderator Note: Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code may now have been permanently damaged by the forum’s parser.]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Centering header image’ is closed to new replies.