Span for description not working

Discussion in 'HTML' started by Richard, Jan 27, 2005.

  1. Richard

    Richard Guest

    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.
     
    Richard, Jan 27, 2005
    #1
    1. Advertising

  2. 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?

    --
    eat beef jerky
     
    Disco Octopus, Jan 27, 2005
    #2
    1. Advertising

  3. Richard

    Richard Guest

    On Wed, 26 Jan 2005 19:33:49 -0600 Richard wrote:

    > 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.
     
    Richard, Jan 27, 2005
    #3
  4. Richard

    Richard Guest

    On Thu, 27 Jan 2005 03:21:39 GMT Disco Octopus wrote:

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


    > WTF are you talking about?



    Let me guess, Homer Simpson was your English teacher right?
    Shows how S-M-R-T you are.
     
    Richard, Jan 27, 2005
    #4
  5. In article <>, Richard says...
    > 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?
     
    Daniel Ruscoe, Jan 27, 2005
    #5
  6. Richard

    Richard Guest

    On Thu, 27 Jan 2005 04:46:23 +0000 (UTC) Daniel Ruscoe wrote:

    > In article <>, Richard says...
    >> 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?


    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.
     
    Richard, Jan 27, 2005
    #6
  7. Richard

    rf Guest

    "Richard" <Anonymous@127.001>

    > 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
     
    rf, Jan 27, 2005
    #7
  8. Richard

    JDS Guest

    On Wed, 26 Jan 2005 22:22:46 -0600, Richard wrote:

    > Let me guess, Homer Simpson was your English teacher right? Shows how
    > S-M-R-T you are.


    What is your deal?

    --
    JDS |
    | http://www.newtnotes.com
     
    JDS, Jan 27, 2005
    #8
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fulio Open

    Can span include span?

    Fulio Open, Jun 26, 2009, in forum: HTML
    Replies:
    5
    Views:
    559
    dorayme
    Jun 26, 2009
  2. Stéphane Klein
    Replies:
    2
    Views:
    1,802
    John Nagle
    Mar 30, 2010
  3. Stefan Behnel
    Replies:
    0
    Views:
    492
    Stefan Behnel
    Mar 29, 2010
  4. Dan Bishop

    DataGrid (body only) contained in <span>...</span> tags

    Dan Bishop, Jun 7, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    289
    Kilic Beg
    Jun 7, 2004
  5. Wang, Jay
    Replies:
    5
    Views:
    487
    Wang, Jay
    May 25, 2004
Loading...

Share This Page