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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:08:17+00:00 2026-06-09T09:08:17+00:00

I have a div with outline set using jQuery. It’s working fine in Chrome

  • 0

I have a div with outline set using jQuery. It’s working fine in Chrome but not working in IE.

I know outline does not work in IE6 and IE7, but it’s also not working in IE8 and IE9.

I have a div FormContainer in which other div’s are placed when i click on a particular div I want to get it highlighted so on click I set focus of that div and handling focus event like this:

$('.FormContainer div').focus(function (e) {    
        if ($(e.target).hasClass('QuestionText') == false) {    
            $(this).css({ 'outline': 'black auto thin' });
            $(this).find('.buttonControl').show();    
            $(this).find('.buttonControl').css({ 'border': '1px solid black', 'border-bottom': 'none' });    
            $(this).addClass('FocusDiv');    
        }    
        e.stopImmediatePropagation();    
    });

All other css is working fine, but only $(this).css({ 'outline': 'black auto thin' }); is not working out. It’s working fine in Chrome but can’t get it work in IE8 and IE9.

  • 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-09T09:08:19+00:00Added an answer on June 9, 2026 at 9:08 am

    This works in IE8:

    $('div').css({'outline': '1px solid blue'});​
    

    You can test it here:

    http://jsfiddle.net/MCPHX/1/

    Update
    The part that IE doesn’t like is “auto” within the value for outline. So use black solid thin instead.

    BTW, this is shorthand for {'outline-width': 'thin', 'outline-style': 'solid', 'outline-color': 'black'}

    Standard accepted values for these properties can be found here: http://www.w3schools.com/css/css_outline.asp

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

Sidebar

Related Questions

I have a problem with selecting the correct element using the .delegate method. <div><span>Some
I have not found a solution yet... I tried everything border:0; border:none; outline:none; without
I have a jQuery datatable(outlined in red), but what happens is that the table
I have: I have several web pages both with this outline: <body> <div id=container>
I have a div and I've tried to set the height to 100% so
I have the following problem. I have a div ( id = outline )
I have the following HTML: <div id=showDropZone class=ui-droppable style=position: absolute; z-index: 1; outline-style: none;
I have DIV element which only has a few lines in and a background
I have div class=contentBlock which is treated as the container for updating <div class=contentBlock></div>
I have div ( #child ) which won't expand to the full height of

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.