How to push something down

Discussion in 'CSS' started by Hakou, Oct 29, 2009.

  1. #1
    Currently I have the codings

    
    #header {
    	background: #1e1b1a; 
    	border-bottom: 10px solid #383332; 
    	padding: 10px;
    }
    
    #branding { 
    	width: 960px; 
    	margin: 0 auto; 
    }
    
    #header .m1 {
    	text-align: right;
    }
    
    Code (markup):
    Header and branding are my logo and lets assume it's the right coding. ".m1" is a text based coding that's above and to the right of the logo. However, I want them, as in "header" and ".m1" being on the same row, how do I do that?
     
    Hakou, Oct 29, 2009 IP
  2. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you post some sample HTML? I know it will definitely help for figuring this out.
     
    CodedCaffeine, Oct 29, 2009 IP
  3. Hakou

    Hakou Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <div id="header">
    <div id="branding">
    <div class="m1">
    <?php code here that's on the top right side?>
    </div>
    
    <div class="logo"><img src="images/logo.png" alt="<?php echo ML_SITE_NAME ?>" /></div>
    </div>
    </div>
    Code (markup):
    There's the html code right there. And thanks for trying.
     
    Hakou, Oct 29, 2009 IP
  4. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do you mind if the HTML code is altered to fit it better?
     
    CodedCaffeine, Oct 29, 2009 IP
  5. Hakou

    Hakou Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If it does the job right, I don't mind at all.
     
    Hakou, Oct 29, 2009 IP
  6. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The same CSS will apply. This will just be much easier to work with.
    <div id="branding">
    	<div id="header">
    		<div class="logo">
    			<img src="images/logo.png" alt="<?php echo ML_SITE_NAME ?>" />
    		</div>
    	</div>
    	<div class="m1">
    	<?php code here ?>
    	</div>
    </div>
    Code (markup):
     
    CodedCaffeine, Oct 29, 2009 IP
  7. Hakou

    Hakou Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    k I got it working, thanks a lot CodedCaffeine.
     
    Hakou, Oct 29, 2009 IP