Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

reseting some elements in html webpage?

if i have some markup like this

<div id="d1">.....</div>

<div id="d2">a large dom tree lays here </div>

i know nothing about d1 however i have to make sure that d2 has no margin and padding or border

i tried #d2,#d2 *{margin:0 .............} but this failed me

what to do ................

1 Answer

Relevance
  • 8 years ago
    Favorite Answer

    try have this on the code "<div id='d2' style='margin:0;padding:0;'>......</div>"

Still have questions? Get your answers by asking now.