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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:59:35+00:00 2026-06-15T21:59:35+00:00

In a log-in/register box I have to separate two buttons with a text like

  • 0

In a log-in/register box I have to separate two buttons with a text like this.

Log in / Register box

With my HTML code being:

<button class="facebookSux">Ingresa con Facebook</button>
<label>o si prefieres</label>
<button class="register">Regístrate con tus datos</button>

How can I get the horizontal line for the label only with CSS?

One solution that I have considered is using a linear gradient appropriately but there have to be a more elegant way to achieve this.

  • 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-15T21:59:36+00:00Added an answer on June 15, 2026 at 9:59 pm

    I assume there is a container around these three tags that can be styled too, in which case I propose this solution.

    Screenshot

    Markup (unaltered):

    <div>
        <button>Ingresa con Facebook</button>
        <label>o si prefieres</label>
        <button>Regístrate con tus datos</button>
    </div>
    

    Style sheet:

    div {
        width: 250px;
        text-align: center;
        overflow: hidden;
    }
    button {
        width: 100%;
    }
    label {
        padding: 0 1em;
        position: relative;
    }
    label::before,
    label::after {
        width: 125px; /* =250/2 */
        height: 0;
        border-top: 1px solid #000;
        content: "";
        display: inline-block;
        position: absolute;
        top: 50%;
        right: 100%;
    }
    label::after {
        left: 100%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using JQuery. I'm writing this as HTML code: <li id=toggle> <a id=open class=open
I have a jquery modal confirm-box, I added a register and login button (
$(document).ready(function() { $(#register button[name=btnPosta]).click(function() { console.log('clicked'); thisBtn = $(this); parent = $(this).parent(); name =
I have set up a website with a simple register/log in form. What i
I have this very simple html page I ported from seam to playframework....the enter
i got this class to get a list of all derived objects Register.h -----------------
I am developing iOS app using phonegap. Users first have to register or log
As of right now, I have the user register/log in and then if successful,
I have a HomeController that allows a user to log in and register. If
What is the proper way to register users automatically when they log in with

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.