Display code blocks in html

In the technical documentation project, the example displays some blocks of code, in order to keep the formatting i used <pre> tags </pre> but when doing so it centers the content of the<code> </code> tag.Just wondering if anyone has any insight on this, && also how do i get my menu flush with each option … https://codepen.io/James_M0025/pen/VVBxGY thanks again !

you’re using actual enter spaces like you would in javascript this is messing the code up in html use br tag instead

              <code>
 function greetMe(yourName)<br> {
  alert("Hello " + yourName);<br> } <br>  greetMe("World"); 
                            </code>
1 Like

Thanks @biscuitmanz ! this worked for me if anyone has any other options let me know

1 Like