Thanks. I used what you posted and that was the fix : )
I would never have thought of using characters like that.
<code>
<div id="header">
</code>
Afterward I did a search and found a link to this that explains those odd symbols to use.
https://www.w3schools.com/html/html_entities.asp
Issue: I have an issue though with the text going past the div for the pre code.
Question: Is there a fix for that?
See screenshot.
pre code {
background-color: #eee;
color: #000000;
border: 2px solid #000000;
display: block;
padding: 10px;
width: 60%;
margin-left: 30px;
margin-right: 30px;
margin-top: 0px;
margin-bottom: 0px;
font-size: 20px;
}
well , as I said in my eralier post, you should also use entity por the quote inside your code.
so instead of using
<div id="header">
you should use (as an habbit)
<div id="header">
now for the text overflow concerning the PRE tag, in fact the PRE tag is 100%, and you should control, it's own CSS (concerning WIDTH and WRAPPING),
not focus on the PRE CODE selector, but on the PRE selector
so try sometning like
pre {
width: 200px;
white-space: pre-wrap;
word-wrap: break-word;
}