Using CSS to create TOP PAGE anchor at 0,0 position

  • Author
    Posts
  • #2993673

    411holy
    Member

    placing an anchor with html at the top of a post does not return a page jump to the top of the page. Therefore, I have created a text widget, placed the html code in it, found its ID #, and now I am trying to move the widget into absolute position at top of the page.

    #text-171 {
    position: absolute;
    top: -174px;
    }

    There has to be a better selector to use than top. Does anyone know of some other CSS code I can use to move the widget to 0,0 at top of the page?

    The blog I need help with is game-of-thrones-episodes.com.

    #2993844

    411holy
    Member

    Oops, the page where all this takes place is

    https://game-of-thrones-episodes.com/2017/07/19/cersei-plans-for-war/

    #2993865

    Hi, we can jump to a CSS id in the HTML, so instead of doing the text widget, and then messing with the positioning, let’s try this. For your jump link at the bottom, let’s do something like this and see how this works.
    <a href="#header">- Back to Top -</a>

    #2993867

    411holy
    Member

    you amaze me… thx :)

    #2993892

    Ah shucks, thanks, and you are welcome.

The topic ‘Using CSS to create TOP PAGE anchor at 0,0 position’ is closed to new replies.