The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Using psuedo elements to create backgrounds that ‘break out’ of their parent element

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #34813

    If you go to this link and read the comments in the JavaScript pane I’ve explained what I’m going for. I want to use ::after to position a background image outside of it’s parent element and not get a horizontal scroll bar when the window is the width of that parent element.


    Chris Coyier

    Can you just hide overflow-x on the html element?


    Thanks for the response. That is a good trick that I didn’t think about, but it probably won’t work because if the browser window is less than 960px I need a horiz scrollbar, just not until then.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.