473,402 Members | 2,061 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,402 software developers and data experts.

CSS -> Firefox NFG, IE Fine... inherited classes?

ASP pages utilizing CSS depending on browser type (IE & FF load in different style sheet after http_user_agent call).

This page:

http://www.castleheadhomes.com/map.asp

...when viewed in IE is displayed perfectly. In FF, it is not. I've played with the css to great extent and can't seem to find any inherited classes or divs - is there an easy way to check this - or to supersede all previous classes/div's?

I've tried taking the ImageSlices out of my pagecode, and loading it as a separate stand alone element - it will then display properly...just when I put it in my page shell does it mess up.

Sample here: http://www.castleheadhomes.com/castl...l-map-lar.html

Any help greatly appreciated in advance.

Thank you,
Beacherboy
Oct 24 '07 #1
4 1548
drhowarddrfine
7,435 Expert 4TB
I presume you designed this site with old, non-standard, buggy IE and then expected it to work in sleek, modern Firefox. As always, IE screws with your head and makes you think every other browser is wrong when, in fact, IE is the one causing the problem.

The mantra is "If it works in IE but not Firefox then your markup is wrong". In fact, you have 51 html errors. Now, most of those are just 'alt' errors and can be ignored for now but id names must be unique and used only once per page.

So, modern web pages are created using a modern browser first, such as Firefox, Opera or Safari. Then we look at IE and see if it managed to figure it out. Many times it will be just fine but frequently we have to hack for it. But the hacks are known and fixable and there are hundreds of sites out there dedicated to fixing IEs bugs and quirks.

So, once you fix the errors in your html, then we have a valid sheet to work on and we can start fixing your page.

btw, ASP and ASP.NET is notorious for writing invalid markup.
Oct 24 '07 #2
drhowarddrfine
7,435 Expert 4TB
I just now looked at your second link. It has no doctype. Without a doctype, IE goes into quirks mode and uses its broken "box model". Please read the article about doctypes under Articles above.
Oct 24 '07 #3
Actually - I designed it solely with FF in mind and in use... everything was fine until this one page. I'm used to traditional messup's with CSS between IE and FF - but this one has stumped me. Believe me - I'm a strong proponent of FF :).

Thanks for pointing out the no DocType in your other reply. I've added that in and now see that the image slices don't work whatsoever in FF.

I've brought the HTML herrors from 51 down to 36, of which most of them as you said, are ALT tag errors. The 9 that are not ALT driven, also stumble me. Not sure exactly why I'm getting some of them - but regardless - most are not elements that would be (seemingly) causing this issue.

If you wouldn't mind taking a look again - I'd be grateful.

Thanks again.
Beacherboy


I presume you designed this site with old, non-standard, buggy IE and then expected it to work in sleek, modern Firefox. As always, IE screws with your head and makes you think every other browser is wrong when, in fact, IE is the one causing the problem.

The mantra is "If it works in IE but not Firefox then your markup is wrong". In fact, you have 51 html errors. Now, most of those are just 'alt' errors and can be ignored for now but id names must be unique and used only once per page.

So, modern web pages are created using a modern browser first, such as Firefox, Opera or Safari. Then we look at IE and see if it managed to figure it out. Many times it will be just fine but frequently we have to hack for it. But the hacks are known and fixable and there are hundreds of sites out there dedicated to fixing IEs bugs and quirks.

So, once you fix the errors in your html, then we have a valid sheet to work on and we can start fixing your page.

btw, ASP and ASP.NET is notorious for writing invalid markup.
Oct 24 '07 #4
drhowarddrfine
7,435 Expert 4TB
You reeeaaalllly need to learn how to layout pages without tables. No slicing or dicing or spacer gifs. The table cells or images are overlapping each other, which I guess you know.

Sorry, but I am just not a table layout guy and have a hard time figuring those things out.
Oct 24 '07 #5

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

Similar topics

0
by: Bryan Green | last post by:
So I'm working on a project for a C# class I'm taking, where I need to keep some running totals via static variables. I need three classes for three different types of objects. The base class and...
4
by: Dan | last post by:
I have a need to make a set of classes that all share the same public methods, some implementation and some data. So, I made an abstract base (BaseClass) with an interface (IBaseClass) and a...
4
by: Bryan Green | last post by:
So I'm working on a project for a C# class I'm taking, where I need to keep some running totals via static variables. I need three classes for three different types of objects. The base class and...
4
by: Mike Cooper | last post by:
There is something about inherited classes I evidently don't know... I wrote the following class: Class Class1 inherits System.Windows.Forms.DataGridTextBoxColumn End Class There is...
0
by: cnSoftware | last post by:
I have two classes as below: public class BaseClass { public BaseClass() { } public BaseClass(string name) { this._name = name; }
0
by: tomislav.bartolin | last post by:
Hi, I have inherited TaskSettings class from the ApplicationSettingsBase class and are able to get the configuration settings for this class quite nicely in my windows app. Now, if I inherit...
6
by: F. Meyer | last post by:
Hi, everybody I'm working with STL container map to store an element. Everything happens well when I've an simple class (whit no inheritance). But if using inherited classes I got some estrangs...
3
by: Matt F. | last post by:
I have an abstract class that about a dozen sub-classes inherit from. I want to enforce that each sub-class shadows an event in the abstract class, but can't quite figure out how to do this. ...
8
by: chr | last post by:
Hi I refer to an archived discussion titled inherited classes and xml.serialization I seem to have the same situation, i have two classes B and C inheriting class A, class A includes both types...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
isladogs
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...

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.