Problem with HTML anchor text and CSS

Discussion in 'HTML & Website Design' started by muiomuio, Dec 27, 2007.

  1. #1
    I am developing a website that has a massive glossary and it must have anchor text navigation.
    Everything is working fine until it reaches the end of the glossary where there is no content.

    The webpage is at: http://muiomuio.net/advice/glossario/index.html

    If you click on W,X,Y or Z the content goes up. Anyone knows how to fix this?
    I've searched google and tryed alot of hacks but none has worked.

    Will you help a fellow worker out?
    thanks
     
    muiomuio, Dec 27, 2007 IP
  2. nobluff

    nobluff Well-Known Member

    Messages:
    639
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    100
    #2
    Not 100% sure what the problem is, everything looks fine to me. Try adding a page worth of carriage returns as the content for "z", this will force wxzy index to work the same way as the others.
     
    nobluff, Dec 27, 2007 IP
  3. ultraonix

    ultraonix Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think you should close the h3 tag for X and then open a new one for Y

    <h3><a name="x" id="x"></a> <br />X</h3>
    <h3><a name="y" id="y"></a><br />Y</h3>

    Worth a try
     
    ultraonix, Dec 27, 2007 IP
  4. muiomuio

    muiomuio Active Member

    Messages:
    225
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    83
    #4
    The content is all in the same page inside a DIV.
    I tryed making the html right and didn't work. Content still keeps going up.

    I have putted the anchors all in the same place but it is only a temporary fix.
    I really need to find a good answer for this one.
     
    muiomuio, Dec 27, 2007 IP
  5. nobluff

    nobluff Well-Known Member

    Messages:
    639
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    100
    #5
    Still don't know what your problem is? Is it that the background image disappears when you click on another letter? ie bg image is on A but not on b-z or is there some other problem? I don't know what you mean by content keeps going up.
     
    nobluff, Dec 27, 2007 IP