The Zach Chadwick

  • Archive
  • RSS
Absolute Positioning inside Relative Positioning
This drove me crazy tonight.  I have an HTML table that is inside it’s own wrapper so it can scroll around the page sorta in it’s own frame.  I wanted to attach little popups to individual lines, but they kept ending up acting like they were fixed to the window, rather than my frame.
Turns out, even though it doesn’t affect the layout in my case, I needed to specify position: relative on the top parent.
Shoulda known.
View Separately

Absolute Positioning inside Relative Positioning

This drove me crazy tonight. I have an HTML table that is inside it’s own wrapper so it can scroll around the page sorta in it’s own frame. I wanted to attach little popups to individual lines, but they kept ending up acting like they were fixed to the window, rather than my frame.

Turns out, even though it doesn’t affect the layout in my case, I needed to specify position: relative on the top parent.

Shoulda known.

  • 1 year ago
  • Permalink
  • Share
    Tweet
← Previous • Next →

About

Musician, programmer, and occasional photographer. This is my small attempt to help other people out with some of the same problems I have run into along the way.

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr