{"id":287,"date":"2011-05-24T12:01:56","date_gmt":"2011-05-24T22:01:56","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=287"},"modified":"2020-05-03T16:44:10","modified_gmt":"2020-05-04T02:44:10","slug":"absolute-positioning-inside-float-or-relative","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/absolute-positioning-inside-float-or-relative\/","title":{"rendered":"Absolute Positioning Inside Float or Relative"},"content":{"rendered":"
I have a gallery with varying images so I need to use float so that the images line up correctly. \u00a0The problem is that I need to display a shade over the image when the mouse goes over the image. \u00a0It needs to look like the images below. \u00a0The problem is that if I set the shade div as position:absolute, it is absolute to the document.<\/p>\n