Solved

Firefox incorrectly rendering Elements outside of Parent

Posted on 2010-11-19
1
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

688 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