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

  • Home
  • SEARCH
  • 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 8571453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:47:06+00:00 2026-06-11T18:47:06+00:00

The floating element has following structure: <a>The_button</a> <div style=position:absolute> <div style=position:relative class=inner-box> Content Content

  • 0

The floating element has following structure:

<a>The_button</a>
<div style="position:absolute">
    <div style="position:relative" class="inner-box">
       Content
       Content
       Content
       Content
       Content
    </div>
</div>

The content of multiple inner-box controls has variable length, so the inner-box’es have variable height. I want to define CSS class .inner-box (without JavaScript) so that the lower right corner of the inner-box will be positioned in relation to upper-left corner of the link. Is this possible?

Target browsers are IE8+, Firefox, Chrome, Opera, Safari.

Links have always the same height and width.

  • 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-11T18:47:07+00:00Added an answer on June 11, 2026 at 6:47 pm

    The only solutions I could come up with so far are:

    http://jsfiddle.net/fmVz6/ – this requires a height and width to be defined on the “outer-box”, not the inner-box (the inner must be absolutely positioned too).

    Working on a second one at the moment …

    http://jsfiddle.net/fmVz6/1/ – this one does not require a height or width specified, it simply needs something inside the parent div (e.g. a space) to see the effect, otherwise the background doesn’t appear.

    Okay, to have it appear top-left of the link, http://jsfiddle.net/H5G8r/1/ (Requires some rearrangement of your HTML).

    This one requires no width to be defined, and doesn’t break the words onto multiple lines:
    http://jsfiddle.net/H5G8r/2/

    Take your pick 🙂

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

Sidebar

Related Questions

I would like to position a floating div element in an iframe with contentEditable
So often, I we wind up doing something like this: <div class=one> <div class=floating-two>content</div>
How can one get a left floating element with a top position. For instance:
So, I was wondering about the following: I have some main content div and
My webpage i am currently working on only has one main content div that
On my page http://bit.ly/KseVxs I have a floating element that stays at one place
I have a floating div that gets displayed, and I want it to be
i want content NOT to wrap around it's floating sibling (may it be floating
The idea: I'm creating a div that will change to position:fixed once the top
Before I explain... This is the HTML part: <div class=HeadingTabs> <ul> <li><a href=http://google.com class=TabLink>Google</a></li>

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.