Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>Rotation Bug</title>
</head>
<body>
  <div class="rotateContainer">
    <p class="content">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt temporibus ipsa neque debitis illo ad id tenetur ipsam perferendis eum incidunt labore. Quasi ad non vero laboriosam eum in illo expedita libero ab aspernatur quis et rerum quibusdam nisi maxime similique cupiditate. Beatae quod molestias distinctio soluta adipisci labore eum nulla eos quia autem possimus voluptatem omnis dignissimos reiciendis fuga animi perferendis natus ex molestiae vel minus officia accusamus velit excepturi aliquam delectus quisquam laboriosam aut a tenetur asperiores nihil deserunt dolorem exercitationem vero voluptas provident mollitia! Ut perspiciatis amet explicabo illum quisquam sed voluptatum et facilis possimus nam quo iusto saepe impedit cupiditate aut quidem fuga maiores placeat modi exercitationem. Veniam sunt vel facilis earum dignissimos! Quo sit expedita quia doloremque nobis blanditiis libero beatae porro nam ipsa error vel aliquid repudiandae nisi consequatur magnam harum at dolorem dolor deleniti rerum inventore sequi placeat fuga quae incidunt doloribus velit. Dignissimos similique commodi magni quod accusantium in illum quos eos nam natus neque provident odio quae repellendus assumenda aperiam earum quaerat vel culpa laboriosam ut labore incidunt mollitia numquam sint impedit magnam maiores dolor error est distinctio iure quia perferendis repellat itaque qui tenetur? Iusto temporibus architecto odio magni quo?</p>
  </div>
</body>
</html>
              
            
!

CSS

              
                body{
  background-color: #aaa;
}

.rotateContainer{ 
  position: relative;
  margin-top: 200px;
  margin-bottom: 200px;
	-webkit-transform: rotate(-2deg);
  background-color: #bada55;
  padding: 30px 0;
  
  //TRIED TO FIX but just gets rid of the Left Scroll Effekt, not the Right one
  //width: 120%;
  //margin-left: -10%;
  
  .content{    
	  -webkit-transform: rotate(2deg);
    width: 800px;
    margin: 0 auto;
  }
}
              
            
!

JS

              
                
              
            
!
999px
What did the HTML say to the CSS? I like your style.

Console