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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:15:03+00:00 2026-06-08T01:15:03+00:00

JSFIDDLE: http://jsfiddle.net/V7wUv/2/ This is my HR style: .page-content hr { background-color: #DCDCDC; border: 0

  • 0

JSFIDDLE: http://jsfiddle.net/V7wUv/2/

This is my HR style:

.page-content hr {
    background-color: #DCDCDC;
    border: 0 none;
    clear: both;
    display: block;
    float: left; <-- take a close look at this
    height: 1px;
    margin: 50px auto; <-- take a close look at this
    max-width: 1120px;
    width: 100%;
}

When I add float:left; I end up having margin-top: 50px; and margin-bottom: 50px; work correctly but not margin-left: auto; and margin-right: auto; (it just floats to the left all the time).

When I remove float:left; left and right margins work (it’s properly centered) BUT margin-top: 50px; overlaps element above it and there is 0px of margin.

Element above has this style if you need it:

.grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6, .grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12 {
    display: inline;
    float: left;
    margin-left: 1%;
    margin-right: 1%;
    position: relative;
    width: 98%;
}

I want my HR to be centered and with 50px top and bottom margin.

  • 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-08T01:15:05+00:00Added an answer on June 8, 2026 at 1:15 am
    hr {
        border: 0;
        border-bottom: 1px solid #DCDCDC;
        clear: both;
        display: block;
        height: 0;
        margin: 0 auto 50px auto;
        padding-top: 50px;
        max-width: 220px;
        width: 100%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In this small jsFiddle http://jsfiddle.net/PcWjA/22/ I am trying to make a ul go display:none
Have a look at this jsfiddle: http://jsfiddle.net/Dh96F/1/ The Expand button will animate the widening
So I have come up with the following style sheet in jsfiddle http://jsfiddle.net/8FNZE/2/ and
Here is the JSfiddle: http://jsfiddle.net/buyC9/128/ I want to clear only the file upload field
jsfiddle: http://jsfiddle.net/UenFN/ . Notice the slight, brief pixelation after the animation. This error only
I have created this jsfiddle: http://jsfiddle.net/mfnxm/1/ I am trying to create this JSON: [{
Please check out this jsfiddle http://jsfiddle.net/rr4GH/1/ As you can see its a round edge
In this JsFiddle : http://jsfiddle.net/maxl/mCXND/ (copied and modified from http://jsfiddle.net/ud3323/XMgwV/ ) I try to
In this JSFiddle http://jsfiddle.net/littlesandra88/mzPxN/ am I trying to use the tablesorter plugin to sort
Check out this jsfiddle http://jsfiddle.net/Y7fEW/ . I'm trying to get the tan div on

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.