Jeffery Small wrote:
> I have created a series of webpages where I have placed a transparent
> overlay on the left and right sides of images to facilitate navigation to
> the previous and next image.
>
> Here is the CSS I'm using to define the two frames, defining the z-index=3
> so that they stack above the image and are clickable:
>
> #llinkframe,
> #rlinkframe {
> background-color: transparent;
> border-type: none;
> border-width: 0;
> display: inline;
> height: 577px;
> overflow: hidden;
> position: absolute;
> width: 200;
> z-index: 3;
> }
>
> #llinkframe {
> float: left;
> left: auto;
> }
>
> #rlinkframe {
> float: right;
> right: 0px;
> }
Do not use tabs (for posting).
> On the webpage, I place an image with a single transparent pixel to fill
> these frames. For example:
>
> <div id="llinkframe">
> <a href="page_02.html"><img class="link" src="images/pixel.gif"></a>
> </div>
>
> This works great on Firefox, Opera and Chrome, but on Explorer 10, there
> is a 1-pixel transparent "box" around the link image that knocks out the
> pixels of the image below.
>
> Can anyone suggest how this overlay image can be made truly 100%
> transparent in Explorer 10. (And let's not even discuss earlier versions
> of Explorer!)
Probably you have not set
border: none;
on the image. There is a border around the linked image so that the link
can show that it received the focus (with keyboard navigation). Removing
that border is not recommended but often done for aesthetical reasons
anyway. The least you should do then is highlight the focused image link in
some other way.
That said, your approach appears to be wrong:
1. Formatting the “div” elements “display: inline” and positioning them
”absolute” appears to be just wrong. And “200” needs a unit of length
in proper CSS (it is sometimes error-corrected when you use
Quirks/Compatibibility Mode. Avoid those rendering modes.)
<
http://jigsaw.w3.org/css-validator/>
2. You do not need the “a” elements in a “div” element. Just format the
“a” element as a block-level element: “display: block”.
3. Blind-pixel GIFs are a technique of Web design that predates CSS (1996
CE). You do not need them anymore. Use and overflow: hidden,
if necessary. Or, if you must use an image, use one that actually
conveys what the link is doing, and specify the *mandatory* “alt”
attribute with a sensible value in case the image cannot be displayed.
<
http://validator.w3.org/>
PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$
8300...@news.demon.co.uk> (2004)