• Hi, I was trying to make a new theme, but I have some problems with CSS.

    When I tried to place “margin: 100px 0 0 0” for CSS “des”, it will will push everything down to 100px from top. I thought it will only affect the part of class=”des”?

    Please Help.

    Thank You

    My HTML

    <body>
    <div id="wrapper">
    	<div class="header">
    		<div class="logo">
    			<a href="<?php echo get_option('home'); ?>/">
    				<img src="<?php bloginfo('template_url'); ?>/img/Untitled-1.png" alt="<?php bloginfo('name'); ?>- <?php bloginfo('description'); ?>" title="" /></a>
    		</div>
    
    		<div class="des">
    			<?php bloginfo('description'); ?>
    		</div>
    	</div>
    </div>
    
    </body>
    </html>

    My CSS

    body{
    background: #fff url(img/backback.png) repeat-x top left;
    margin:0;
    padding:0;
    }
    
    .logo img{
    width:200px;
    height:100px;
    border:0;
    padding:0;
    border-style:none;
    display:block;
    float:left;
    clear:both;
    margin:0 0 0 150px;}
    
    .des {
    margin:0 0 0 0;
    padding:0;
    }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘CSS Help’ is closed to new replies.