Log in

View Full Version : Same html/css different space



qwikad.com
05-31-2013, 02:22 PM
I honestly have no clue what the problem might be. Tried everything, nothing seems to be working. The problem persists in Chrome, Firefox and Safari. IE doesn't have it.

These pages are pretty much identical. Check the space right above post free ad. It's narrow:

http://qwikad.com/index.php?view=post&cityid=263&lang=en



Then check the space above post in all cities. It's wider:

http://qwikad.com/index.php?view=post_event&cityid=697&lang=en



Is this a bug that needs to be fixed or am I missing something? I rechecked everything like 20 times now, no idea what's going on.


Thanks for any input.

Beverleyh
05-31-2013, 03:41 PM
It's because the file for the 2nd link (the one with the larger gap) contains Unicode characters.

Open the page in Notepad - skim down and you'll see the #posting_width div font looks different? Those are the Unicode encoded characters that are causing the glitch.

To fix things, go to File, Save As (but don't actually save it just yet) - you'll see the Encoding option set to UTF-8. Change it to ANSI and then save it again. You'll get a warning saying that you'll lose Unicode characters if you save as an ANSI file, but this is what you want to happen, so click OK.

Then open the new ANSI encoded file up again in Notepad and go back to the #posting_width div. It's been converted but there will now be a question mark in front of the line, like this;
?<div id="posting_width">
Remove the "?" and save again in ANSI mode and that should fix things (ie - narrow the gap).

qwikad.com
05-31-2013, 04:48 PM
That did it. Thank you so much. That's probably the 5th time you helped me. God bless you!

Beverleyh
05-31-2013, 05:57 PM
My pleasure - Glad to help another webby person :)