Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, 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

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

div element within div element does not align properly

  • 1 freagra
  • 6 leis an bhfadhb seo
  • 56 views
  • Freagra is déanaí ó cor-el

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.

Réiteach roghnaithe

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)

Réiteach Roghnaithe

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.