Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to make a Twitter-like header?

    Basically, I want to make a header that is similar to twitter or facebook (so the header stretches all the way left, right and top) How would i do this using html/css. I will provide my current code below:

    CSS:
    Code:
    #header
    {
    width:100%;
    height:100%;
    padding:10px;
    background-color: #C0C0C0;
    border-style: none none solid;
    border-width:3px;
    border-color: #404040;
    margin:-10px;
    
    }
    HTML:
    Code:
    <div id = "header">
    	<div id = "content">
    	<h1 style="text-align:center;">HELLO!</h1>
    	</div>
    </div>

  • #2
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is entirely possible with CSS. It is typically a background image. An example of css that would make the strip stretch across the page would be: body {background:url("bg.png") 0 0 repeat-x; You could make the top of the image a color and the rest white just like Facebook has done. Hope this helps you.
    Last edited by VIPStephan; 03-09-2012 at 09:01 AM. Reason: signature rule violation


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •