Home >Web Front-end >HTML Tutorial >CSS controls the horizontal and vertical centering of divs on the page_html/css_WEB-ITnose
#silverlightControlHost {
height: 200px;
width: 300px;
left:50%;
top :50%;
margin-left:-150px;
margin-top:-100px;
position: absolute;
text-align: center;
}
Modify the value of
as needed
height: 200px;
width: 300px;
and
margin-left:-150px;
margin-top:-100px;