Problem with business blue theme

Discussion in 'CSS' started by bloguitar, Apr 11, 2008.

  1. #1
    ¡Hi!

    I've got a problem with my blog's theme (business blue). I want to place an adsense block on top of the sidebars. I've tried 2000 times, searched the whole internet, and I haven't found an answer.

    If I place something before the sidebar's code, it gets inside the left sidebar, but the right one doesn't even move...

    This is where i want to place the ads (or other content):

    [​IMG]

    This is the style.css file:

    /*  
    
    Theme Name: Business Blue 2.0
    
    Author: Ganar dinero
    
    Author URI: http://www.espanews.com
    
    */
    
      *{
    
    	margin: 0px;
    
    	padding: 0px;}
    
    
    
    .divrss {float:right; margin:0 0 0 0px;}
    
    p {
    
    margin:10px 0px 0px;
    
    }
    
    body {
    
    	font-size: 11px;
    
    	margin: auto;
    
    	text-align: center;
    
    	line-height: 1.5em;
    
    	color: #1E1E1E;
    
    	font-family:  Verdana,Helvetica,Arial,Geneva,Helvetica,sans-serif;
    
    	background:#e5e5e5 url(img/fondito.gif) repeat-x;}
    
    p img {
    
    margin:0.7em 0.7em 0.7em 0pt;
    
    padding:0pt;
    
    }
    
    #header {
    
    	margin: 0px auto 0 auto;
    
    	height: 145px;
    
    	width: 990px;
    
    	background:#fff url(img/top.jpg); 
    
    	background-repeat: no-repeat;}
    
    #title {
    
    	float: left;
    
    	height: 1%;
    
    	padding-top:20px;
    
    	padding-left:0px;
    
    	}
    
    #title h1 {
    
    	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    
    	font-weight: bold;
    
    	color: #fff;
    
    	text-transform: capitalize;
    
    	margin-left: 5px;
    
    	line-height: 60px;        
    
    	} 
    
    #title h1 a {
    
    	text-align: left;
    
    	font-weight: bold;
    
    	color: #fff;
    
    	text-decoration: none;}
    
    #title h1 a:hover {
    
    	color: #DFDFDF;	
    
    	text-decoration: none;} 
    
    #titleinfo {
    
    	float: right;
    
    	font-family: "verdana";
    
    	font-size: 1em;
    
    	color: #e9e9e9;
    
    	text-transform: capitalize;
    
    	text-align: left;
    
    	margin-right: 25px;
    
    	letter-spacing: 1pt;    
    
    	padding-top:50px;}
    
    #banner{
    
    	float: center;
    
    	width: 1003px;
    
    	height:192px;
    
    	display: block;
    
    	margin: 0 auto;
    
    	background:#fff url(img/header.jpg) no-repeat;}
    
    #banner #banner_title{
    
    	color:#fff;
    
    	padding: 40px 0 10px 350px;
    
    	font-size:25px;
    
    	text-align: left;
    
    	font-family:Verdana, Arial, Helvetica, sans-serif;
    
    	line-height:18px;
    
    	width:400px;}
    
    #banner #banner_text{
    
    	padding: 5px 5px 0 350px;
    
    	color:#dfdfdf;
    
    	font-size:15px;
    
    	text-align: left;
    
    	font-family:Verdana, Arial, Helvetica, sans-serif;
    
    	line-height:18px;
    
    	width:450px;}
    
    #container{
    
    	clear:left;
    
    	padding:0 auto 0 auto;
    
    	margin-left:auto;
    
    	margin-right:auto;
    
    	margin-top: 0;
    
    	margin-bottom: 0;
    
    	width: 990px;
    
    	height: auto;
    
    	border-right:5px solid #e1e1e1;
    
    	border-left: 5px solid #e1e1e1;
    
    	background: #fff url(img/container.gif) repeat-y;}                
    
    #leftnav{
    
    	float: right;
    
    	width: 220px;
    
    	margin: 0;
    
    	padding-top: 4px;
    
    	margin-top: 0;
    
    	margin-right: 10px;
    
    	margin-bottom: 20px;
    
    	text-align: left;}
    
    #spon{
    
    	float: right;
    
    	width: 380px;
    
    	margin: 0;
    
    	padding-top: 0px;
    
    	margin-top: 0;
    
    	margin-bottom: 0px;
    
    	margin-right: 1px;
    
    	text-align: right;
    
    	overflow: hidden;
    
    	}
    
    #sponsors{
    
    	margin-bottom: 5px; 
    
    	overflow: hidden;
    
    	}
    
    #sponsors img.ml { margin: 0 10px 4px 0; overflow: hidden } 
    
    #rightnav{
    
    	float: right;
    
    	width: 180px;
    
    	margin: 0;
    
    	padding-top: 4px;
    
    	margin-top: 0;
    
    	margin-bottom: 20px;
    
    	margin-right: 1px;
    
    	text-align: left;}
    
    #content{
    
    	display: block;
    
    	margin: 0 420px 10px 15px;
    
    	line-height: 1.5em;
    
    	padding-top: 10px;
    
    	text-align: left;}
    
    #content ul{
    
    	padding-left: 15px;}
    
    #content ul li{
    
    	margin-left: 15px;
    
    	list-style-type: square;}
    
    #content ul ul li{
    
    	padding-left: 15px;}
    
    #content ol{
    
    	list-style-position: inside;
    
    	padding-left: 15px;
    
    	padding-top: 2px;
    
    	margin-bottom: 10px;}
    
    #content p{
    
    	padding-left: 10px;
    
    	padding-bottom: 5px; 
    
    	}
    
    #footwrap{
    
    	width: 990px;
    
    	height: 24px;
    
    	clear:both;
    
    	font-weight: normal;
    
    	color: #000;
    
    	font-size:10px;
    
    	background: #fff url(img/footer.gif) repeat-y;}
    
    #footwrap p{
    
    	padding: 5px 0 0 0;
    
    	display: block;
    
    	margin: 0px;
    
    	text-align:center;}
    
    #footwrap a:link {
    
    	color: #000;
    
    	text-decoration: none;
    
    	border: none;
    
    	font-weight: bold;}
    
    #footwrap a:hover {
    
    	color: #999;
    
    	border: none;}
    
    #footwrap a:visited:hover {
    
    	color: #000;
    
    	border: none;}
    
    #footwrap a:visited {
    
    	color: #000;
    
    	text-decoration: none;
    
    	border: none;
    
    	font-weight: bold;}
    
    #sidebarleft{
    
    	color: #000;
    
    	margin-bottom: 10px;
    
    	padding: 0 5px  0 0px;}
    
    #sidebarleft ul {
    
    
    
    	}
    
    #sidebarleft li{
    
    	background: none;
    
    	padding-bottom: 8px;}
    
    #sidebarleft ul li{
    
    	padding: 1px 0 4px 2px;
    
    	display: block;
    
    	margin-left: 20px;
    
    	margin-right: 3px;
    
    	border-bottom:1px solid #EBEBEB;
    
    	}
    
    #sidebarleft ul li ul li{
    
    	display: block;
    
    	padding-left: 10px;
    
    	margin-left: 5px;
    
    	margin-right: 3px;
    
    	padding-bottom: 2px;}
    
    #sidebarleft ul li li{
    
    	display: block;
    
    	padding-left: 10px;
    
    	margin-left: 5px;
    
    	margin-right: 3px;
    
    	padding-bottom: 2px;}
    
    #sidebarleft a:link {
    
    	color: #000;
    
    	text-decoration: none;
    
    	border: none;}
    
    #sidebarleft a:hover {
    
    	text-decoration:underline;}
    
    #sidebarleft a:visited:hover {
    
    	text-decoration:underline}
    
    #sidebarleft a:visited {
    
            color: #000;
    
    	text-decoration: none;
    
    	border: none;}
    
    #sidebarleft h2 {
    
    	height: 25px;
    
    	padding: 5px 0 0px 0px;
    
    	font-family: Arial, sans-serif; 
    
    	color: #53BB02;
    
    	margin-top:15px;
    
    	border-bottom:2px solid #EBEBEB;
    
    	}
    
    #sidebarright{
    
    	color: #000;
    
    	margin-bottom: 10px;
    
    	padding: 0 5px  0 10px;}
    
    #sidebarright ul{}
    
    #sidebarright li{
    
    	background: none;
    
    	padding-bottom: 8px;}
    
    #sidebarright ul li{
    
    	padding: 1px 0 4px 2px;
    
    	display: block;
    
    	margin-left: 20px;
    
    	margin-right: 3px;
    
    	border-bottom:1px solid #EBEBEB;
    
    	}
    
    #sidebarright ul li ul li{
    
    	display: block;
    
    	padding-left: 10px;
    
    	margin-left: 5px;
    
    	margin-right: 3px;
    
    	padding-bottom: 2px;}
    
    #sidebarright ul li li{
    
    	display: block;
    
    	padding-left: 10px;
    
    	margin-left: 5px;
    
    	margin-right: 3px;
    
    	padding-bottom: 2px;}
    
    #sidebarright a:link {
    
    	color: #000;
    
    	text-decoration: none;
    
    	border: none;}
    
    #sidebarright a:hover {
    
    	text-decoration:underline;}
    
    #sidebarright a:visited:hover {
    
    	text-decoration:underline}
    
    #sidebarright a:visited {
    
    	color: #000;
    
    	text-decoration: none;
    
    	border: none;}
    
    #sidebarright h2 {
    
    	height: 25px;
    
    	padding: 5px 0 0px 0px;
    
    	font-family: Arial, sans-serif; 
    
    	color: #53BB02;
    
    	margin-top:15px;
    
    	border-bottom:2px solid #EBEBEB;
    
    	}
    
    blockquote{
    
    	margin: 0px 0px 0px 30px;
    
    	padding: 5px 25px 5px 0px;
    
    	color: #202020;}                         
    
    .postmetadata{
    
    	display:block;
    
    	margin: 0px 5px 10px 10px;
    
    	padding: 5px 8px 8px 5px;
    
    	text-align: center;
    
    	color:#585858;}
    
    #content .postmetadata
    
    {
    
    background:#f6f6f6 none repeat scroll 0%;
    
    font-size:11px;
    
    width:95%;
    
    height:15px;
    
    padding:5px 0px 8px;
    
    border-top: 1px dotted;
    
    border-bottom: 1px dotted;
    
    }
    
    #content .postmetadata2
    
    {
    
    background:#f6f6f6 none repeat scroll 0%;
    
    font-size:11px;
    
    width:95%;
    
    height:43px;
    
    padding:5px 0px 8px;
    
    margin-bottom:10px;
    
    border-top: 1px dotted;
    
    border-bottom: 1px dotted;
    
    }
    
    .postmetadata a:link{
    
    	border: none;
    
    	color: #585858;
    
    	font-weight: normal;}
    
    .postmetadata a:hover{
    
    	border: none;
    
    	color: #848484;
    
    	font-weight: normal;
    
    	text-decoration: underline;}
    
    .postmetadata a:visited:hover{
    
    	border: none;
    
    	color: #848484;
    
    	text-decoration: underline;
    
    	font-weight: normal;}
    
    .postmetadata a:visited{
    
    	border: none;
    
    	color: #585858;
    
    	font-weight: normal;}		  
    
    a:link{
    
    	color: #53bb02;
    
    	text-decoration: none;}
    
    a:hover{
    
    	color: #585858;
    
    	text-decoration: underline;}
    
    a:visited{
    
    	color: #53bb02;
    
    	text-decoration: none;
    
    	font-weight: normal;}
    
    a:visited:hover{
    
    	color: #646464;
    
    	text-decoration: underline;}
    
    a img {
    
    	border:none;
    
    	background:none;}
    
    #feed, #feed img a:link, #feed img a:visited{
    
    	border: none;}                     
    
    .commentlist{
    
    	color: #434343;}
    
    .commentlist li{
    
    	margin: 2px 2px 2px 2px;
    
    	padding-left: 5px;
    
    	list-style: none;
    
    	margin-bottom: 5px;}
    
    li.alt{}
    
    .commentlist cite{
    
    	padding: 1px 1px 1px 1px;}
    
    .commentlist p{
    
    	padding: 5px 5px 2px 3px;
    
    	margin-bottom: 5px;}
    
    .commentlist a:link{
    
    	border: none;
    
    	text-decoration: underline;
    
    	font-weight: bold;
    
    	color: #595959;}
    
    .commentlist a:visited{
    
    	border: none;
    
    	text-decoration: underline;
    
    	font-weight: bold;
    
    	color: #595959;}
    
    .commentlist a:hover{
    
    	border: none;
    
    	text-decoration: underline;
    
    	font-weight: bold;
    
    	color: #000;}
    
    .commentlist a:visited:hover{
    
    	border: none;
    
    	font-weight: bold;
    
    	color: #000;}
    
    .commentmetadata a:link, .commentmetadata a:hover, .commentmetadata a:visited{
    
    	text-decoration: none;
    
    	color: #494949;
    
    	background-color: #E3E2E2;}
    
    .commentnumber {
    
    	font: bold normal 14px 'Times New Roman', Times, serif;
    
    	font-weight: bold;
    
    	margin-top: 5px;
    
    	float:right;
    
    	color: #BCBCBC;
    
    	font-size: 12pt;}
    
    #comment{
    
    	color: #000;
    
    	width:90%;
    
    	background-color: #fff;}
    
    h1{
    
    	font-size: 36px;
    
    	color: #000;}
    
    h2{
    
    	font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; 
    
    	display: block;
    
    	font-size: 16px;
    
    	font-weight: bold;
    
    	padding: 5px 0 0 0px;
    
    	margin: 5px 0 6px 10px;
    
    	text-align: left;}
    
    h3{
    
    	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 
    
    	display: block;
    
    	font-size: 14px;
    
    	font-weight: bold;
    
    	padding: 5px 0 0 12px;
    
    	margin: 5px 0 6px 0;
    
    	text-align: left;
    
    	}
    
    h3.posttitle {
    
    	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    
    	color:#53BB02;
    
    	font-weight: normal;
    
    	line-height:1.5em;
    
    	padding: 5px 0 0px 0px; 
    
    	margin-top: 3px;
    
    	margin-left: 2px;
    
    }
    
    .posttitle a:link{
    
    	font-size: 22px;
    
    	color: #53BB02;
    
    	font-weight: bold;}
    
    .posttitle a:visited{
    
    	font-size: 22px;
    
    	color: #53BB02;
    
    	font-weight: bold;}
    
    .posttitle a:hover{
    
    	font-size: 22px;
    
    	color: #252525;
    
    	font-weight: bold;
    
    	text-decoration: none;}
    
    .posttitle a:visited:hover{
    
    	color: #252525;
    
    	text-decoration: none;}
    
    h4{
    
    	font-family: Arial, sans-serif; 
    
    	margin-top: 15px;
    
    	font-size: 13px;
    
    	font-weight: bold;
    
    	padding: 5px 0 0 12px;
    
    	margin: 5px 0 6px 0;
    
    	text-align: left;}
    
    h5{
    
    	font-family: Arial, sans-serif; 
    
    	margin-top: 15px;
    
    	font-size: 12px;
    
    	font-weight: bold;
    
    	padding: 5px 0 0 12px;
    
    	margin: 5px 0 6px 0;
    
    	text-align: left;}
    
    .date{
    
    	height: 40px;
    
    	width: 40px;
    
    	font-size: 13px;
    
    	float: right;
    
    	letter-spacing: 1px;
    
    	padding: 3px 0px 0px 0px;
    
    	margin-top: 0px;
    
    	text-align: center;
    
    	color: #fff;
    
    	background: url(img/cal.jpg) no-repeat;}
    
    .entry{
    
    	margin-bottom: 5px;
    
            text-align: justify;
    
            margin-right: 10px;}                     
    
    .post{
    
    	display: block;
    
    	overflow:hidden;
    
    	width:98%;}
    
    code{
    
    	display: block;
    
    	margin: 10px 30px 0 30px;
    
    	padding: 2px 10px 5px 10px;
    
    	color: #000;}
    
    #navigation {
    
    	margin-left:auto;
    
    	margin-right:auto;
    
    	width: 990px;
    
    	height: 39px;
    
    /*	background: url(img/bcklines.jpg) top left no-repeat; */
    
    	overflow: hidden;
    
    	line-height:2.7em;
    
    	margin-bottom: 0;}	
    
    #navigation #menu {
    
    	padding: 5px 0 0 10px;
    
    	margin-left:auto;
    
    	margin-right:auto;
    
    	overflow: hidden;
    
    	line-height:2.5em;
    
    	margin-bottom: 0;}
    
    #menu ul {
    
    	margin:0px;
    
    	padding:0;
    
    	}
    
    #menu li {
    
    	float:left;
    
    	margin:0;
    
    	padding:0;
    
    	list-style-type:none;
    
    	white-space:nowrap;}
    
    #menu li a {
    
    	display:block;
    
    	padding:0 10px;
    
    	font-size:0.9em;
    
    	color: #3e3e3e;
    
    	font-weight: bold;
    
    	letter-spacing:1px;}
    
    #menu li a:hover {
    
    	display:block;
    
    	padding:0 10px; 
    
    	font-size:0.9em;
    
    	color: #000;
    
    	letter-spacing:1px;}
    
    * html 
    
    #meu a {
    
    	width:1%;} 
    
    #menu form {
    
    	float:right;
    
    	height:100%;
    
    	width:164px;
    
    	padding:0 15px;
    
    	line-height:0;
    
    	background:#2E3946;}
    
    #menu form fieldset {
    
    	margin-top:7px;
    
    	border:1 solid; }
    
    * html 
    
    #menu form fieldset {
    
    	margin-top:7px;}
    
    #menu #s {
    
    	height:1.5em;
    
    	width:115px;
    
    	margin:0 5px 0 0;
    
    	padding:0;
    
    	font-size:0.9em;
    
    	vertical-align:middle;}
    
    #menu li {
    
    	border-color:#dfdfdf;}
    
    #menu a {
    
    	color: #dfdfdf;
    
    	font-weight: bold;}
    
    #menu a:hover{
    
    	font-size: 10px;
    
    	color: #fff ;
    
    	font-weight: bold;
    
    	text-decoration: none;
    
    	background-color:transparent;}
    
    #menu a:visited{
    
    	font-weight: bold;}
    
    #header #searchbutton {
    
    	height:2em;
    
    	width:auto;
    
    	padding:0 1px;
    
    	font-size:9px;
    
    	letter-spacing:1px;
    
    	text-align:center;
    
    	vertical-align:middle;}
    
    #wp-calendar {
    
    	empty-cells: show;
    
    	margin: 10px auto 0;
    
    	width: 160px;}
    
    #wp-calendar #next a {
    
    	padding-right: 10px;
    
    	text-align: right;}
    
    #wp-calendar #prev a {
    
    	padding-left: 10px;
    
    	text-align: left;}
    
    #wp-calendar td {
    
    	padding: 2px 0;
    
    	text-align: center;}
    
    #wp-calendar th {
    
    	text-align: center;}
    
    #wp-calendar caption {
    
    	text-align: center;
    
    	width: 100%;
    
    	text-transform: uppercase;
    
    	font-weight: bold;}
    
    ul{
    
    	list-style: none;}
    
    img {	
    
    	padding:0px 5px 5px 10px;}
    
    a img {
    
    	border:none;
    
    	background:none;}
    
    .alignright {
    
    	text-align: right;}
    
    .alignleft {
    
    	text-align: left}
    
    .navigation {
    
    	display: block;
    
    	text-align: center;
    
    	margin-top: 10px;
    
    	margin-bottom: 0;}
    
    .wp-smiley{
    
    	padding: 0px,5px,5px,5px;
    
            margin-bottom: 0;}
    
    .textwidget{
    
    	margin: 2px 5px 2px 5px;}
    Code (markup):
    And this is the index.php file:

    <?php get_header(); ?>
    
    
    
      <div id="container">
    
    
    
    <div id="leftnav">
    
    
    
    	  <?php get_sidebar(); ?>
    
            </div>
    
    	<div id="rightnav">
    
    		  <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
    
    	</div>
    
    
    
    	<div id="content">
    
    
    
    	<?php if (have_posts()) : ?>
    
    		
    
    		<?php while (have_posts()) : the_post(); ?>
    
    				
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    
    				<h3 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>		
    
    				<div class="entry">
    
    					<?php the_content('Continue Reading &raquo;'); ?>
    
    				</div>
    
    
    
    				</div>
    
    				<p class="postmetadata"><?php the_time('d') ?> de <?php the_time('M') ?> de <?php the_time('Y') ?> | Escrito por: <?php the_author() ?><?php edit_post_link('Edit',' ',''); ?> | <?php comments_popup_link('Ningún comentario, ¡deja uno!', '1 comentario', '% comentarios'); ?></p>
    
    
    
    	
    
    		<?php endwhile; ?>
    
    
    
    		<div class="navigation">
    
    			<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    
    			<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    
    		</div>
    
    		
    
    	<?php else : ?>
    
    
    
    		<h2 class="center">Not Found</h2>
    
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    
    
    	<?php endif; ?>
    
    
    
    </div>
    
    	
    
    
    
    <?php get_footer(); ?>
    
    </div>
    
    </body>
    
    </html>
    Code (markup):
    Thanks a lot!

    (Sorry for my bad English, I'm Spanish)
     
    bloguitar, Apr 11, 2008 IP
  2. bloguitar

    bloguitar Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Help please! :(
     
    bloguitar, Apr 13, 2008 IP
  3. OSWebMaster

    OSWebMaster Guest

    Messages:
    71
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi there -

    I think you have a WordPress theme? The solution is that the Adsense code does not belong in the CSS document, but in the PHP theme file for the sidebar. Give that a try.

    Yours -
    Scott
     
    OSWebMaster, Apr 13, 2008 IP
  4. bloguitar

    bloguitar Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks, OSWebMaster but that's exactly what I've done :confused:.
     
    bloguitar, Apr 13, 2008 IP