Nao consigo alinhar bloco adsense que incluí abaixo da barra de menu do meu blog
-
Tenho um blog e estava tentando colocar um bloco adsense abaixo da barra de menu. Meu blog é o dicaparaemagrecer.net.br. Consegui inserir o bloco porem nao consigo alinhar o bloco no centro.
codigo do cabeçalho
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...ransitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php elegant_titles(); ?></title> <?php elegant_description(); ?> <?php elegant_keywords(); ?> <?php elegant_canonical(); ?> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <!--[if IE 7]> <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/iestyle.css" /> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/ie6style.css" /> <![endif]--> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="wrapper2"> <div id="header"> <a>"> <?php $logo = (get_option('artsee_logo') <> '') ? esc_url(get_option('artsee_logo')) : get_template_directory_uri().'/images/logo.gif'; ?> <img src="<?php echo esc_attr($logo); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" class="logo"/> </a> <div style="clear: both;"></div> <!--Begin Pages Navigation Bar--> <div id="pages"> <?php $menuClass = 'nav superfish'; $primaryNav = ''; if (function_exists('wp_nav_menu')) { $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) ); }; if ($primaryNav == '') { ?> <ul class="<?php echo esc_attr( $menuClass ); ?>"> <?php if (get_option('artsee_home_link') == 'on') { ?> <li class="page_item"><a>"><?php esc_html_e('Home','ArtSee') ?></a> <?php }; ?> <?php if (get_option('artsee_swap_navbar') == 'false') { show_page_menu($menuClass,false,false); } else { show_categories_menu($menuClass,false); }; ?> <!-- end ul.nav --> <?php } else echo($primaryNav); ?> <div id ="banner"> <script type="text/javascript"><!-- google_ad_client = "ca-pub-1958886860767726"; /* dicaparaemagrecer728x90_V1 */ google_ad_slot = "6523998693"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googl...ead/show_ads.js"> </script> </div> </div> <!-- end #pages --> <!--End Pages Navigation Bar--> </div> <!-- end #header --> <div style="clear:both;"></div>
Folha de estilo CSS
#pages { width: 950px; margin-left: auto; margin-right: auto; } .banner{ position: relative; text-align: center; top: 180px;} #header { width: 950px; margin-left: auto; margin-right: auto; margin-top: 0px; } .banner{ position: relative; text-align: center; top: 180px;}
Alguem pode me ajudar ?? Obrigado
Visualizando 9 respostas - 1 até 9 (de um total de 9)
Visualizando 9 respostas - 1 até 9 (de um total de 9)
- O tópico ‘Nao consigo alinhar bloco adsense que incluí abaixo da barra de menu do meu blog’ está fechado para novas respostas.