Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

div element within div element does not align properly

  • 1 reply
  • 6 have this problem
  • 3 views
  • Last reply by cor-el

more options

When I create a div element within a div element with the same top, left and width dimensions it is necessary to add a -2px correction to get the two divs to overlay exactly.

See html code that demonstrates this in the troubleshooting information. Run as is once and then uncomment the line that is commented out and comment out the current line.

When I create a div element within a div element with the same top, left and width dimensions it is necessary to add a -2px correction to get the two divs to overlay exactly. See html code that demonstrates this in the troubleshooting information. Run as is once and then uncomment the line that is commented out and comment out the current line.

Chosen solution

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

Read this answer in context 👍 0

All Replies (1)

more options

Chosen Solution

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.