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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:29:54+00:00 2026-05-24T00:29:54+00:00

I want three <div> or <span> tags in a line. Left = a 57px

  • 0

I want three <div> or <span> tags in a line.

  • Left = a 57px width image
  • Right = a 57px image
  • Centre = A span image to fill the whole width.
<div class="bar-left"></div>
<div class="bar-span"></div>
<div class="bar-right"></div>

I’m drawing a fancy hr line where each end fades out. I can get the left and right images aligned using float: left; and float: right; but the middle seems impossible.

  • 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-05-24T00:29:55+00:00Added an answer on May 24, 2026 at 12:29 am

    Would this be ok?

    JSFiddle

    The idea is to put left and right column on top and float them, then put margin to the content div so it doesn’t wrap under floated ones…

    <div class="bar-left"></div>
    <div class="bar-right"></div>
    <!- content goes in last -->
    <div class="bar-span"></div>
    

    CSS:

    .bar-left
    {
        float: left;
        width: 57px;
    }
    
    .bar-right
    {
        float:right;
        width: 57px;
    }
    
    .bar-span
    {
        margin: 0 70px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three span tags: One is floated left (A) and the other two
I want the style of three div align as same as the following picture.
I want to center a background image. There is no div used, this is
I am using asp.net and C#. I have a image and three line. Which
Is there a way we could conjoin three divs together? Hello <div class=mainContainer> <div
I have a contentEditable div where I want to insert HTML tags (a simple
I have three div s, divl : 7px width divr: 7px width divm: unknown
I have a div with some span tags inside that are containers for input
I want to combine three tables - date, lead and click - in a
I want to declare three properties in my MSBuild file and overwrite one property

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.