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 ?
February 8, 2018 at 12:35 am
#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.