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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:14:21+00:00 2026-05-29T08:14:21+00:00

I have these sections with headings, where the background goes outside the box (to

  • 0

I have these sections with headings, where the background goes outside the box (to look like a ribbon). But the height needs to be adjustable to accommodate long titles, and the inner container would go outside of hte containing div. So I put an overflow:auto on the outside div, but that cuts off the outside part of the ribbon.

Any ideas?

http://jsfiddle.net/S2p83/

  • 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-29T08:14:23+00:00Added an answer on May 29, 2026 at 8:14 am

    You could insert a breaking element right before the close of the inner container you want to stretch (something like <div style="clear: both;"></div> or <br style="clear: both;"> BUT, that’s adding unnecessary markup.

    Your better (and more proper, in my opinion) option is to fix it in CSS. You’ll want to use a clearfix on the overall container. Your best option is to add a CSS clearfix class. I prefer the “Micro Clearfix” hack, which I applied to your code here:

    http://jsfiddle.net/N2Mh7/

    EDIT: Pre-clarification answer:

    You’ll need to let the height size itself. So, set a min-height and use background-size (but be careful with backwards compatibility) to stretch the background.

    The problem is, your background isn’t going to stretch well. So, you might want to rethink how much text you’re going to allow in that banner.

    Here’s an updated jsfiddle:

    http://jsfiddle.net/Dmm34/

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

Sidebar

Related Questions

I have been searching all day on how to make these sections in a
I have a report with several sections. Many of these sections have a paragraph
I'm creating a WP theme that will have two sections midway down the page.
I have an UITableView and it has 18 sections, in each section there is
I have a asp.net application.there is a databinding section to a datagrid.But there have
I have these 3 tables: and I'm using this code to join them together
I have these three lists with the same number of elements List<String>competitoinsIDs = new
I have these tables: comments uid id pid pages pid user users id rank
I have these variables: boost::regex re //regular expression to use std::string stringToChange //replace this
I have these tables places(place_id, place_name) places_criteria(place_id, criterion_id) criteria(criterion_id, criterion_name) places_criteria have foreign keys

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.