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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:19:09+00:00 2026-05-31T07:19:09+00:00

Before I explain… This is the HTML part: <div class=HeadingTabs> <ul> <li><a href=http://google.com class=TabLink>Google</a></li>

  • 0

Before I explain…

This is the HTML part:

<div class="HeadingTabs">
   <ul>
      <li><a href="http://google.com" class="TabLink">Google</a></li>
   </ul>
   <div class="TitleTab">This is some very very long title. This is some very very long title. This is a very long title.</div>
</div>

This is the CSS part:

.HeadingTabs {
    display: block;
    padding: 8px 8px 8px 2px;
    margin: 0;
    border: 0;
    background: transparent;
}

.HeadingTabs ul {
    display: inline;
    margin: 0 0 0 10px;
    float: right;
    position: absolute;
    bottom: 0;
    right: 8px;
}

.HeadingTabs li {
    display: inline;
    margin: 0;
}

.TitleTab {
    margin: 0;
    display: inline;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    line-height: 2.6;
    white-space: nowrap;

/* I haven't included the styling info like
borders and background to avoid unnecessary
distractions in code. */

}

Now… as you can see, the ul element is floating right and is absolutely positioned to the bottom-right of the parent div. This is what I meant, when I said ‘an absolutely positioned, floating element.’

Dispite the giving it a margin, I am unable to prevent the title (<div class="TitleTab"> element) from protruding into it. The image below should make it clear.

Imgur

What am I missing?

Points of note:

  • I cannot modify the HTML. My only go is CSS.
  • I want the title to wrap around the ul element. So, I can’t use width.
  • I am using position: absolute; because I want the ul element to stay at the bottom of the div right above the content div (just cut-off in the image).

PS: I am not very proficient with CSS.

  • 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-31T07:19:11+00:00Added an answer on May 31, 2026 at 7:19 am

    The absolute:position function is designed to be protruded into.

    you should try floating the elements instead without the absolute:position

    .HeadingTabs ul {
        margin:10px;
       float: right;
    }
    
    
     .TitleTab {
         float:left;
         margin: 0;
         font-weight: bold;
         text-decoration: none;
         padding: 5px 10px;
         line-height: 2.6;
         white-space: nowrap; // you need to remove no wrap, so it wraps instead of cuts off
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Before anyone suggests scrapping the table tags altogether, I'm just modifying this part of
Not sure if this has been asked before, it's a bit difficult to explain.
Pls explain this part of meyer's reset in details and is it useful to
Possible Duplicate: Can someone Explain this jQuery code? I have posted this before, but
This question was asked before, but it wasn't answered properly. Can someone please explain
I have posted this before but was unable to explain with clarity so reposting.
This is very wired problem to salve as to explain. Before I go to
Before any one suggests HTML, I explain later why thats not an option here.
Before you all get pissy about me posting this question again, let me explain
Before you start laughing at such a simple question let me explain: I am

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.