How do I keep DIV tag to move with page?

2 replies
  • WEB DESIGN
  • |
I am making a website and the DIV tag (my column) has an absolute element (which I know makes it stay in one place).

My question is how do I revamp the code so I can keep the DIV column on the right side no matter how wide I make my screen because right now when I change the screen size the image stays stagnant and does not move with the new dimensions.

Thanks!!!
#coding #css #div #html #move #page #tag
  • Profile picture of the author themubeen
    I think you are talking about sticky div.
    for this use following properties
    .stickyClass{
    position:fixed;
    right:0;
    top:20px;
    }

    if still confused then you can add me to your skype: themubeen
    Signature
    WordPress Expert
    Starts from $97 only
    To Order add me to skype: themubeen

    {{ DiscussionBoard.errors[9667915].message }}
    • Profile picture of the author nicholaspiva
      Hi that worked, thank you!

      I have one more question, my image wont move with the page, same problem as before and I want it to move with the size of the page.

      I tried the same thing but it didn't work, do you know what will help?
      {{ DiscussionBoard.errors[9667987].message }}

Trending Topics