Forums

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

Home Forums CSS How to get the links to move with image.

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #39007
    shoutout
    Member

    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

    #106551

    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.).

    #106553
    shoutout
    Member

    Sorry I am new at css. I do not know what you mean by used css animations and how do i use anchor tags.

    #106559
    shoutout
    Member

    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.

    #106572
    Paulie_D
    Member

    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

    #106581
    shoutout
    Member

    ok thank i will do that

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