Codepen Problem :(

I usually write my html css codes on VS code . But whenever I put same code on codepen (by copying) the page gets messed up while it was working fine in chrome via VS code. It happens with me often. I don’t know why this is happening to me . I’ve added propper media query in my page but still it’s getting messed up , every style working differently in Codepen . Why ?

Hello there.

Some things to note when using CodePen:

  1. CodePen does not expect any content outwith the body tags.
  2. All meta, link, and script information must be put in the :gear: settings section of the HTML editor.
  3. You do not need to/cannot link the CSS in your HTML, if you place the CSS in the appropriate section.
  4. If your project uses React, use the Babel preprocessor, and link the CDN in the appropriate :gear: section.
  5. The editors offer the ability to format and analyse your code, providing useful information about forgotten closing tags etc.

If you are still confused with how to use CodePen, please read the official documentation.

Hope this helps