What’s really nice about this set up is that it draws you in, but is far from being cheesy or over-the-top. The display inline-block is a major factor to align the image and border properly. In box model, border comes between margin and padding. HTML colors, text, background and border color HTML colors are used to give a specific web page design, highlight certain words or paragraphs, a proper contrast, etc. The CSS border property is used to define a border for an element. Align Text Vertically Center with CSS vertical-align Property. Add the line-height property to the element containing a text larger than its font size. Silhueta da face do Maujor seguida do texto Maujor o dinossauro das CSS. CSS border-style property specifies what kind of border to display. In this article, we’ll see how to place text over an image using HTML and CSS. Set up the desired attributes to get the CSS code. I've created an animated gradient border using CSS3 gradients and animations. The times of using border-bottom instead of a proper text underline in order to get a different underline color may finally come to pass. The syntax of CSS border property is as follows− Syntax Selector { border: /*value*/ } Example. Also, we give all the