How can I put a div at the TOP of the page with a background color? No white space

I am attempting to put an orange bar at the very top of a page and one that also stretches across the entire width of the page, no matter the page size.
With the code below the orange bar appears but there is white space between the top of the browser and the orange bar.
<div style="background-color:#f79321;height:30;width:auto;"> <p> </p></div>
How can I get rid of this white space? I tried setting margin and padding to 0px but that did not work.

I'm still getting the spacing:
<html>
    <head>
        <style>
            body
            margin: 0;
            padding: 0;
            font-family: Georgia, serif;
            text-align: left;
            font-size: 16px;
            line-height: 1.2;
            word-wrap: break-word;
            text-rendering: optimizeLegibility;/* kerning, pri*/
            h2
            font-family:Arial, sans- serif;
            font-size: 28px;
            color: #fb8700;
            h2 a
            font-family: "bebas-neue",sans-serif;
            font-size: 40px;
            h2 a:visited
            color:#fbb100;/* visited - orange*/
            text-decoration:none;
            h2 a:active
            color:#fbb100;/* selected- orange*/
            text-decoration:none;
            h2 a:hover
            color:#c9c9c9;/* mouseover- light grey*/
            text-decoration:none;
            h4
            font-family: "bebas-neue",sans-serif;
            font-size: 50px;
            color: #fbb100;
            #page-wrap
            width: 960px;
            margin: 0 auto;
            p.topFormat
            font-family: Georgia, serif;
            font-size:16px;
            text-align:center;
            p.footerFormat
            font-family: Georgia, serif;
            font-size:16px;
            text-align:left;
            line-height: 150%;
            a:link {color:#fbb100;text-decoration:none;}      /* unvisited - orange*/
            a:visited {color:#fbb100;text-decoration:none;}  /* visited - orange*/
            a:active {color:#fbb100;text-decoration:none;}  /* selected - orange*/
            a:hover {color:#636363;}  /* mouse over - grey*/
        </style>
        <script type="text/javascript" src="//use.typekit.net/ppq8ria.js"></script>
        <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
    </head>
    <body>
        <div style="background-color: #f79321; height: 31px; width: auto;">
        <p> </p>
        </div>
        <div>

Similar Messages

  • How can I put an image in the page header so that it will be repeated on every page?

    Hi to everyone!
    I want to create a Pages template with the logo of our company in the page header.
    I'd like to put that image (logo) in the page header so that it will be repeated on every page but it will not modify the content of the page.
    Anyone know how to achive this, or something similar without have to copy-paste that image every time we add a page to the document?
    Thanks in advance

    Takashi,
    Turn off the Page Headers (not absolutely necessary, but since you don't need it, why not)
    Put your Graphic on the page and make the following settings:
    Then Insert > Text Box and make the same settings as for the graphic.
    Place your "Header text" in the text box and arrange the box and graphic as you want them. Move both to Section Master using the Arrange menu.
    Jerry

  • How can I put a diagram (contains the pages I always visit ) in new tab??

    I want my new tab show directly the last pages I have visited

    Some add-ons that may be of use:
    * Auto Dial - https://addons.mozilla.org/firefox/addon/auto-dial
    * Speed Dial - https://addons.mozilla.org/firefox/addon/speed-dial
    * Fast Dial - https://addons.mozilla.org/firefox/addon/fast-dial-5721

  • I have three different listings for Bob Seger on my iPod (bob Seger, Bob Seger System and Bob Seger and The Silver Bullet Band) How can I put all 3 in the same artist folder without changing artist name?

    I have three different listings for Bob Seger on my iPod (Bob Seger, Bob Seger System and Bob Seger and The Silver Bullet Band) How can I put all 3 in the same artist folder without changing artist name?

    Can you just create a new "Playlist", name it Bob Seger and drag what you want into the Playlist.
    File/New Playlist

  • How can i put my videos on the ipod classic

    how can i put my videos on the ipod classic

    See these 2 articles.
    http://support.apple.com/kb/ht1333
    http://support.apple.com/kb/HT2729
    B-rock

  • How can I put a parenthesis around the number?

    Hi expert people!!!
    One question:  How can I put a parenthesis around the number because I have this
    write:   /123 t_bsid-pago1, 141 t_bsid-pago2,
              157 t_bsid-pago3, 175 t_bsid-pago4,
              193 t_bsid-pago5.
    and if I put the parenthesis hardcoded like this:
    write:   /123 '(', t_bsid-pago1,')'.
    when the variable are printed the parenthesis is write very separated from the amount.
    I know that maybe I can use the CONDENSE or CONCATENATE statement but for that I need to create a variable type N, or STRING and if I do that I don't know how can I put the decimals points back.
    Thanks!!

    Hi Carlos,
    Try this:
    REPORT  ZTESTRAJ.
    data: v_val(10) type p decimals 2 value '123456.75',
          v_text type string.
    start-of-selection.
      write:/ v_val.
      v_text = v_val.
      concatenate '(' v_text ')' into v_text.
      condense v_text no-gaps.
      write:/ v_text.
    <b>Output:</b>
    test program...      
    123,456.75 
    <b>(123456.75)</b>          
    Regards,
    Raj
    Message was edited by: Rajasekhar Dinavahi

  • I moved folder Itunes folder to the desktop.if I open Itnues now, I cannot see my library.how can I put it back in the folder "music" in Finder?

    I moved folder Itunes folder to the desktop.if I open Itnues now, I cannot see my library.how can I put it back in the folder "music" in Finder?

    done through Hard Disk at top right of the screen...itnues folder is there already because of my dragging into folder/music..but Itunes does not ope the whole library.
    whn I opened it, itwas like it had never been on the mac and it downloaded my last purchasesdone with the iphone...now it only shows that one album purchase

  • How can I put my bookmarks into the sequence I want, alphabetical or otherwise?

    How can I put my bookmarks into the sequence I want, alphabetical or otherwise?

    http://kb.mozillazine.org/Sorting_bookmarks_alphabetically <br />
    http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox

  • HT201210 I have an Iphone 4 where the imei number is erased, how can I put back on it the imei number

    I have an Iphone 4 where the imei number is erased, how can I put back on it the imei number

    They would have to do more than that to remove or alter the IMEI, or, as brad805 already said, the logic board has been damaged. The person they got if from was probably trying to dump it.

  • How can I put something in for the last Wednesday of every month

    How can I put something in for the last Wednesday of every month

    I don't believe there is such a custom repeat option with the iPhone's Calendar app, but if you are syncing calendar events with a supported calendar app on your computer or syncing calendar events over the air with an email account that supports it with an option to create such a custom repeating event with the online calendar, set up the custom repeating event there.

  • HT4847 My phone was stolen.  How can I get my photos off the iCloud with a Snow Leopard operating system?

    My phone was stolen.  How can I get my photos off the iCloud with Snow Leopard.

    Welcome to the Apple Community
    You can't, if the photos are in photostream you need a compatible device, if they are in a backup, you can only use the backup to restore to a new device.

  • How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?

    How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?
    I have code that finds / marks words with a different color.  Now I want to remove that color.  I've started with the following, but cannot complete it.
        //int iLength = gRTbxInfo.Length
        int iLength = 10;
        TextRange trText = new TextRange(gRTbxInfo.Document.ContentStart, gRTbxInfo.Document.ContentEnd);
        TextPointer tpStart = trText.Start.GetInsertionPosition(LogicalDirection.Forward);
        TextPointer tpSelectionStart = tpStart.GetPositionAtOffset(0, LogicalDirection.Forward);
        TextPointer tpSelectionEnd = tpSelectionStart.GetPositionAtOffset(iLength, LogicalDirection.Forward);
        TextRange tpSelection = new TextRange(tpSelectionStart, tpSelectionEnd);
        tpSelection.ApplyPropertyValue(TextElement.BackgroundProperty, new SolidColorBrush(Colors.White));
    bhs67

    Isn't that just
    TextRange tr = new TextRange(rtb.Document.ContentStart, rtb.Document.ContentEnd);
    tr.ApplyPropertyValue(TextElement.BackgroundProperty, Brushes.White);
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • [svn:fx-trunk] 9707: Our stock html template now propagates ${bgcolor} to the page body' s background-color.

    Revision: 9707
    Author:   [email protected]
    Date:     2009-08-27 13:15:29 -0700 (Thu, 27 Aug 2009)
    Log Message:
    Our stock html template now propagates $ to the page body's background-color.
    QE notes: Requires documentation of new behavior (relative to Flex 3).
    Doc notes: None.
    Bugs: SDK-22723
    Reviewer: Peter F.
    Tests run: Manual Flash Builder tests.
    Is noteworthy for integration: Yes, new html template.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22723
    Modified Paths:
        flex/sdk/trunk/templates/swfobject/index.template.html

    Horgykitkat wrote:
    What I found after taking out the heights from the text areas is that I was left with uneven text column lengths (alternating beige areas). So I created a repeatable jpg with the same alternating beiges and put it as the background of the bodyArea tag. Again, if there is a better way, please let me know!
    A repeating background image to 'fake' equal height columns is perfectly ok.
    It won't work IF your page is responsive but it isn't so no problem. If it were responsive a better solution would be to take advantage of the css property display: table; and display: table-cell;
    In reference to your footer background color not showing I would assume you have floated items within the footer container. If so then you need to clear those floated items which allows the footer container to wrap itself around the floated items inside it.
    You would do this by using css - overflow: hidden; - on the parent container which has the floats inside it.

  • How can I put different clips in the "DropZone"

    Hey,
    Just wondering how can I put different scenes in dropzones of a customized template in Idvd....
    I imported my film from IMOVIE its' not saved as a movie format such as .mov or .avi it's saved as a project file... so I dont know how I would be able to do have different scenes in different drop zones.. I can only import the whole thing in a dropzone...
    Cuz on customized template there is like 3 dropzones is there a way i can delete the other 2?
    Please help me out,
    JOey Dee

    Hello Joey,
    the dropzone is actually not meant to contain your main movie. If you want to import your iMovie project by drag'n drop, drop it just above the bottom of the preview window. Alternatively choose File > Import > Video from the menu and select your iMovie project.
    If you have 3 dropzones, you should create 3 short (30-45 sec) movies and/or slideshows to place in the dropzones.
    Have a look at this little tutorial:
    http://www.kenstone.net/fcphomepage/idvd_5stone.html
    hope this helps
    mish

  • How can I put "Favorites"portlets for various users in a page?

    How can i put in a page two "Favorites" portlets (one for each user that log on into the page and one for each group of users that logon into the page),so each
    user can customize (add favorites,delete favorites,..) it's own "Favorites" portlet and the other "Favorites" portlet is only customizable by a
    group of user,so if the user log on is not in that group can't customize the portlet.

    The favorites portlet is set up to work this way automatically. You put one version on a page, and the customizations are stored for each individual user. So the same portlet displays different favorites based on the logged in user. At this point, there is no way to define favorites for a group.

Maybe you are looking for

  • Urgent help: ERROR: STARTING J2EE 1.3.1

    Here is the message: Dear Sir or Madam: There is no way I get it run J2E1.3.1. I need it so desperately. THE OS is Windows XP Professional. Message is: C:\j2sdkee1.3.1\bin> j2ee -verbose Exception in thread "main" java.lang.NoClassDefFoundError: C:\j

  • Got Error in using JDBC

    I have got the following error when I am running my application using JDBC. It works fine but after running long time I have got this error. java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12500)(ERROR

  • Advanced navigation feature?

    I thought of a possible optional feature to help navigate really long lists of artists or songs (since iPods are only getting larger in capacity.) It could be an optional setting, since it is somewhat different than normal usage. Instead of always st

  • ITunes 5 keeps loosing certin tracks

    I have four different albums that I have imported into iTunes that every time I close the app and re-open it, these songs show up w/ the "!" next to them. when I double-click on the song in question iTunes asks me to find the file, I point it to the

  • I can call out or recieve incoming call on the Iphone 4s.

    Iphones 4s, on the sprint network. I can not place an outgoing call or recieve an incoming call.