IE7: The Case of the Missing h3 Element

Everything on my webpage looks great in Safari, Chrome, Firefox, and even degrades gracefully in IE8. However, my client insists on compatibility with IE7 as well.

The only issue I'm facing is with my H3 element. Oddly enough, my H2 works perfectly fine. It's not a matter of losing style; the H3 just doesn't appear at all! Despite trying various solutions like adding zoom:1, the problem persists. My theory is that it might be related to the nested divs...

I've experimented with different doctypes without success:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">   

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  

<!DOCTYPE html>  

Here's my fiddle (with more complete code), with a section provided below: http://jsfiddle.net/cathi/2Kkh2/18/ (strangely, it seems to function properly here - unfortunately unable to access jsfiddle on the machine running IE7. Strange...)

h2 {
    color:#007cc0; 
    font-size:1.4em;
    line-height:1.9em;
    font-family:'Tahoma',Helvetica,Arial,sans-serif;
    margin-top:0;
    margin-bottom:10px;
    padding-top:0;
    padding-left: 35px;
    padding-right: 8px;
    padding-bottom:0;
    font-weight:normal;
}

h3 {
    color:#ea752e; 
    font-size:1.4em;
    line-height:1.9em;
    font-family:'Tahoma',Helvetica,Arial,sans-serif;
    margin-top:0;
    margin-bottom:0px;
    padding-top:0;
    padding-left: 35px;
    padding-right: 8px;
    padding-bottom:0;
    font-weight:normal;
}

and, the html structure (reproduced partially):

<div class="content-intro">
  <h2>This is where my functioning H2 resides in IE7</h2>
<p>An introductory paragraph goes here</p>
</div>
<div class="content-checklists">

This problematic H3 does not display correctly in IE7

Answer №1

The reason for the unusual display you're witnessing is due to IE7's unpredictable behavior when dealing with floats. This causes your <h3> tag to shift below the icon image, and because of the overflow:hidden property on the parent element, it remains hidden (unless manually scrolled into view).

To resolve this issue, consider removing the width:97% declaration within your .content-checklists-title definition.

This adjustment should maintain the desired layout in other browsers while preventing IE7's idiosyncrasies from affecting the display.

I hope this solution meets your needs! If not, feel free to reach out for further assistance!

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

Utilizing SQL and Python within a web environment

Can you help me with a question? I have created Python scripts in Spider where I pull data from SSMS using SQL commands and then manipulate it using Python. Now I want to run these codes on a webpage or other online platforms so that others can use them ...

Exploring the `zoom` CSS attribute and adjusting font sizes on Safari

While my website is somewhat responsive on desktop, the display on iPad or tablet-sized devices leaves much to be desired. Despite having an acceptable layout, everything appears too large, making navigation difficult. It's worth noting that my websit ...

How to perfectly align a full-width div with a div of specific width

Consider this scenario: .d1 { width: 100px; float: left; } .d2 { width: auto; float: left; } <div class="d1">Fixed Content</div> <div class="d2">This content should expand to fill the rest of the page vertically.</div> This setu ...

Utilizing CSS Flexbox for both desktop and mobile layouts

As I venture into the world of FLEXBOX, I find myself pondering a layout challenge that involves both Desktop and Mobile views. The content I need to display consists of labels and corresponding data (not part of a form). For Desktop view, my vision is f ...

Tips for displaying a div near the cursor's location when hovering in React JS

Looking for a way to show a hidden div at cursor position when hovering on Text item1 or item2. Check out the sample GIF animation in this Link My attempt using Jquery code inside React resulted in an error: $(".text-item").mouseenter(function ( ...

Arrange two divs side by side

Is there a way to align the two divs below side by side? <div style="display:inline;float:left;"> <img src="Imagens/myimg.png" /> </div>'; <div style="display:inline;float:left;"> <img src="Imagens/myimg2.png" /> ...

Angular noticed a shift in the expression once it was verified

Whenever I try to invoke a service within the (change) action method, I encounter this issue: ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ng-untouched: true'. Cur ...

Instructions for inserting an image inside an <li> tag

I am looking to insert an image inside an <li> element without affecting the size of the <li>. The image should be positioned in the top-left corner with no margin from the top, bottom, or left edges, as shown below: https://i.sstatic.net/LIBw ...

Adjust the spacing between two elements "p" in a single row using flexbox

#imprint { background-color: black; color: #FFFFFF; display: flex; flex-wrap: wrap; padding: 15px; justify-content: center; } <article id="imprint"> <p>test</p> <p>test</p> </article> Is ...

Using Column CSS Property with Google Maps in Chrome: A Potential Bug?

I'm facing an interesting issue and I could use some help understanding or fixing it. It seems like there might be a bug or a solution to this problem. I am currently working on a layout using the CSS3 property columns. Everything looks fine in Firefo ...

Implementing a dropdown menu within a Bootstrap navbar

Currently, I am working on developing a website and decided to kickstart the project by using the dashboard example provided on the Bootstrap website. However, I encountered an issue when trying to integrate a dropdown into the navbar. It seems that the dr ...

How to prevent child elements from overlapping the max-width of their parent in HTML using flexbox [screenshot provided]

Can someone help me create this CSS layout? The parent div has a max-width of 1500px, uses display flex, and has a gap of 18px. It contains two children with IDs #text and #news... the news child is designed to overlap and touch the right edge of any scree ...

How to avoid an additional carriage return in Internet Explorer when editing a Textarea?

In Internet Explorer, we are facing an issue with a multiline textarea. After setting the content using JavaScript and checking it, everything appears correct without any additional carriage returns in the textarea: document.getElementById( 'text-ar ...

Latest FF 35 showing alert for blank field in HTML5 email input box

My form includes an email input field with a default value. When the user focuses on the field, it clears out if the value matches the default one. Upon blurring the element, the default value is restored if the field remains empty. In Firefox 35, clickin ...

A guide to implementing scroll overflow in the middle section of an Angular application using Flexbox

Struggling with implementing scrolling in my Angular application using Flexbox. Despite reviewing numerous flex examples, I am unable to achieve the desired scroll effect on a specific section. This is more of a question related to Flexbox rather than Angu ...

Separate line rendering of checkboxes in CSS and Vue

I am struggling with styling Vue checkboxes to display side by side until they wrap to a new line. I have tried modifying the code structure, but the existing CSS classes are causing issues. I have created a simplified example on CodeSandbox. Here is a sn ...

How to Restrict the Number of Rows Displayed in an Angular 4 Table

Currently, I am faced with a situation where I have a lengthy list of entries that I need to loop through and add a row to a table for each entry. With about 2000 entries, the rendering process is slowing down considerably. Is there a way to limit the disp ...

Transferring Information between a Pair of Controllers

Currently, I am utilizing angular version 1.x and faced with the challenge of sharing data between two controllers. In my mainctrl, I am working with the above model. The radiotmplt.radiohead=='IRU600v3' is utilized in firstctrl. Unfortunately, ...

Tips for utilizing string functions to sanitize array variables

I have a PHP code snippet for an HTML form: if(isset($_POST['job_title'])){ foreach($_POST['job_title'] as $selected) { $job_title[] = $selected ; } $job_title = json_encode($job_title); $job_title = clean_string($job_titl ...

Using Angular 5 within the Spring Tool Suite environment

I primarily use Java for my backend development in Spring Tool Suite. I was wondering if it's possible to also code in Angular 5 using STS or if Visual Studio Code is necessary. If anyone has experience with connecting Angular CLI to STS, I would grea ...