IE is notorious for not playing well with CSS

I am facing an issue with my Google search box code. It works perfectly on Firefox, Chrome, and other browsers except for Internet Explorer. Can anyone help me troubleshoot this?

Below is the code snippet:

Abulkas Tablet


#outerContainer{
    width: 350px;
    height: 60px;
    border-radius: 10px;
    box-shadow: 0 0 5px 1px #888;
    display: block;
}
.buttonwithimg {
    background: url(google-g-logo-2012.png) no-repeat;
    cursor: pointer;
    border: none;
}

.googleButton{
    position: relative;
    left: 5px;
    width: 40px;
    height: 50px;
}

#srchBox{
    border-radius: 3px;
    margin-left: 8px;
    height: 50px;
    width: 200px;
    margin-top: 5px;
}

.otherButton{
    width: 43px;
    height: 50px;
    .background { 
        width:150px; 
        height:150px; 
        padding:3px; 
        background-image:url(andro-view-tools/Transform-galaxy-s2-to-galaxy-s3.jpg); 
        border: 1px solid black; /* Safari and Chrome */
        -webkit-background-size: 190% 160%; /* Firefox */
        -moz-background-size: 190% 160%; /* Internet Explorer */
        -ms-background-size: 190% 160%; /* Opera */
        -o-background-size: 190% 160%; /* CSS3 */ 
        background-size: 190% 160%; 
    }
}

</style>
   <div class="background">
       &nbsp;<div id="outerContainer" style="width: 342px; height: 63px">
            &nbsp;&nbsp;<button class="buttonwithimg" style="width: 59px; height: 57px">;
                </button><input id="srchBox" type="search">    
                   <button>class="otherButton" style="width: 59px; height: 52px">Search</button>
      </div>
         </div>   
           </body> </html>

Answer №1

Discover the "hack" for box-shadow in Internet Explorer by visiting this link

Answer №2

Internet Explorer does not have built-in support for the box-shadow property.

To address this issue, I suggest utilizing a tool like CSS3Pie.

Furthermore, it seems that IE9 does not require a prefix for the background-size property, making the use of -ms-background-size unnecessary. Keep in mind that IE8 does not support background-size at all, even with a prefix. To enable support for IE8, you can try using a jQuery hack available at: https://github.com/louisremi/jquery.backgroundSize.js

For an easy way to check which features are supported by various browsers, I recommend visiting CanIUse.com.

I hope this information proves useful to you.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Populate a map<object, string> with values from an Angular 6 form

I'm currently setting keys and values into a map from a form, checking for validation if the field is not null for each one. I am seeking a more efficient solution to streamline my code as I have over 10 fields to handle... Below is an excerpt of my ...

Why is the image popup feature not functioning properly? What could be causing the issue?

I'm experiencing issues with the functionality of my HTML file and image popup. I've attempted to troubleshoot it multiple times without success. Here is a code snippet for reference: You can view and run the code on CodePen: Open <html> ...

Methods for Expanding a Div within an Oversized Row, Despite Height Constraints

I have a situation where I need to adjust the height of a cell in a table. One of the cells contains a larger element that causes the row to expand vertically. I also have another cell with a div element set to 100% of the cell's height. However, I wa ...

Check to see if a div element with an id that contains a numerical value has been

My HTML code contains X elements, each with an ID in the format: viewer_mX In this case, X is a number ranging from 1 to m (where m varies). I am looking to utilize JavaScript to retrieve the respective element's number X when a user clicks on one ...

Using a combination of AND and OR in XPATH

Recently, I encountered the following HTML code: <div><h6>abc/h6><p>date</p></div> Using Selenium, I managed to locate this element based on text. However, the issue arises when <h6> can contain various words like "d ...

Understanding and processing HTML strings in typescript

I am currently utilizing TypeScript. Within my code, there is an object named "Reason" where all variables are defined as strings: value, display, dataType, and label. Reason = { value: '<ul><li>list item 1</li><li&g ...

Having trouble rendering an HTML webpage using Flask's RESTful API? Your webpage might be displaying improperly

Trying to display an HTML page on local host using a restful flask API. The content of the HTML page appears as a string with "" instead of rendering the actual page. class data(Resource): def get(self): #return "Welcome!" return rende ...

Photo displayed above the carousel using Bootstrap

I'm currently in the process of building a website using the template found at . However, I'm having trouble placing an image in the center of the carousel, above the slides. Here is the code snippet I have tried so far: <div style="positi ...

Validation is not being enforced for the input field labeled as 'name' in the form

Can anyone assist me with a form validation issue I'm encountering while working on my project? The validation is functioning correctly for email and institution fields, but it seems to be ignoring the name field. Any suggestions or help would be grea ...

How to access a webpage on your Android device without the address bar visible

My question relates to sending Push Notifications through OneSignal. Upon clicking a push notification, it automatically redirects the user to my website. Is there a way to hide the address bar on the browser when this happens? I attempted using the follo ...

Restoring text boxes to their original styling

I've been working on a jQuery script that scans through form input elements and turns their border color to red if they are empty. When the submit button is pressed, it reassesses the elements; this time I'm trying to revert the textbox back to i ...

What are the advantages and disadvantages of using the picture element in web design?

What advantages and disadvantages come with using the HTML5 picture element? Specifically, does the browser download all images or only the image that matches the media query? ...

Creating a loading screen in Angular2: Step-by-step guide

How can you best integrate a preloader in Angular 2? ...

css: Aligning fonts horizontally when they have varying sizes

First time asking a question on this platform! I'm attempting to achieve a "pixel perfect" horizontal alignment of two lines of text, with each line having a different font size. <style type="text/css"> * { font-family: sans-serif;} ...

Using Multiple SCSS Files to Reference a Centralized Style Sheet

I am currently developing a React application and facing an issue with my SCSS files. I have three SCSS files, one main file that contains theme variable colors, and the other two are located in component folders. When I import the main SCSS file into the ...

Being required to design a distinct div for every article I am extracting from the API

In the midst of developing a website for my college project, I have successfully configured my news API to pull and display data using JavaScript. Currently, I am faced with the challenge of having to create separate div elements each time I want to add n ...

Continuous horizontal columns

Is there a way to create horizontal columns with inline-blocks, like the method described here, without having vertical gaps between items on the second line due to different heights? I want to eliminate the vertical gaps between the tiles using only CSS. ...

Implementing full-window mask when hovering over a div

I've been grappling with creating a mask that covers an image within a div, but I can't seem to get it to cover the entire area without leaving whitespace in the middle. I've tried various solutions to fix it, but nothing has worked so far. ...

Make sure the image is aligned in line with the unordered list

I've been having trouble trying to display an image inline with an unordered list. Here's the HTML code: <div class="customer-indiv man"> <a class="customer_thumb" href="/fan/332profile.com"> <img src="http://i.imgur.com/Wi ...

Ways to choose an option from a drop-down menu without the select tag using Selenium

I'm looking to perform automated testing with Selenium using Java but I'm facing an issue when trying to select an item from a dropdown list. The HTML structure does not include a select tag for the drop-down menu items (such as Auth ID and Corre ...