473,662 Members | 2,547 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weird margin at top?

35 New Member
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 2617
Atli
5,058 Recognized Expert Expert
Hi.

There is a weird character in front of the #topbanne r 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 Recognized Expert Moderator Expert
Firebug shows an offset of 24px on #topbanner (that strange character could be the reason)
Jan 16 '09 #3
drhowarddrfine
7,435 Recognized Expert Expert
@Atli
Byte-Order-Mark (BOM) left in by editor.
Jan 16 '09 #4
d3vkit
35 New Member
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
3688
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 workaround to get it to display properly... The thing is: on IE5 (Windows) the second "hello" is just not rendered (ok, at least I try to select all text with Ctrl-A...) when the empty <style> element is in the document. If I remove that element, it...
2
2575
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 7.51, even though it displays fine in Mozilla 1.6, Firefox 0.9, Netscape 7.1 and Internet Explorer 6.0 Hope someone can help!
3
2647
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. I've validated the CSS and the HTML but I still can not find what is causing this problem Perhaps a fresh set of eyes can see what I missed? Thanks for your help!
1
1254
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 same machine than IE and in IE6.0.2800.1106 sp1 WinME on another machine.
0
1353
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 working, but noticed that the top-level items were spaced generously. Once the menu renders on the screen I find all these "margin-left=16px"
4
1771
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 varies in size if you scroll or move it around or refresh and stuff. HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html>
14
2336
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
2089
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 grounds that "Too many values or values are not recognized "
0
1250
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 stylesheet, I've added: * html .qmmc {margin-bottom: -15px}
0
8432
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8344
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8764
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8546
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5654
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.