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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:32:08+00:00 2026-06-01T08:32:08+00:00

sorry this is such a simple question but I can’t figure it out. How

  • 0

sorry this is such a simple question but I can’t figure it out. How to display a div inline with the 1st div of a list of block divs.

here’s a jsfiddle so you can see what I mean: http://jsfiddle.net/trpeters1/u6pt6/11/

here’s the HTML for that:

<div class="">1</div>
<div class="">2</div>
<div class="">3</div>
<div class="title">this is my title</div>

and here’s the CSS:

div{
    width:30px;
    height:30px;
    margin:1px;
    background:red;
}

In this example I’d like the div with class="title" to be displayed inline alongside the number 1 and not at the bottom beneath the number 3 as it currently stands. An important caveat is that the first 3 divs need to stay together because they are rendered by some php code. So non-nesting based solutions are preferred.

thanks for your help,

tim

  • 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-01T08:32:10+00:00Added an answer on June 1, 2026 at 8:32 am

    Like this?

    <section>
        <div>1</div>
        <div>2</div>
        <div>3</div>
    </section>
    <section>
        <div class="title">this is my title</div>
    </section>
    

    ​

    div{
        width:30px;
            height:30px;
            margin:1px;
            background:red;
    }
    section{
        float:left;
    }
    .title {
        width: 150px;
    }
    

    Title on the right: http://jsfiddle.net/u6pt6/13/

    Title on the left: http://jsfiddle.net/u6pt6/14/

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

Sidebar

Related Questions

Hello I am sorry to bother you with such a simple question but this
Sorry if this question may be simple, but I can't seem to find an
Sorry this is such a basic question, but I can't find a straight answer
Sorry for such a trivial question, but I'd feel silly building this if it
Ok sorry this might seem like a dumb question but I cannot figure this
I'm sorry to ask such a simple question, but it's a specific question I've
Sorry to bother you with such a simple question, but I'm stuck here since
This is a very simple issue of CSS specificity, but I really can't figure
Sorry this is a basic question, but all my research just barely missed answering
Sorry for this not being a real question, but Sometime back i remember seeing

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.