How to add an orange background to top of page

Discussion in 'HTML & Website Design' started by paul_whiting09, Feb 1, 2015.

  1. #1
    Hello I was wondering if anyone can tell me how to add an orange frame to the top of my file. I have attached an image so you know what i'm talking about.

    [​IMG]

    I would like the orange frame to be 35px high. How would I create this in css?

    Many thanks for any help.
     
    paul_whiting09, Feb 1, 2015 IP
  2. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #2
    You can create it like this :

    HTML :

    
    <div id="top-bar">Content</div>
    
    Code (markup):
    CSS Code :

    
    #top-bar {
      background: #EC9522;
      padding: 10px 0 10px 0;
      text-align: center;
      height: 35px;
      overflow: hidden;
    }
    
    Code (markup):
    Goodluck
     
    themes4all, Feb 2, 2015 IP