Solved

Firefox incorrectly rendering Elements outside of Parent

Posted on 2010-11-19
1
307 Views
Last Modified: 2012-05-10
I run into this problem quite often with Firefox only. My code is below, but what is actually happening in the browser is different (see screenshots from Firebug and Webkit inspector). As you can see, the <h2> is displaying inside the <dd> just fine, but the <h3> is jumping outside of the <dt>. Why?

<div class="meta">
  <dl>
    <dt class="label"><h3>Label</h3></dt>
      <dd><h2><a href="">Lorem</a></h2>&#44;</dd>
      <dd><h2><a href="">Ipsum</a></h2>&#44;</dd>
      <dd><h2><a href="">Dolor</a></h2>&#44;</dd>
      <dd><h2><a href="">Sit</a></h2>&#44;</dd>
      <dd><h2><a href="">Amet</a></h2>&#44;</dd>
      <dd><h2><a href="">Laborem</a></h2>&#44;</dd>
    <dt class="label"><h3>Label</h3></dt>
      <dd><h2><a href="">Lorem</a>&#44;</h2></dd>
      <dd><h2><a href="">Ipsum</a>&#44;</h2></dd>
      <dd><h2><a href="">Dolor</a>&#44;</h2></dd>
    <dt class="label"><h3>Label</h3></dt>
      <dd>Lorem</dd>
    <dt class="label"><h3>Label</h3></dt>
      <dd>Ipsum</dd>
    <dt class="label"><h3>Label</h3></dt>
      <dd>Dolor</dd>
  </dl>
</div>

Open in new window



firebug

webkit
0
Comment
Question by:uzzidesign
1 Comment
 
LVL 6

Accepted Solution

by:
uzzidesign earned 0 total points
ID: 34177026
nm. I guess <dt> doesn't follow the same rule as <li>. guess I should have validated it first.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Secure Connection Failed - Sonicwall FW 1 62
yahoo Hacks 9 95
Error in script 11 48
How to count in a table in php 22 19
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now