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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:20:07+00:00 2026-06-11T13:20:07+00:00

I have HTML as shown in http://jsfiddle.net/Lijo/SCYVN/4/ . There is optionLine class with blue

  • 0

I have HTML as shown in http://jsfiddle.net/Lijo/SCYVN/4/.

There is “optionLine” class with blue border. But the border is not working as expected when overflow is not set. It works fine when overflow is set.

  1. Why is overflow mandatory in this scenario?

  2. Any way to make it work without overflow?

CODE

.optionLine
{
display:block;
border: 1px solid blue;
/*overflow:auto;*/
}

Reference:

  1. Parent Div does not adjust height when adding div dynamically
  • 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-11T13:20:09+00:00Added an answer on June 11, 2026 at 1:20 pm

    The border doesn’t work properly because the child elements of the element with the border are floated.

    Floated elements need to be cleared for their container to have the correct, expected dimensions.

    See here for clearfix information

    This SO question also has some very detailed explanations and solutions for different situations. Recently I have used the display:table method frequently…

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

Sidebar

Related Questions

I have HTML as shown in http://jsfiddle.net/Lijo/LLq3v/1/ I need to put the following two
I have HTML and CSS as shown in http://jsfiddle.net/Lijo/Ydjde/ The problem is the text
I have a HTML table as shown in http://jsfiddle.net/Lijo/auny3/ . The table has 10
I have a HTML table as shown in http://jsfiddle.net/Lijo/JN8Pm/1/ . This table is generated
I have a an HTML as shown in http://jsfiddle.net/Lijo/9sWbc/1/ . I need to make
I have code as shown in http://jsfiddle.net/Lijo/PJcZQ/ . It has tow divs with similar
I have the following code: http://jsfiddle.net/YfzbZ/ HTML <dl class=dropdown right> <dt><a>Options</a></dt> <dd> <ul style=display:none;>
I have checkboxes as shown in http://jsfiddle.net/Lijo/Fw3fz/ . I need to align the checkboxes
http://jsfiddle.net/Cyjye/ I m new to jquery. I have made html table shown in jsfiddle.Firstly
I need to set the table cell width as 300 as shown in http://jsfiddle.net/Lijo/Q3pa2/3/

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.