Press ESC to close

Or check our Popular Categories...

CSS

42   Articles
42

CSS – Cascading Style Sheets is a style sheet language used for describing the look and formatting of HTML (Hyper Text Markup Language), XML (Extensible Markup Language) documents and SVG elements including (but not limited to) colors, layout, and fonts.

6 Min Read
0 0

PROBLEM To align the text contents of this div vertically center. [pastacode lang=”css” manual=”%23box%0A%7B%0A%20%20height%3A%2090px%3B%0A%20%20width%3A%20270px%3B%0A%20%20background%3A%20%23001%3B%0A%20%20font-size%3A%2048px%3B%0A%20%20font-style%3A%20oblique%3B%0A%20%20color%3A%20%23FFF%3B%0A%20%20text-align%3A%20center%3B%0A%20%20margin-top%3A%2021px%3B%0A%20%20margin-left%3A%205px%3B%0A%7D%0A%3Cdiv%20Id%3D%22box%22%3E%0A%20%20Lorem%20ipsum%20dolor%20sit%20amet%2C%20consectetur%20adipiscing%20elit.%0A%3C%2Fdiv%3E%0A” message=”css align code” highlight=”” provider=”manual”/] SOLUTION 1: This approach can only works for a single line…

Continue Reading
X