The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Getting :before element to obey main width and height (help!) › Re: [Solved] Getting :before element to obey main width and height (help!)
Small little fix:
You were missing `position: relative;`.
Frontend Masters is the best place to get it. They have courses on all the most important front-end technologies, from React to CSS, from Vue to D3, and beyond with Node.js and Full Stack.