Span for description not working

R

Richard

So I've been working with this span thing for a descriptions use.
Problem with it is, it only works within the division where I have the span.
Using position absolute top 0 left 0, puts the box in the upper left corner
of the thumbs division, not the window.
The text of, disappears out under the borders of the menu.
The span block sits on top of the thumbnail blocking the thumbnail.
I need a way of moving the span block entirely out of the menu system.
Any ideas appreciated.
 
D

Disco Octopus

Richard wrote :
So I've been working with this span thing for a descriptions use.

WTF are you talking about?


Problem with it is, it only works within the division where I have the span.
Using position absolute top 0 left 0, puts the box in the upper left corner
of the thumbs division, not the window.

WTF are you talking about?


The text of, disappears out under the borders of the menu.

WTF are you talking about?



The span block sits on top of the thumbnail blocking the thumbnail.

WTF are you talking about?


I need a way of moving the span block entirely out of the menu system.

WTF are you talking about?



Any ideas appreciated.

Is that because you have no idea?
 
R

Richard

So I've been working with this span thing for a descriptions use.
Problem with it is, it only works within the division where I have the
span.
Using position absolute top 0 left 0, puts the box in the upper left
corner
of the thumbs division, not the window.
The text of, disappears out under the borders of the menu.
The span block sits on top of the thumbnail blocking the thumbnail.
I need a way of moving the span block entirely out of the menu system.
Any ideas appreciated.


Most interesting. In firefox the span block shows outside of the menu just
fine.
In IE, inside the thumbs division.
 
D

Daniel Ruscoe

So I've been working with this span thing for a descriptions use.
Problem with it is, it only works within the division where I have the span.
Using position absolute top 0 left 0, puts the box in the upper left corner
of the thumbs division, not the window.
The text of, disappears out under the borders of the menu.
The span block sits on top of the thumbnail blocking the thumbnail.
I need a way of moving the span block entirely out of the menu system.
Any ideas appreciated.

A URL would be helpful as I can't quite figure out your problem here,
but would it not be easier to simply move the span out of the thumbs div
altogether?
 
R

Richard

A URL would be helpful as I can't quite figure out your problem here,
but would it not be easier to simply move the span out of the thumbs
div
altogether?

Sure. Then the span item would not be associated with the appropriate <a>
tag.
My script works fine but the hover description would be a nice touch for
when JS is turned off.

Basically what I have is this:

a span {display: none;}
a:hover span {display: block;
width: 250px; position:absolute; top:0px; left:0px;
padding: 5px; margin: 10px;
color: #0f0; background: black;
font: 13pt Verdana, sans-serif; text-align: center;}

Then in the thumbs division I have this:

<img src="images/thmb001.jpg" alt=""
onclick="document.main.src='images/barrod-galaxy.jpg',
main.alt='galaxy'"><span>Bar Red Galaxy</span></a>

IE shows the block only within the thumbs division.
Makes no difference with a z-index.
My thought is because the menu itself is using position:absolute it is over
riding any other uses of it.
 
R

rf

Richard said:
My thought is because the menu itself is using position:absolute it is over
riding any other uses of it.

If you had spent just ten bloody minutes reading the recommendations
regarding how positioning works, including understanding[1] the concept of
the containing element, you would already have your asnwer.

[1] alien as that term is
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top