variations in layout between Chrome/Firefox and Internet Explorer

I'm working with the following layout:-

html:-

 <header>
    <div class="content-wrapper">
        <div id="headerContainer">
            <div class="headerProfileNotifications">
                <img src="Images/" alt="notification" />
            </div>
            <div class="headerProfilePhoto">
                <img src="Images/" alt="profile_photo" />
         </div>
       <div class="headerProfileDetails">
           <div class="headerProfileName">John Smith</div>
           <div class="headerProfileEmail"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="274d484f4909544a4e534f6754484a24c">[email protected]</a></div>
      </div>
   </div>
</div>

and css:-

    header {
    padding-bottom: 5px;
   }

    #headerContainer {
    height: 33px;
    background-position: 10px 2px;
    padding-top: 2px;
   }


    .headerProfileNotifications {
    float: right;
    height: 22px;
    width: 29px;
    padding-right: 4px;
    margin: 5px;
   }

    .headerProfilePhoto {
    float: right;
    height: 33px;
    width: 22px;
    margin: 5px;
   }


    .headerProfileDetails {
    float: right;
    padding-right: 4px;
    font-size: 11px;
   }

    .headerProfileName {
    margin-top: 2px;
    float: right;
   }


    .headerProfileEmail {
    margin-top: 0px;
   }

JSFiddle

Everything looks fine in Chrome/Firefox, but there's an issue in IE, where it displays differently.

What adjustments do I need to make to the css for IE to match the appearance in Chrome/Firefox?

Appreciate your assistance and time!

Answer №1

Here is the solution you need:

  .headerProfileEmail {
    clear:both;
    float:right;
    margin-top: 0px;
   }

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

How can you utilize z-index to arrange the stacking order of two divs that belong to different files or components in Angular/

Currently, I am working on Angular and facing an issue with two separate html files belonging to different components. I am using the selector to call code from the first html file, which contains a dropdown menu. However, the dropdown menu gets overlapped ...

"Exploring the magic of Vue.js and Three.js: A guide to seamlessly changing CSS style elements within an

I'm currently in the process of converting my Three.js project to Vue.js Within my Three.js scene, I have a 3D model with HTML points of interest attached to it. It is crucial that these points remain fixed to the model and consistently face the cam ...

Sliding background in a multi-column accordion

I've hit a roadblock with this project. I'm working on setting up a FAQ section that needs to display its items in two columns on desktop, each with a drop shadow effect using Bootstrap 4. I've experimented with Flexbox and CSS columns with ...

What is the advantage of parsing values in a switch statement compared to an if condition?

function checkInput() { let value = document.getElementById('test').value; if (value == 1) { console.log("It works with if statement"); } } function checkSwitch() { let value = document.getElementById('test').value; switc ...

Updating Contact List Automatically in AngularJS after Deletion

Hey there, I'm new to AngularJs. I am looking to implement a delete button on a contact details screen. After clicking the delete button, I want to be taken back to the main contact list and have it refreshed to reflect the deletion of the contact. ...

Utilizing jQuery to toggle nested divs within identical parent divs when they contain more than three elements using the :nth-child selector

Within my HTML markup, I have created two parent div elements that are exactly the same but contain different content. My goal is to have a functionality where if a parent div has more than 3 child div elements, a "show more" text will be displayed at the ...

Converting Rich Text Format (RTF) Data to HTML: A Step-by

I have information stored in RTF Format within an MS Access Database. The format is as follows: {\rtf1\ansi\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\f ...

Utilizing Python and Selenium for Xpath, extracting text from a span tag within a web table

Struggling with this one, I've carefully gone through all previous posts before reaching out for help. The structure of the HTML web table is provided below. I am specifically interested in extracting the date from the span tag, and here are the vari ...

Click event using jQuery does not function properly on Internet Explorer

This piece of code is designed to trigger a hidden radio button by clicking on an image, which then registers an answer in the database. It works perfectly on all browsers except for Internet Explorer. Any advice on how to resolve this issue would be great ...

arranging a div after it has undergone rotation

I have an idea to create a div containing three texts, rotate it, and place it in a fixed position on the page. My goal is to make sure it fits perfectly on the screen. To achieve this, I initially created a div with height and width that were the opposit ...

angular - apply custom background styles without resorting to disabling ViewEncapsulation

I can't seem to figure out why I'm struggling to set the background of my component correctly without having to use ViewEncapsulation.None. Currently, with ViewEncapsulation.None, my styles look like this: * { margin: 0; padding: 0; ...

Error: The variable "deleted1" is not declared and cannot be used on the HTML button element's onclick

Hello, I need assistance from someone. I encountered an error message after trying to delete a row even though I have declared the button already. Error: deleted1 is not defined at HTMLButtonElement.onclick Could it be due to the script type being modul ...

Utilizing various IDs for the same image in jQuery

Is it possible to use the same image repeatedly but with different image ids? I've been encountering the issue of getting the same id repeatedly and would like a solution. $.ajax({ type : 'GET', url : urlString, dataType : &apos ...

Excessive CSS overflowing content may result in the appearance of horizontal scrollbars

Looking for help with building a jQuery panel slider on my website. I am not very experienced with JS/Javascript and cannot seem to get rid of the horizontal scrollbar on my site. Check out the demos here! The sliders are located within the Gallery and F ...

Centered iframe within a div

I am trying to center my iframe within a white box and need some assistance with this. I want the iframe to be in the middle of the white box rather than its current position at the moment. game1.html: <html> <head> <title>R ...

Having trouble with the JQuery class selector?

Having a bit of trouble trying to select an element based on its class using $(".class"), and I can't seem to figure out why it's not working. So, the deal is - I have this image element that should appear when a function gets triggered: $("#co ...

How to conceal a text input using a combobox

How can I hide the following input field: <input type="text" class="form-control" name="c_a" id="c_a" value="$" > when I select: <option value="img/p.png">Paid</option> from the combobox? I have used this form, thank you to everyo ...

Learn to Generate a Mathematical Quiz with Javascript

For a school project, I am tasked with developing a Math Quiz which showcases questions one at a time. The questions vary in type, including Multiple Choice, Narrative Response, Image Selection, Fill in the blank, and more. I require assistance in creatin ...

Embedding JavaScript code onto a webpage in order to deactivate a text box

Within my aspx page, I currently have an asp button that, when clicked, should trigger the disabling of a specific textbox using javascript. The goal is to inject this functionality directly into the web page. $(document).ready(function () { $('# ...

Stop angular material css styles from affecting neighboring components

Currently, I have overridden the angular material style in my global SCSS style as follows: .mat-form-field-infix{ padding: 0.5em 0 0.5em 0 !important; } However, I now need to apply a different padding to the same element in my component for addition ...