<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

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

Jump to Post

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.