loading...

re: A quick and cool CSS real-time editor with HTML & CSS only VIEW POST

FULL DISCUSSION
 

You can put the style out of the body and the styles dont affect the same style.

<html>
<head></head>
<style contenteditable="true" style="display:block;
    z-index:1;
    position:fixed;
    top:0;
    right:0;
    width:300px;
    background:#fff;
    min-height:100vh;
    display:block !important;
    z-index:100000;
    overflow: auto;
    padding:14px;
    border-left: solid 1px #cccccc">

    body {min-height: 100vh; color:green;}

</style>

<body>
  You can edit the CSS code on the right corner
</body></html>
 

Thats true. I updated the pen with your suggestion. Thanks Kip!

code of conduct - report abuse