Forums

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

Home Forums CSS Background color on div gets cut off on horizontal scroll ? Reply To: Background color on div gets cut off on horizontal scroll ?

#266377
yoyo
Participant

Header you mentioned is a pseudo element. It will not scroll with the Code block. Since the code block is inside
a

<pre></pre>

Any HTML inside the above tag will be displayed as a code. Thats why they have use pseudo element to create header.