Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Moved div but link no longer works

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #175153
    RBdev
    Participant

    So I created a div with a class = button that when clicked should go to another page. When I use css to re-position this div to top of page the link no longer works. It appears that I am moved the div but link is not following . Here is my code

    page link : http://vepaainc.com/virtual-executive-personal-assistants-america-vepaa-clone/.

    Not sure what I am doing wrong

    #175154
    Paulie_D
    Member

    Where exactly is this div in the HTML because I’m having trouble finding it?

    When I use css to re-position this div to top of page

    This sounds like you are using absolute positioning which, in general, I find not to be a good idea unless it’s for a specific effect.

    If the div needs to be at the top of the page it should, ideally, be near the top of the HTML source.

    At the moment, it sounds like a z-index issue.

    EDIT: OK found it…yes..definitely in the wrong place in the HTML.

    If you are after a quick fix (and you shouldn’t) try adding this to the class

    z-index: 30;
    
    #175155
    Paulie_D
    Member

    Oh…and the <center> element is been deprecated under HTML5 and should no longer be used.

    Deprecated
    This feature has been removed from the Web. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.