Skip to content Skip to sidebar Skip to footer

How To Have Both Position Fixed And Background-attachment Fixed?

I have a parent div which contains links called .linkHolder. The parent div has a position fixed to keep it in place as one scrolls. There are backgrounds to each link and these ba

Solution 1:

You used . instead of #. This should work.

#linkHolder {
   position: fixed;
   top: 0;
   width: 100%;
}

Post a Comment for "How To Have Both Position Fixed And Background-attachment Fixed?"