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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:33:29+00:00 2026-06-06T11:33:29+00:00

Is a simple exercice, probably some solution better than others, but I wonder which

  • 0

Is a simple exercice, probably some solution better than others, but I wonder which is the best to create this kind of structure in html and css:

What I want is the text, then create 2 pixel line, 1px red and other 1 px green.

enter image description here

Not sure what is the best solution for crossbrowser , want to lines end same time.

Already tried with border, hr , background .. but seems not perfectly finish.

ps-looking for a solution without recurring to a image

  • 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-06T11:33:31+00:00Added an answer on June 6, 2026 at 11:33 am

    Simple answer is to use a simple tag (<i> for example) and apply CSS styles to it.

    <p>Your text <span class="line"></span></p>
    

    CSS might look like this:

    .line {
        position: relative;
        display: inline-block;
        * display: inline; /* fix for IE bugs */
        * zoom: 1; /* fix for IE bugs */
        height: 1px;
        width: 100px;
        background-color: #f00;
        border-bottom: 1px solid #00f;
        vertical-align: middle;
        margin-bottom: 5px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably trivial, and I do have a solution but I'm not happy
This seems like a simple exercise, but I'll be darned if I can find
so I'm making some basic programming language (just for exercise). I've made simple grammar
I am trying to create a simple event scheduler for my campus, as an
I'm writing a simple program for file encryption. Mostly as an academic exercise but
Here is an interesting exercise: Let P be a simple, but not necessarily convex,
I wrote a simple MotionEvent exercise in which all I do is log the
What I am looking to do is create a simple Java audio streaming server.
This is a simple exercise from Chapter 2 of the Sun Certified Java Associate
I have what I think is a simple solr exercise, but I'm unsure what

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.