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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:53:33+00:00 2026-06-14T17:53:33+00:00

I want to put an outline-color into a textbox when user types something wrong

  • 0

I want to put an outline-color into a textbox when user types something wrong onto it. The problem is IE8 does not support the outline attribute (at least I test with no succeed) so I use border instead:

But I’d like to use border for IE8 and outline for browsers that support it.

.myclass
{
  border: ; // IE8 should use this
  outline: ; // Browser that support it must ignore the above one and get this.
}

I tested with IE8 and Chrome and both attributes are applied in Chrome and only the border in IE8.

Example:

.myclass
{
  border: 1px solid red;
  outline:#00FF00 dotted thick;
}

http://jsfiddle.net/puD97/

Thank you.

  • 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-14T17:53:35+00:00Added an answer on June 14, 2026 at 5:53 pm

    Who said IE8 doesn’t support outline property?

    Still if you want different styles for IE and other browsers use IE specific stylesheets using IE specific cstylesheet comments

    <!-- This will be ignored by all browsers but IE -->
    
    <!--[if IE]>
        <link rel="stylesheet" type="text/css" href="ie-only.css" />
    <![endif]-->
    

    Or target any specific IE versions

    <!--[if IE 8]>
        <link rel="stylesheet" type="text/css" href="ie7.css">
    <![endif]-->
    

    Or in your page use this

    <!--[if IE 8]>
        <style>
          /* Styles goes here */
        </style>
    <![endif]-->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to put the name of the loggedin user as the title of
I want to put the apk file into the Kindle Fire storage(through USB cable)
I want to put all my resources into a ClientBundle for easy management. So
I want put a value from front of the list into an another list
I am struggling with an idea I want put into a python script. I'm
Suppose, I have very large foreach loop. I want put this loop into try
I've got a value type that I want put into a map. It has
Hi I want put these values into hash and also retrieve them. c={} a={cat=>
There is an svg file I want put into my cfm page. Safari can
I want put a button on android edittextpreference. I create a custom editextpreference: public

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.