painty / CSS-Used-ChromeExt

Get all css rules used by the selected DOM and its children.

Home Page:https://chrome.google.com/webstore/detail/css-used/cdopjfddjlonogibjahpnmjpoangjfff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistent layout when copy/paste HTML and CSS from codepen.

emmastone9 opened this issue · comments

  1. The url of page inspected.

https://www.iheartraves.com/blogs/post/10-festival-camping-tips

  1. The element inspected.

html

  1. Expected result.

Banner logo should be in the center

  1. Actual result.

CodePen preview shows the banner logo in center, however, when I copy paste the codepen HTML and CSS, the banner logo in a text file, the banner logo layout is off.
Any idea why the logo might be off? I compared the file contents, and they look the same.

@painty @NamPNQ : any pointers on what might be the issue?

You can try to use save feature in codepen, maybe you copy-paste missing something
https://blog.codepen.io/documentation/exporting-pens/

thx @NamPNQ . The issue was related to height in CSS, i replaced it with 100% and that resolved the issue.