-2

I can't for the life of me get rid of the horizontal white space between two divs. I am using twitter bootstrap and the white space issue can be seen at http://www.areyoumoving.com.au between the hero image and the footer.

Soham Banerjee
  • 465
  • 1
  • 8
  • 18
Mick Sherry
  • 146
  • 6

3 Answers3

2

I ran your page through a hex viewer. It is certainly a Byte Order Mark (BOM) before the footer which means your footer file has these chars in the beginning:

%3C%2Fdiv%3E%0A%EF%BB%BF%3Cfooter

enter image description here

Here are many ways to remove it - not just AWK

Using awk to remove the Byte-order mark

PS: Why would I use a Unicode Signature Byte-Order-Mark (BOM)?

Community
  • 1
  • 1
mplungjan
  • 169,008
  • 28
  • 173
  • 236
0

I assume that you are using some "col-lg/md/sm/xs" classes from bootstrap... these classes have a pre-defined margin / padding into their styles.

Just override these properties to get rid of them, add these lines in your css file :

#yourIdentifier{
    margin:0; //or top/left/right/whatever
}
#yourIdentifier{
    padding:0; //whatever ;)
}

You may sometimes have to add "!important" tag (end of css line) to be sure your edits are really taken into account.

Julo0sS
  • 2,096
  • 5
  • 28
  • 52
  • I am using those classes, however upon inspecting the problem it isn't showing up like a margin or padding problem. There are 2 random quotation marks appearing in the markup after it is rendered – Mick Sherry Apr 27 '15 at 06:39
  • these random quotations come from the fact that you're using ::before & ::after properties. The style of these "pre-defined" before/after just look like setting the content to ""... – Julo0sS Apr 27 '15 at 06:45
0

There is any trash before <footer>, probably BOM (if you include footer from the single file).

Remove BOM, save the file again and it will be okay.

pavel
  • 26,538
  • 10
  • 45
  • 61