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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:40:47+00:00 2026-05-28T04:40:47+00:00

I have been struggling with something which in theory should be very simple for

  • 0

I have been struggling with something which in theory should be very simple for a few days now… and i am determined not to give up.

I am trying to achieve this:

enter image description here

Essentially horizontal rule, with an ornament between – the HR will span the full width of the screen.

So i sliced my PSD to drop out the ornament as a image – and i am trying to overlay this onto a


centered but failing miserably.

My Markup:

<div>
  <hr>
  <img src='assets/img/ornament.png' class='center'>
</div>

CSS:

hr{

height: 2px;
color: #578daf;
background-color: #578daf;
border:0;

}

I just cant figure out how to make the image appear in the centre of the HR…. Any help or pointers would be appreciated.

  • 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-28T04:40:48+00:00Added an answer on May 28, 2026 at 4:40 am

    Change the markup tp

    <div class='hr'>
      <hr>
      <img src='assets/img/ornament.png' alt=''>
    </div>
    

    Add the following to the stylesheet, replacing 16px by a suitable value that depends on the height of the image and the expected font size.

    .hr {  text-align: center; }
    .hr img { position: relative; top: -16px; }
    

    However, a better approach is to use just an image, centered inside a div element that has a suitable background image that repeats horizontally. The background image would be a piece that is of the same color as the overall page background but has a horizontal line in the middle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is something I have been struggling about for some time now. The thing
I have been struggling with this question for awhile now, and I haven't reached
OK I have been messing about with URL rewriting for the last few days
I have been struggling to create a django form which users can fill and
something I have been struggling with. I have a tablefield in a database where
I've not used C++ very much in the past, and have recently been doing
Hi all i have been struggling this for a while now! I have some
I have been struggling trying to test a super simple EJB project in netbeans.
I've been struggling with something that's probably very obvious: When I try and assign
I have been struggling to think of some decent uses for things like vectors

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.