treehouse : what would you like to learn today?
Web Design Web Development iOS Development

How to get the links to move with image.

  • Good day all
    I know how the to get the background image to fill and move with the browser. But how do I get the links that are div tag to move with the image.

    Thank you
  • Assuming you used css animations, just apply the exact same animations to the div. If you didn't use css you will have to tell us what you used.
  • Don't forget to set the anchor tags as display: block; and give them the same kind of properties as the div (if you want it to span the entire div, etc.).
  • Sorry I am new at css. I do not know what you mean by used css animations and how do i use anchor tags.
  • Ok look at my site http://www.sam-c.net/ as you will see the background fits the browser but when you move the browser back and forth the links do not move with the background . So my question is how do i get the links to move with the background image.
  • You can't do that as such. The background image is just that,,,a background whereas your links are in divs that have that image as their background.

    I think with some time and effort it would be possible to code up a responsive design that might achieve the same effect but from examining your code it's clear that this is a long way off for you.

    I would suggest that you look at improving your basic skills before moving in that direction. A separate stylesheet and learning how to write semantic HTML would be a good place to start.

    Check out some of Chris' videos or those over on NetTuts
  • ok thank i will do that