<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 ^.^
<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 ^.^
This page (http://blog.themeforest.net/tutorials/vertical-centering-with-css/) provides some good input on the subject.
Put the <div> you want to align in another <div>.
In that one use vertical-align: middle. Hope that helps.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.