Tuesday, March 29, 2011

How to get a Fixed Header at Blogspot

Here's how you will make your blogspot (former blogger) Header fixed so all of your Blog contect will scroll under the Header (exactly like you can see it here).

Do a backup of your Template first then Login to your Blog-account  and go to Design >> EDIT HTML (checkmark expand Widgets)

and then Search for: .header-outer {

when found add this:

overflow:hidden;
position:fixed;
z-index:999999;
width: 1440px;

That's it :) Please leave a comment ;)

32 comments:

  1. Thanks man! I searched a lot until I found this! THANKS!!!!

    ReplyDelete
  2. This is working great except for the fact that my content is starting at the very top of the page - underneath the header image.... is there a way around this?

    ReplyDelete
    Replies
    1. There is a way but that would need some investigation before I can provide you a solution. Post the URL of your blog and I'll take a look

      cheers
      force

      Delete
  3. Can you post a screenshot...I'm not sure if I exactly understood your issue

    cheers

    ReplyDelete
  4. It works, and it is simple. Great. Thanks.

    I have the same problem mentioned above. Part of the page is not seen, since my header is thicker than the example one. Can you make the header thicker. Just the same thing I see here as blgspot fixed header, but establishing how thick it is, how many rows. Yours is three rows, lets say, mine should be 10 or so.

    ReplyDelete
  5. Hi Gregario! I hope I understood it properly and the solution below works for you:

    Go to EDIT HTML and search for .header-inner .section

    .header-inner .section {margin: 1001px 1001px;}

    Replace 1001px in the line above with your own values..that should do the trick ;)

    ReplyDelete
  6. Hi I could not find header outer in my html. I can find header inner. Any ideas? sassytsews.blogspot.com I have a thicker header by the way.

    ReplyDelete
  7. strange. Have you edited your html? If you want I can send you my

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. I done control and F to find. Even tried just searching for header so the system would find every occurrence. I will have another try and search for outer; can't remember whether I did that or not. By the way you didn't finish your sentence. Thanks for being so prompt too.

    ReplyDelete
  10. Searched for outer and it only comes up in relation to date, post date outer etc. I could email the code to you if you want.

    ReplyDelete
  11. yep...send me the code please

    ReplyDelete
  12. BTW...have you done this:"EDIT HTML >>checkmark expand Widgets<--- Have you expanded the Widgets?

    ReplyDelete
  13. Yeah I expanded the widgets and done ctrl and F. I tried to post some code on this page but it wouldn't let me moaned about "div" which is in the code.

    ReplyDelete
  14. can you try this:

    1) backup your html file
    2) try another template
    3) search for .header-outer {
    4) let me know about the outcome

    ReplyDelete
  15. Hi. I don't want to change my template to be honest, only want to use the one I have. Thanks for trying to help though.

    ReplyDelete
  16. Doesn't seem to work for me. Nothing happens. I This is what my code looks like

    .header-outer { overflow:hidden; position:fixed; z-index:999999; width: 1440px;
    background: $(header.background.color) $(header.background.gradient) repeat-x scroll 0 -400px;
    _background-image: none;
    }
    I also tried it this way:

    .header-outer {
    background: $(header.background.color) $(header.background.gradient) repeat-x scroll 0 -400px;
    _background-image: none;
    overflow:hidden;
    position:fixed;
    z-index:999999;
    width: 1440px; }

    my blog (is adult btw) http://matureframes.blogspot.com/p/home.html

    ReplyDelete
  17. have you followed these Steps:
    Do a backup of your Template first then Login to your Blog-account and go to Design >> EDIT HTML (checkmark expand Widgets) and then Search for: .header-outer {


    It's important that you put the code in the right place. TBH I don't see anything wrong in what you wrote in your post. Unfortunately I can't check your page because I am at work right now

    ReplyDelete
  18. OH MY LORD I LOVE YOU IT WORKED PERFECTLY

    ReplyDelete
  19. Glad it worked :) I spent some time to make it work ;)
    Cheers

    ReplyDelete
  20. Seriously had looked for this fix for the last hour. Thank you so much! Worked perfectly for my .tabs-outer (nav bar) too!

    ReplyDelete
  21. You said to move the starting point of the content down so it doesn't start behind the header to do this:

    Go to EDIT HTML and search for .header-inner .section
    .header-inner .section {margin: 1001px 1001px;}
    Replace 1001px in the line above with your own values..that should do the trick ;)

    I have tried this by changing .header-inner .section {margin: 1001px 1001px;} to like 3001px or 8001px, but it doesn't make a difference. I'm not a code person so I'm not sure what I'm supposed to change it to to make the content start lower on the page. Help? Thank you!

    ReplyDelete
  22. THANKS HAVE A VISIT WWW.SYSTRICK.TK

    ReplyDelete
  23. Hello, I can't find an option to expand widgets?

    ReplyDelete
  24. H. Ren: Go to "Template" then "Edit HTML".
    Around line #16 click on the arrow and this will show all the CSS.
    Around line #246 you will see the ".header-outer".
    Always a good thing to backup your template before making changes. Adjust "width" to width of your blog.

    Great header. Simple and effective.

    ReplyDelete
  25. Thank you so much for this tutorial!!!

    ReplyDelete
  26. Very Nice Work Tell About fixed footer

    ReplyDelete
  27. wow, good, but I still confuse.
    visit back please.
    ilmudes.blogspot.com

    ReplyDelete