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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:25:51+00:00 2026-06-11T10:25:51+00:00

I have to add child div elements to #mainHolder div dynamically. There should be

  • 0

I have to add child div elements to #mainHolder div dynamically. There should be only three divs in a row. I am doing it using “clear” approach as shown in http://jsfiddle.net/Lijo/ZkLg6/20/.

Is there a better CSS way for doing this?

Reference:

  1. http://jsfiddle.net/Lijo/bSchQ/9/
  • 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-11T10:25:52+00:00Added an answer on June 11, 2026 at 10:25 am

    You may add clear: left; to your .firstDiv class. This way you will not need to add another div with clear:both; Here is an updated JSfiddle.

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

Sidebar

Related Questions

I'm building <div> elements using AJAX, and I want to add ZeroClipboard functionality. Firebug
I have a div with several nested divs. All the child div's are float:left
I have a parent div that is filled with multiple child divs (see here
I have two validation groups: parent and child I have an add button that
I have created dynamic elements using javascript. These elements are created when i input
So, I'm having difficulty trying to append/add a child div to the parent div,
Background I have the following html code: <div id=parent> <div id=child> I'm the child!
I am trying to add new div elements on the fly to an already
I wanted to know if there's a way to alter child elements while isolating
I have a following issue - I'm using jQuery to add additional input forms

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.