<body>
<div style="height:100; width:100%; background-color:black">
 hello.
</div>
</body>

I want to put it in the middle of the page, how can I do it? ty ^.^

Recommended Answers

All 2 Replies

Put the <div> you want to align in another <div>.
In that one use vertical-align: middle. Hope that helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.