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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:08:37+00:00 2026-06-10T20:08:37+00:00

Is a more efficient way of doing this… for some reason I feel like

  • 0

Is a more efficient way of doing this… for some reason I feel like this is an old way of doing this.

I have this page HERE (I'm re-creating a lynda.com webpage for a lesson) and the wrapper doesn’t actually wrap around the section id="trailInfo".

In order to do that I would add br class="br_clear" /

Is there a more correct way of doing this? If I add clear=both to the section is doesn’t work, I have to add it to the br.
Thanks!

  • 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-10T20:08:39+00:00Added an answer on June 10, 2026 at 8:08 pm

    Update your CSS with the overflow:hidden property inside your parent div

    #wrapper {
        background-color: #FFFFFF;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
        width: 960px;
    }
    

    Explanation About Clearing floats

    A common problem with float-based layouts is that the parent div’s doesn’t want to stretch up to accommodate the child floated div’s. If you will add a border around the parent div you’ll have to command the browsers somehow to stretch up the parent div all the way.

    Now see the problem as you were facing: demo

    its because you didn’t clear the floats on that time.

    So the Old Solution of this problem is clear:both;

    if you will add extra div after the child floated elements like mentioned below code this will clear the floats:

    <div class="parent">
      <div class="left-child"></div>
      <div class="right-child"></div>
      <div style="clear:both;"></div>
    </div>
    

    New Solution is overflow:hidden;
    if you will give overflow:hidden to your parent div this will automatically clear all the child floated elements inside the parent div.

    see the new solution demo: tinkerbin.com/WKqFS7Lc

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

Sidebar

Related Questions

I'm trying to find a more efficient way of doing this, as I have
I feel like this isn't the most effective nor efficient way of doing things:
I'm just wondering if there is a more efficient way of doing this. I
is their a more efficient way of doing this? set @ShippingL = (select ShippingL
Is there a more efficient way for doing this? for item in item_list: e,
I'm still learning Perl, so there's probably a more efficient way of doing this.
Is there a more efficent way of doing this in terms of memory usage
If I have a standard for loop is there a more efficient way to
Is there a more efficient way of doing the following? select * from foo
I'm currently doing something like this in some code I'm working on right now:

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.