Reply
Links under z-indexed images?
Old 03-22-2008, 11:35 AM Links under z-indexed images?
Novice Talker

Posts: 5
Hi,

I am building a new design for my website. http://www.spidersws.com/site IMHO it looks great and stuff but I tried to add one of the buttons in the menu part and make it active but I couldn't click it. This was obviously due to the fact that the head image with the giant spider is on z-index 5 and everything else is on the default. This was necessary to allow the overlay of the legs of the spider. But now I realized I might have to change it completely so as a last effort I decided to ask you guys to see what you thought. Hoping maybe you could offer an option that would allow me to keep the look but still use the buttons. Thanks!

Alex

EDIT: Yes I know the buttons are not next to each other ATM if I can figure out a way to fix the link problem I'll fix that. Until then it's not important

Last edited by spider87 : 03-22-2008 at 11:38 AM.
spider87 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 03-22-2008, 01:13 PM Re: Links under z-indexed images?
LadynRed's Avatar
Super Moderator

Posts: 6,400
Location: Tennessee
Eeeyeeewww!!! I HATE spiders and that thing just gives me the CREEPS !!
The first step - put a PROPER DOCTYPE on your pages !!
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-22-2008, 07:53 PM Re: Links under z-indexed images?
chrishirst's Avatar
Super Moderator

Posts: 12,771
Location: Blackpool. UK
definitely a doctype needed and you will have to get rid of the tables and lose the inline styles to use this idea.

Not tested this as yet but;

Redo the layout in <div>s styled with CSS.

make your navigation bar and buttons to be relatively positioned, then overlay some higher z-index absolutely positioned elements sized exactly the same with display:block <a>nchors to fill the elements and use background-color:transparent to allow the lower element to be visible.

These topmost anchors should then be "clickable" and the spider legs should still be visible.

I'll try and test the idea as well, but the theory is sound
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-23-2008, 10:00 PM Re: Links under z-indexed images?
Novice Talker

Posts: 5
Not trying to be rude but this is just the best way I can ask this without causing confusion. What's the big deal with doctypes?

Ok, also what I was thinking was something that I think the guy above me is getting to. I have invisible images and was thinking they could correspond to the buttons and just be on a layer above the spider. I haven't gotten it to work yet but I kind of took the weekend off. Does it sound plausible?
spider87 is offline
Reply With Quote
View Public Profile
 
Old 03-24-2008, 04:46 AM Re: Links under z-indexed images?
chrishirst's Avatar
Super Moderator

Posts: 12,771
Location: Blackpool. UK
Internet Explorer is the main reason why doctypes are important

The DTD (Document Type Declaration) is there to tell a browser how the page is to be rendered (displayed), what tags are valid in the source code, what attributes exist for the tags, the level of scripting and the valid events and methods that exist for that page model.
It is the code template that HTML pages using that doctype should conform to.
There is a list of current and valid DTDs at -> http://www.w3.org/QA/2002/04/valid-dtd-list.html

Without a DTD or a with an incorrectly defined one, browsers render in what is known as "quirks" mode.
This means that a default method of rendering will be applied and each browsers default are different, and Internet Explorer's quirks mode is very different indeed. In this mode everything it can do wrong, it does do wrong.
More on this from -> http://www.positioniseverything.net/ie-primer.html

Adding a valid doctype makes IE run in standards mode, where it's deliberately defined bad behaviour is curtailed somewhat, and only the very many bugs in IE6 remain to vex the unwary, IE7 fixed many of the "bugs" but besides leaving some also introduced a few new ones

An IE buglist -> http://www.positioniseverything.net/explorer.html
An Opera one -> http://www.positioniseverything.net/op-omnibus.html
and a Gecko browser buglist -> http://www.positioniseverything.net/gecko.html

So the bottom line is:-
If you are not bothered about how your pages or designs will appear to people using different browsers, don't worry about using a DTD. But on the other hand, if you would want everyone who views the page to see the same thing regardless of their choice of viewing agent (albeit with a few relatively minor differences) the use an appropriate DTD for your code level.

As designers, developers and code monkeys, "we" will always advocate the use of a doctype, because we know from experience the majority of cross-browser "problems" with a layout will disappear if one is used from the outset.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System

Last edited by chrishirst : 03-24-2008 at 04:48 AM.
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-24-2008, 06:12 AM Re: Links under z-indexed images?
Novice Talker

Posts: 5
Ah, ok thank you very much.
spider87 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Links under z-indexed images?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14306 seconds with 13 queries