Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7569527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:11:16+00:00 2026-05-30T15:11:16+00:00

I am performing a CSS transform: rotate on a parent, yet would like to

  • 0

I am performing a CSS transform: rotate on a parent, yet would like to be able to negate this effect on some of the children – is it possible without using the reverse rotation?

Reverse rotation does work, but it affects the position of the element, and it may have a negative performance impact (?). In any case, it doesn’t look like a clean solution.

I tried the “transform: none” suggestion from this question prevent children from inheriting transformation css3, yet it simply doesn’t work – please see the fiddle here: http://jsfiddle.net/NPC42/XSHmJ/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:11:17+00:00Added an answer on May 30, 2026 at 3:11 pm

    I believe that you are going to need to fake it using a second child, the specification does not seem to allow for the behavior you would like, and I can understand why the position of a child element has to be affected by a transform to its parent.

    This isn’t the most elegant of solutions, but I think you’re trying to do something that the specification is never going to allow. Take a look at the following fiddle for my solution:


    .parent {
      position: relative;
      width: 200px;
      height: 150px;
      margin: 70px;
    }
    
    .child1 {
      background-color: yellow;
      width: 200px;
      height: 150px;
      -webkit-transform: rotate(30deg);
      -moz-transform: rotate(30deg);
      -o-transform: rotate(30deg);
      -ms-transform: rotate(30deg);
      transform: rotate(30deg);
    }
    
    .child2 {
      position: absolute;
      top: 30px;
      left: 50px;
      background-color: green;
      width: 70px;
      height: 50px;
    }
    <div class="parent">
      <div class="child1"></div>
      <div class="child2"></div>
    </div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When performing many inserts into a database I would usually have code like this:
While performing some upcoming maintenance, I'm going to have to redirect all site traffic
This is very programming related but a somewhat non-programming question. I am performing image
After performing some tests I noticed that printf is much faster than cout .
After performing EXPLAIN on a query: explain select name from t1 where name like
While performing a refactoring, I ended up creating a method like the example below.
When performing a factor analysis using factanal the usual result is some loadings table
This feels like an extremely n00b question, but here goes... I have a series
The some part of the html of the webpage which I'm testing looks like
When performing some custom painting on a button's Graphics2D object, I get the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.