kwaakwang kwaakwang - 6 months ago 14
HTML Question

paste image on between border and background in html?

I will create page follow image but I can't.

enter image description here

this image is page that I created.

enter image description here

I coding .css file follow this code for orange border.

> p {background-color: #ff6138;
width: 1535px;
height: 200px
}


How to make user image display half between orange border and white background?

Answer

Try to use negative margin-top for avatar img tag, something like

img#avatar {
    margin-top: -50px;
}

(50px value is just ballpark and you need to adjust it)