Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Class, “margin-top” !?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39407
    Kosler
    Member

    Why does not “margin-top: 10px;” when we apply a class?

     asd 
    . test
    {
    margin-top: 10px;
    }

    and does not work …

    #108052
    TheDoc
    Member

    Spans are inherently inline. Margins can only be used on block elements.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.