Press ESC to close

Or check our Popular Categories...

vertical-align

3   Articles
3
3 Min Read
0 1

PROBLEM: We have the following CSS and HTML code: [pastacode lang=”markup” manual=”%23header%20%0A%7B%0A%20%20height%3A%20150px%3B%0A%7D%0A%3Cdiv%20id%3D%22header%22%3E%0A%20%20%3Ch1%3EHeader%20title%3C%2Fh1%3E%0A%20%20Header%20content%20(one%20or%20multiple%20lines)%0A%3C%2Fdiv%3E%0A” message=”html code” highlight=”” provider=”manual”/] The header section is fixed height, but the header content may change. We would…

Continue Reading
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