473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Weird margin at top?

35
I recently had a friend pass along some web work for me; a simple update. I for some reason decided I would do some overhauling of the page (he had been doing straight html and I figured some php would make things MUCH more manageable, especially with the pictures).
So, I set to work doing what I normally do for all my site, create the index page with a switch to stick different content in the main part of the page depending on variables passed by get. Weird thing is, somehow I've messed up the top of the page - the image isn't flush with the top like it was before.

Here's what the top should look like: error page (I basically am using this page untouched, didn't do the whole replace w/php thing, and it seems fine).

Here's when it goes wrong: about page.

Weirdest part is, no matter what values I change through Firebug, it never changes. AND there is some sort of SPACE in Firebug? Just WHITE SPACE? Never seen this.

The main page also seems untouched, which is also set with the switch, so I don't think it's the switch or my php that's doing it... but it is weird. Something with the top navigation... but it's identical to what was in place before, and what is on the main page.

Any help greatly appreciated, I'm tearing my hair out here.
Thanks!

Oh, and I know the css is sorta a mess, but it DOES validate, apparently. (I didn't write it, but I'll be reworking it tomorrow).
Jan 16 '09 #1
4 2591
Atli
5,058 Expert 4TB
Hi.

There is a weird character in front of the #topbanner div.
If you turn the background of #layout white, you can see it as text in the browser ().

Try removing the #topbanner div completely, and then re-writing it back into the HTML. (Don't just copy/paste).
Jan 16 '09 #2
Dormilich
8,658 Expert Mod 8TB
Firebug shows an offset of 24px on #topbanner (that strange character could be the reason)
Jan 16 '09 #3
drhowarddrfine
7,435 Expert 4TB
@Atli
Byte-Order-Mark (BOM) left in by editor.
Jan 16 '09 #4
d3vkit
35
That's really weird; I couldn't see any weird characters there no matter how I tried. But, I decided to try just remaking each php file and then rewriting the code that seemed to be messed up (topbanner and navigation both) and then copy and pasting the proper stuff from the file I needed. It worked! The weird top-margin is gone, and the site looks like it did before. Thanks a lot you guys, you gave me the great idea of rewriting the files (and it wasn't even that tedious).
Jan 16 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Herman Kuiper | last post by:
Hi, The HTML at the end of this message will render erroneously on IE (at least 5.0) and prperly on Mozilla (as I've been told). That does not surprise me, but I *would* like to find some...
2
by: Martin Doyle | last post by:
Ok, I'm building a JS-based limitless-sublevel dynamic menu and am making it cross browser as well - 3 packs of aspirin so far and counting ;) I'm having a weird rendering problem using Opera...
3
by: JayB | last post by:
http://www.fape.org/idea/what_idea_is/discipline_overview1.htm When I try to print this page in IE, each word is on it's own line. When I try to print in Firefox, it only prints out one page. ...
1
by: Sunny | last post by:
Hi Anybody had problems with IE6.0.2900.2180 sp2 on XP pro ? A div which was h-centered (margin-left:auto; margin-right:auto) now doesn't center anymore. It's centered in FF, Opera on the...
0
by: chris.mcinnes | last post by:
G'day, I'm trying to implement a graphical horizontal Menu-bar feeding off a SiteMapDataSource with some top-level menu-items and a couple of sub-menus. I've managed to get the menu bar...
4
by: Mark | last post by:
Hi.. I changed some of my CSS, and now I get this strange problem in IE. See link: http://xailus.com/files/sample.gif. Left is firefox, what it should look like, right is IE. The footer even...
14
by: Summercool | last post by:
in http://www.0011.com/test_size3.html to center the logo "HTML 4.01 check" button at the bottom of the page, I used <div style="width: 10px; margin: 0px auto"> </div>
13
by: Dave Rado | last post by:
Hi The W3C css validation service at http://jigsaw.w3.org/css-validator/ claims that: {font-family: "Book Antiqua", Palatino, "Times New Roman", "Times Roman" serif} is invalid on the...
0
by: Dave Rado | last post by:
I've fixed it. I don't understand why this works but it does. In the main menu.css, I've added: * html .qmmc {line-height: 85%; margin-top: 2px; margin-bottom: -2px} and an IE5.5-specific...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.