简体   繁体   中英

How to align the user control position on webbrowser control in C#

I have created a web browser control and a form user control. How to align form user control is a center on web browser. Please look above of image.Thanks.

http://i200.photobucket.com/albums/aa41/xuanhung123/Untitled3.png

You can put that in a div and mention styles for div as follows

<div class="divUserCtrl">
   <!-- put your control here-->
</div>

and in the CSS

.divUserCtrl
{
  margin:0 auto;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM