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 8882413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:34:19+00:00 2026-06-14T20:34:19+00:00

Working on a responsive design and gradually losing hair and sleep. This one seems

  • 0

Working on a responsive design and gradually losing hair and sleep. This one seems like a genuine webkit bug: http://jsfiddle.net/TAvec/

The problem is quite clear there – webkit interprets the 20% padding as 20% of the parent’s content box, while firefox and opera interpret it as 20% of the parent’s total box (including the parent’s padding).

Any ideas how to work around this whilst retaining the absolute positioning?

  • 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-06-14T20:34:21+00:00Added an answer on June 14, 2026 at 8:34 pm

    You can wrap the content of your <aside> in a div and assign the padding to that, rather than to the <aside>. That way you can ensure that the padding in both FF and Chrome (haven’t tested O or IE) renders relative to the container i.e., the <aside>.

    <!--  HTML  -->
        <article>
        <h1>Parent</h1>
        <p>Content...</p>
    
        <aside>
          <div class="content">
            <h1>Aside child</h1>
            <p>The prime minister also suggested the move would have implications for the UK's EU and Nato membership.</p>
          </div>
        </aside>
    </article>
    
    
    //CSS
    article{  
        background:chocolate;
        padding-left:40%;
        position:relative;    
    }
    aside{
        background:chartreuse;
        position:absolute;
        left:0;top:0;bottom:0;
        width:20%;
    }
    
    article div.content {  //'%' declarations relative to parent
        width: 100%;
        height: 100%;
        padding: 20%;
        border:20px solid black;
        background-color: #fff;
    }
    

    Here it is in action: http://jsfiddle.net/KYyR7/3/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code example: http://codepen.io/asuh/pen/JgdLK This is for a responsive design I'm working on. The amount
I'm working on a responsive design, and would like some of my content in
To assist with a responsive design I'm working on I would like to redirect
http://74.52.155.226/~projtest/team/harmeet/reach/ That is the link i am working on. Its a responsive design. If
I'm working on a responsive design on which I'd like to use two specific
I'm working with Bootstrap and LESS on a responsive webpage design. One of the
While testing this responsive design I'm currently working on, I've noticed a weird text
I am working on a teaser microsite to briefly explain responsive design to unprofessionals.
I'm working on a responsive design and I have some display <h3> tags that
I'm working on a responsive design where the logo needs to be positioned top/center

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.