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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:35:04+00:00 2026-05-18T09:35:04+00:00

I know it doesn’t exist, but is there a pure CSS version? Would like

  • 0

I know it doesn’t exist, but is there a pure CSS version?

Would like to set height, and make it 1px wide (with shadow, if possible).

Just cannot fathom a pure CSS way of doing this. Would need to be absolutely positioned.

As my container has two divs side by side, 60-40% split for example. Need the vertical rule between the two, but don’t really want to use border-left on div 2.

Any suggestions?

  • 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-18T09:35:05+00:00Added an answer on May 18, 2026 at 9:35 am

    for this you basically need to setup a place to put it and a div statement works.

     <div style="width:150px;height:2px;background-color:#000000;">&nbsp;</div>
    

    this could also be referenced:

     .hr {width:150px;height:2px;background-color:#000000;} // in your css file/script
    
     <div class="hr">&nbsp;</div> <!-- IN HTML -->
    

    You can change the position and have it going up/down or left/right with css placement and z-index

     .hr {width:2px;height:150px;background-color:#000000;position:absolute;top:0px;left:50px;z-index:10;} // in your css file/script
    

    basically

     width            = how wide you want it
     height           = how tall you want it
     background-color = is the color you want it to be
     position         = absolute, relative, float - basically if it stays in one place or moves with page content
     top              = where to place in reference to top of page - could be margin-top
     left             = where to place in reference to left of page - could be margin-left
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know how to use JSON to create objects, but there doesn't seem to
I know this doesn't work but is there any way of autogenerating values? It
I know that PHP doesn't yet have native Enumerations. But I have become accustomed
There doesn't seem to be a dictionary.AddRange() method. Does anyone know a better way
I know that it does consider ' ' as NULL , but that doesn't
I know LINQ doesn't have the SQL IN clause but rather uses contains. Can
I know this doesn't work: $('#section').html($(data), function() { $('#section').fadeIn(); }); How would I go
I'm getting into ASP.NET (C# - I know it doesn't matter for this particular
My university doesn't support the POST cgi method (I know, it's crazy), and I
Does anyone know why the KeyPress Event doesn't get fired when the user presses

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.