6 replies [Last post]
pieterprovoost
Offline
newbie
Last seen: 15 years 43 weeks ago
Joined: 2005-03-29
Posts: 3
Points: 0

Hi,

I'm having a few problems with the menu on http://www.portlands-real-estate.com/index2

The first problem is that the main menu is on top of the submenu in IE (not in Firefox). I tried with z-index but that doesn't seem to work.

The second problem is that I can't get the menu centered in IE.

Thanks[/url]

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 2 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

z-index and positioning problem

Evil Where is your Document Type Definition . If that is double dutch to you please read the links in my sig and the article on 'Standards' in the 'How To' section

Please, please, not on a web standards orientated forum;

<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">

This will not get any pleasant responses, MS-Office is not a piece of software that has anything to do with web page coding.

At the moment IE cannot render your page in 'Standards Mode' due to the lack of a proper DTD and what you have there does not constitute one !

You need to read these links and fix your page up, a certain amount of problems will clear themselves up when you do.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

pieterprovoost
Offline
newbie
Last seen: 15 years 43 weeks ago
Joined: 2005-03-29
Posts: 3
Points: 0

z-index and positioning problem

Hugo wrote:
Evil Where is your Document Type Definition . If that is double dutch to you please read the links in my sig and the article on 'Standards' in the 'How To' section

Please, please, not on a web standards orientated forum;

Thanks for your reply but you should know that this is definately not my page, it's merely a page I have add a new menu to. My own websites are made in Notepad and are valid XHTML 1.0 Strict.

tripleshift
Offline
Enthusiast
Last seen: 14 years 25 weeks ago
Timezone: GMT+2
Joined: 2005-03-22
Posts: 70
Points: 0

z-index and positioning problem

pieterprovoost wrote:


...

Thanks for your reply but you should know that this is definately not my page, it's merely a page I have add a new menu to. My own websites are made in Notepad and are valid XHTML 1.0 Strict.


yes bud, but de-facto* you ARE working on that page.
don't tell me you don't have permission to fix that shame.

if it was me, the first thing would have been fixing that doctype and VALIDATING the whole thing.
than do what I was supposed to do.

I know you don't have time to fix other people things, but if you're doing something that you want to work on that mess, you have to assure YOUR "well done thing" cannot be spoiled by THEIR "crappy old code".

you surely don't expect that, to help you, the people on this forum is doing what you (read the page owner) should have done (validate)?

somebody has to do it and, if is not the owner is you, surely not css forum.

i'm not attacking you, I'm only getting the chance to say it.
I'm harsh, but i read in your answer a kind of "excuse" which true or not I didn't like.

I don't want to read things like that as if validating is an option or secondary.

I'm new here and I don't want to preach you or whoever, but I felt like I had to say it.

that's all.

bye
tripleshift

...

* de facto [de fac·to || diː'fæktəʊ]
in reality, in fact, actually existing

I left my good sign in the other pants

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 2 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

z-index and positioning problem

Well i'm glad to hear that's not your page and that you code to xhtml compliance.

Personally I wouldn't touch a page unless I was allowed complete control over such things as DTDs.

As you say that you code to standards you are probably aware that IE 6 will not understand margin:auto unless it's in Standards mode which brings us straight back to the DTD as that is likely the problem with the lack of centering in IE.

Have you tried to add a DTD ? you may well find that this will clear up the menu problem as well ( I start to begin to repeat myself) although it may well present some new ones.

As tripleshift said at the moment you are the owner of the page and unless your prepared to at least try the page with a DTD it's going to be difficult to help you, as the main centering method will not work in IE6; there are a couple of alternatives, you could use a single cell table or the 50% left shift and negative margin trick .

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

pieterprovoost
Offline
newbie
Last seen: 15 years 43 weeks ago
Joined: 2005-03-29
Posts: 3
Points: 0

z-index and positioning problem

I will try a DTD, but the prospect of making this website valid (X)HTML isn't very appealing to me. I will suggest an Extreme Makeover to the owner (valid, no tables, etc). You guys are absolutely right, but I just hoped that maybe there was a simple solution without having to mess with the crappy Frontpage code and Javascript...

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 2 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

z-index and positioning problem

I don't think that there will be a simple solution where the use of this sort of proprietary coding is used . It's the sort of job that's going to end up causing you loads of grief I would have thought. I would tend to want to run a mile from it Smile but that's easy to say, not so easy to do when one needs paying work.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me