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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:30:40+00:00 2026-06-01T06:30:40+00:00

I have 4 hard coded divs. After the third div I would like to

  • 0

I have 4 hard coded divs. After the third div I would like to break or put the 4th div on a new line. How do I do this and can I do this php or do I have to use javascript/jQuery? The divs are wrapped in a label tag btw. I forgot to mention that the labels are dynamically turned on. So not all labels are viewed at once.

<label class="1">
    <div id="div1">Stuff 1</div>
</label>
<label class="2">
    <div id="div2">Stuff 2</div>
</label>
<label class="3">
    <div id="div3">Stuff 3</div>
</label>
<label class="4">
    <div id="div4">Stuff 4</div>
</label>
  • 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-01T06:30:41+00:00Added an answer on June 1, 2026 at 6:30 am

    Use nth-child:

    $('label:nth-child(4n)').after("<br/>");​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have something like this hard-coded: private string[,] m_RolesForUser = new string[,] { {John,President,Chair},
I have a hard coded URL like so: https://bupacouk.bwa.local.internal.bupa.co.uk/cash-plan-quote/quoteAction.do?getBenefitLevelDetails=getBenefitLevelDetails&productPolicyId=7841#a1 When Javascript is enabled i
I have hard coded and added items to dropdownlist ie teamsize as 1,2,3 like
I have a hard-coded list, each list item of which has an ID. I
I have a C program which has always used hard coded define statements for
I need to have a Win32 application load a hard coded AES-256 key, ideally
Say that I have a DrawingBrush that has three colors hard-coded, i.e. a border,
its a little bit hard to understand. in the header.php i have this code:
Ok, I have a hardcoded string I declare like this name = uPar Catégorie
I have a bunch of elements like the following: <div class=droppableP id=s-NSW style=width:78px; height:63px;

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.