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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:48:10+00:00 2026-05-20T18:48:10+00:00

This is interesting. The attached very simple code gives nice ‘background highlighted’ text in

  • 0

This is interesting. The attached very simple code gives nice ‘background highlighted’ text in Firefox, but displays no highlighting in IE7 (and possibly others, not yet tested).

The use of such inline elements is important because I’m using them in a grid to highlight important words etc.

Test.html

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" href="Test.css" type="text/css" />
</head>
<body>
This is <hlr>a test</hlr> of the <hlr>highlighting</hlr>
</body>
</html>

Test.css

/*RED Highlighted text.*/
hlr
{
    background-color: #FF5555;
    font-weight: bold;
    font-size:100%;
}

Bizarre! Any thoughts on how to remedy it?

  • 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-20T18:48:11+00:00Added an answer on May 20, 2026 at 6:48 pm

    hlr is invalid markup. Try this instead:

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <link rel="stylesheet" href="Test.css" type="text/css" />
    </head>
    <body>
    This is <span class='hlr'>a test</span> of the <span class='hlr'>highlighting</span>
    </body>
    </html>
    

    then:

    /*RED Highlighted text.*/
    .hlr
    {
        background-color: #FF5555;
        font-weight: bold;
        font-size:100%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is very interesting to me... This image displays perfectly well in Safari, but
i have a very interesting problem. background i've used TTreeView for years but only
Attached Firefox to fiddler and got following error. What would cause this error? Interesting
Has anyone used TUDBC ? This looks interesting, but I wonder how valuable it
This is a bit of a stretch, but I have an interesting (to me)
(I asked this question in another way , and got some interesting responses but
This is interesting, sorting links by content , but how would you go about
Reading about the G.729 codec , I found this interesting tidbit about Comfort Noise
This is an interesting conundrum. We have a WPF app that has a Vista-like
This might be an interesting question. I need to test that if I can

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.