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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:56:42+00:00 2026-05-21T09:56:42+00:00

I usually use this to get a one-px high separator line between paragraphs <style>

  • 0

I usually use this to get a one-px high separator line between paragraphs

    <style>
    .narrow_red_hr {color:  #ffa0a0;  background: #ffffff;  border-left-style:none;  height: 1px;}
    .hr3 {
    margin: 10px 0px 10px 0px;
    height: 1px;
    background: #00ff00;
    width: 100%;
    font-size: 1px; /* IE 6 */
    }
    </style>
    <script type="text/javascript">
    function separator(){
    if (BrowserDetect.browser == "Explorer"){
    document.write('<hr class="narrow_red_hr">');
    } else {
    document.write('<div class=hr3></div>');
    }
    }
    </script>

It usually comes out as I want it, like this:
http://e-dog.info/tmp/correct.bmp

On one page it comes out like this, though, in IE:
http://e-dog.info/tmp/unwanted.bmp

It should be red and one px high, but here, in IE, it comes out as grey and has an unwanted left margin (about 1 px high) in grey. (This styling is only made in IE-browser)

I am not so good with CSS inheritance and how earlier style declarations can affect later. There are several preceding style sheets, I read through them and cannot find any declaration for the hr tag. My guess is that the hr tag has inherited a property somehow. (It is grey like the surrounding text?)

How do I tackle this problem?

I want to rid the hr tag of all previous style declarations or I want to overwrite the declaration giving the wrong color and unwanted left margin. (That’s why I tried giving it background #ffffff, f.ex.)

I am very grateful for all assistance, I am no a trip though and it may take a little while before I can reply. I will definitely appreciate and consider all advice thoroughly, thanks. 🙂

  • 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-21T09:56:43+00:00Added an answer on May 21, 2026 at 9:56 am

    As seen under the comments to the first post, the replies by Jamie Dixon and Xavier Holt hold the answer to the question, thanx guys. Using the border-top (or bottom) property is better than using the whole div like the CSS I had in my first post.

    A 1px high, X-browser, horisontal line (for f.ex. separating paragraphs) can thus be obtained by:

    <div style="border-top: solid 1px #ffa0a0; margin: 10px 0px 6px 0px;"></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I usually use this line to import file from out of the current folder
When I select an element by name in Javascript, I usually use this code:
I usually use like this $ find -name testname.c ./dir1/dir2/testname.c $ vi ./dir1/dir2/testname.c it's
I usually use a boolean 'firstTime' like this: in C++: bool firsTime = true;
For this code example below, usually I would use [self fall]; instead of the
This is my string: <span class=word>blue</span><span class=word>red</span><span class=word>yellow</span><span class=word>orange</span> Usually I would use this
I haven't play enough with this and usually use mocks, but I wonder what
I usually use the interface Parcelable to pass data from one Activity to another.
I usually use simple quotes, but sometime I get very long lines which I
We usually get a servlet-api.jar along with web/app server. Does each one have its

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.