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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T18:34:29+00:00 2026-06-18T18:34:29+00:00

this is more of a mathematical question than a programming question, but here goes:

  • 0

this is more of a mathematical question than a programming question, but here goes:

I have a container div that is 100% wide.

Within, I have two floated divs. The left div is 66% wide and floated left. The right div is 30% and floated right.

I have an h2 element within the left hand div and I’d like it to extend beyond the constraints of its parent and extend to the far right edge of its parent.

What is the formula to figure out the percentage width of the h2 element, if its parent is 66% of the top container.

I currently, through trial and error, have it set to 151.5%, but I hate that it’s just an eyeballed guess. I’d really like to know how you would figure out the correct percentage.

Since it is a responsive design, I can’t use a fixed dimension, it has to be percentage.

  • 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-18T18:34:30+00:00Added an answer on June 18, 2026 at 6:34 pm

    Never mind, figured it out. 100% (container width) divided by width of left div (66%) = 151.515152
    My mistake was rounding my css percentages to 66% instead of 66.66666667%.

    Thanks for all the help

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

Sidebar

Related Questions

I think this is more like Math question rather than programming but since I'm
This is more of a design question. I have a template class, and I
Here is another question I have about being able to calculate this scenario in
Ok, I'm going to try to make this more clear because my last question
I have a label on my asp.net page, it looks like this: more info
This is more of a hypothetical question. I am wondering if anyone knows if/how
UPDATE: I recently learned from this question that in the entire discussion below, I
I have started a bounty for this question ...because I really want the community's
This question not probably not typical stackoverflow but am not sure where to ask
In another question , the topic of std::numeric_limits<int>::is_modulo came up. But the more I

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.