Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8431399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:50:42+00:00 2026-06-10T05:50:42+00:00

I copied exactly the same code from official example http://twitter.github.com/bootstrap/examples/starter-template.html . But on my

  • 0

I copied exactly the same code from official example http://twitter.github.com/bootstrap/examples/starter-template.html.

But on my machine something add 20px more to the space between navbar and content. I uploaded the pic.

enter image description here

I tried to change it to body { padding-top:40px; } and it’s ok on pc, but the 20px appears again on mobile. So I cannot find out why. Please help me with that.

Edit: you can see my page on http://sheldon.sinaapp.com/stackoverflow

THE REAL REASON!!!

Some editor on Windows will add BOM to the start of file. It’s invisible and used to notice the editor that it is utf-8 encoded.

For more details of BOM, see Byte Order Mark(wiki)

In notepad++, you can use Encoding -> Encode in utf-8 without BOM.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:50:44+00:00Added an answer on June 10, 2026 at 5:50 am

    Okay – I’ve worked out the problem. You have a line of whitespace before your <!DOCTYPE html> declaration. If you delete this line and move <!DOCTYPE html> to line 1, you’ll be working fine!

    I’ve managed to recreate the problem here:

    Version with whitespace (http://jsfiddle.net/TW9JP/)

    Version without whitespace (http://jsfiddle.net/z8DQB/)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Copied from my log file ActionView::Template::Error (Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs
I copied the example straight from their page: http://jsfiddle.net/D2RLR/631/ ... and I get the
I'm trying to run the sample code from this Sun tutorial: http://download.oracle.com/javase/6/docs/technotes/guides/rmi/hello/hello-world.html I've copied
I am using the PHP library for the Graph API ( http://github.com/facebook/php-sdk ) but
I have two pages - a simple HTML code example page from a jQuery
I am following the django tutorial here . I have copied everything exactly. After
This project was coped almost exacatly from the example on the admob page but
I copied the raw MySQL files of my website from the database directory because
I copied this class from a similar class I have in this app that
I copied this systemd service file from the lighttpd-package and adapted it to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.