I've got a site that appears properly in both IE and Netscape for has all sorts of appearance issues in Mozilla Firefox. I've looked around for some points on the web that help explain the issue, but have so far found nothing. I've come to the conclussion that the problem has to be a CSS one.
Here's the site address. It's currently being hosted on Tripod, until we get some of the bugs worked out and put it on the final hosting site:
http://rsteph49.tripod .com/default.shtml
Here's the style sheet currently being used:
/* css style sheet */
body {
margin: 10px 10px 0px 10px;
padding: 0px;
}
/* =============== =============== =============== =============== ========= */
/* Specific DIVs */
#bannercontent {
position: absolute;
left: 190px;
top: 10px;
height: 226px;
width: 900px;
voice-family: "\"}\"";
voice-family: inherit;
z-index: 1;
}
html>body #bannercontent {
height: 200px;
}
#menucontent {
position: absolute;
left: 190px;
top: 236px;
width: 900px;
height: 30px;
background-image: URL(images/menu04.png);
z-index: 3;
}
#bodycontent {
position: absolute;
left: 190px;
top: 266px;
height: 1000px;
width: 900px;
voice-family: "\"}\"";
voice-family: inherit;
background-image: URL(images/marb009.jpg);
z-index: 1;
}
html>body #bodycontent {
height: 800px;
}
#footer {
position: absolute;
left: 190px;
top: 1266px;
height: 40px;
width: 900px;
voice-family: "\"}\""
voice-family: inherit;
background-image: URL(images/menu04.png);
z-index: 1;
}
html>body #footer {
height: 40px;
}
#groupItem {
height: 80px;
border: 1px solid #000;
voice-family: "\"}\"";
voice-family: inherit;
height: 80px;
width: 800px;
z-index: 2;
}
html>body #footer {
height: 80px;
}
#datetime {
font-family: arial;
font-size: 14pt;
font-weight: 900;
color: #ffffff;
z-index: 3;
}
/* =============== =============== =============== =============== ========= */
/* Font Elements */
#bannercontent h1 {
font-size: 58px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}
#bodycontent h1 {
font-size: 36px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}
#bodycontent p {
font-size: 16px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}
#bodycontent h5 {
font-weight: bold;
font-size: 16px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}
#bodycontent li {
font-size: 18px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}
#menucontent h1 {
font-size: 36px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}
#menucontent p {
font-size: 16px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}
#footer p {
font-size: 16px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}
p {
font-size: 16px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}
a:link {
font-weight: bold;
text-decoration: none;
color: #FFFFFF;
}
a:visited {
font-weight: bold;
text-decoration: none;
color: #7AD0E1;
}
a:hover, a:active {
text-decoration: underline;
color: #1365AE;
}
/* =============== =============== =============== =============== ========= */
/* Random style classes. */
.clCMEvent{posi tion:absolute; z-index:300; width:100%; height:100%; clip:rect(0,100 %,100%,0); left:0; top:0; visibility:hidd en}
.clCMAbs{positi on:absolute; width:10; height:10; left:0; top:0; visibility:hidd en}
.clT,.clTover,. clS,.clSover,.c lS2,.clS2over{p osition:absolut e; overflow:hidden ; width:130; height:30; cursor:hand}
.clT,.clTover{p adding:2px; font-size:16px; font-weight:bold}
.clT{color:whit e; }
.clTover{color: #7AD0E1;}
.clS,.clSover{p adding:2px; font-size:16px; font-weight:bold}
.clS2,.clS2over {padding:2px; font-size:16px;}
/* .clS,.clS2{colo r:white; background-color:#6699CC; layer-background-color:#6699CC;} */
.clS,.clS2{colo r:white; background-color:#3B3B65; layer-background-color:#3B3B65;}
.clSover,.clS2o ver{color:#7AD0 E1;}
/* .clSover,.clS2o ver,.clTover,.c lB,.clBar{layer-background-color:#0066CC; background-color:#0066CC;} */
.clSover, .clS2over{layer-background-color:#1365AE; background-color:#1365AE;}
.clB{position:a bsolute; visibility:hidd en; z-index:300}
.clBar{position :absolute; width:10; height:30; visibility:hidd en; }
/* =============== =============== =============== =============== ========= */
Any help for what I have to do to make the site appear properly in all three (IE, Netscape, Firefox) would be greatly appreciated.
27 4798
Your doctype is incorrect and IE is in quirks mode. Capitalization matters:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
I made that change, but it didn't have any effect on the menubar. I noticed when looking at the javascript for the menubar, I have the barClass set as clBar, which in the .css has a postition of absolute. Could that be part of the problem? And if so, is there a way for me to change this, only when viewing in Firefox (so there's no risk of messing things up when viewing in IE/Netscape?
Thanks for your help.
Your doctype is incorrect and IE is in quirks mode. Capitalization matters:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
You are using invalid Xhtml. In xhtml, tags must be in lower-case because xml is case sensitive. Also, many tags end with />; with the slash. Validate and fix those 50 errors before we get into javascript problems. You have to have your html correct before anything else.
Ok, I've gone through the homepage and removed every caps tag and/or attribute or attribute value that I can find on the homepage, header, footer, and the stylesheet. I haven't gone through the javascript yet. but I will go through that next. As time permits all go through the rest of the pages and change them as well. I'm focusing on the homepage at the moment though, till I can get it appearing properly.
AricC 1,892
Recognized Expert Top Contributor
A few things to consider, more than 85% of the world uses IE. Consider chopping 100px off the width there are still some 800x600 users out there. You are using a strict doctype you should probably use this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
Thank you for your comments.
I've thought about the issue of the screen size. It's something we are looking into refitting the site for; My first focus was on fixing the menu bar, then resizing things to fit more screens.
I've altered the <!DOCTYPE> tag but I'm still getting the same issue. The menu bar appears at the top left of the screen, and scrolls down with the screen; in Firefox. It's still working perfectly correct in IE. Usually I wouldn't be as concerned about this glitch (as like you said most people use IE or Netscape), but the individuals giving me direction on the content/appearance of the site all just so happen to use Firefox.
AricC 1,892
Recognized Expert Top Contributor
Try another menu to see if that fixes the problem: Drop Down Menu
Your javascript could be geared toward IE which will make the site look horrendous in FF. Just cut and paste that sample above see if it works then you'll know its the javascript of your current menu.
A few things to consider, more than 85% of the world uses IE.
Which means absolutely nothing.
You are using a strict doctype you should probably use this one:
Absolutely false! ALL new pages should ALWAYS use a strict doctype!
Your page will never look correct until you fix your errors.
Well I did a quick and dirty implement of the drop down menu AricC posted a link to.
I didn't get it appearing right in the page, but it did get put in the right spot, and didn't scroll down with the page in both IE and Firefox (I don't have Netscape to check that). Which leads me to believe that the error I'm having is somewhere within the javascript.
Would it be better for me to post the code to that here (as it's likely some combination with how the java script access the CSS classes; or would it be better to show the code in the javascript forum, with a link to this thread so they can see the .css?
I've mucked around in my script some, but I can't see anything, that I haven't already tried, that's obviously wrong. I tried changing a few of the classes, and found it would have an effect on the menu, but wouldn't stop it from scrolling, or put it in the right spot. So I'm still at a bit of a loss.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Hal Halloway |
last post by:
The php.net site is crashing Mozilla. esp when the go with us3.php.net
or something like that. Try browsing around the site and you'll see.
Mozilla 1.7.5
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217
|
by: Tony Carnell |
last post by:
Hi,
Here's a conundrum that I hope someone out there can help me solve.
I've created a page to XHTML 1.0 Transitional / CSS standards using
Macromedia Dreamweaver MX 2004 (and validated both with no problems).
Whilst creating the page I've previewed it in IE 6, FireFox 0.8 and Opera
7.21 on my PC and the page displays perfectly (well, as perfectly as IE's
implementation of CSS will allow!)
|
by: Bijoy Naick |
last post by:
It seems like the BBC sports site is able to get past popup blockers..
For eg.. http://news.bbc.co.uk/sport1/hi/cricket/default.stm. Click on
the Video icon under "Watch and Listen" - right hand frame.
I have a popup blocker installed but the window still pops up.. Any
one know how this can be done?
BTW: I need this functionality for an intranet application.
Bijoy
|
by: Maziar Aflatoun |
last post by:
Hi everyone,
I just wrote a complete shopping cart using DataGrids...etc with capability
to edit each item etc. However, the textboxes become their default size
when viewed in Netscape/Mozilla. I thought VisualStudio .Net automatically
takes care of that.
Any suggestions?
Thanks
Maz.
|
by: News |
last post by:
I have a page up trying to learn how to ID a browser and other info.
http://wyght.com/warren/testPos.html
here is the code
<script type = "text/javascript">
var space = ", ";
var name = navigator.appName;
| |
by: dreamamit2001 |
last post by:
Hi,
I am new user to ASP.NET2.0? I would like to know can Macintosh users
able to access ASP.NET 2.0 site ?
I also want to know what are the features of ASP.NET2.0 which are not
supported for Mancintosh pcs? what are the workarounds for them?
Please guide me if anybody has accessed ASP.NET2.0 from Macintosh Pc.
|
by: Mufasa |
last post by:
Can anybody suggest websites that talk about what you need to do to make an
IE site also work under Firefox. What things are allowed and what aren't -
that type of thing.
TIA - Jeff.
|
by: Neo Geshel |
last post by:
NOTE: PAST EXPERIENCE HAS SHOWN ME THAT MANY ON USENET FAIL TO READ
ARTICLES PROPERLY PRIOR TO ANSWERING. I AM LOOKING FOR VERY SPECIFIC
INFORMATION, THEREFORE PLEASE READ AND UNDERSTAND THOROUGHLY BEFORE
RESPONDING; OR ASK QUESTIONS TO CLARIFY. I *WILL* APPRECIATE ANY
CONSTRUCTIVE REPLY.
Greetings!
I am in the process of creating a template for a site. The site will be
*true* XHTML 1.1. That is, it will validate as XHTML 1.1 on...
|
by: plsHelpMe |
last post by:
Hi All,
I am trying to have some images(images of button) on my web page. This image replicate an image of a button having text as Add. I ahve codded it in JSP, i can see this image as expected in mozilla but not appearing in IE. When i see the view source of the code i get something given below:
<div style="position:relative;left:5px; float: left: width: 5%" id="addBookshelfSrcs">
<span id="addBttnEnabled" style="FLOAT: left;...
|
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...
|
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,...
| |
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |