How do I position one image on top of another in HTML?

前端 未结 10 1365
难免孤独
难免孤独 2020-11-22 17:15

I\'m a beginner at rails programming, attempting to show many images on a page. Some images are to lay on top of others. To make it simple, say I want a blue square, with

10条回答
  •  失恋的感觉
    2020-11-22 17:20

    @buti-oxa: Not to be pedantic, but your code is invalid. The HTML width and height attributes do not allow for units; you're likely thinking of the CSS width: and height: properties. You should also provide a content-type (text/css; see Espo's code) with the

    Leaving px; in the width and height attributes might cause a rendering engine to balk.

提交回复
热议问题