The strangest thing is happening.
I have a div that shows some text and is absolutely positioned on the page. Although it is absolutely positioned, the div is large enough to show the text that it contains. When I add an inline style to this div to change its relative position, the width of the div suddenly widens to occupy 100% of the page ...
I used chrome dev tools to enable / disable relative position. Disabling it leads to the correct width, and when you rotate it again, the div expands. This is an inline style, so there is no CSS class or selector that changes the width.
I have the same problem in Firefox. Removing "position: relative" in Firebug causes the width to decrease to be wide enough to fit the text.
source
share