ASP.Net style css etc.
20-Jun-1313 Leave a comment
How to change width of out of box Visual Studio ASP.Net WebForms application
Took a while to work this out. In the Site.Master there is:
<body>
<form runat="server">
<div class="page">...
</div>
If you go to the class=”page” definition on the Site.css you may see a width. This seems to have no effect. I do not know why.
- Instead use split view and see on the bottom the different selections e.g.
- then with properties showing select
- then use the style property
- potion
- width e.g. 90 %
This may also be achieved in the source on the div tag:
<div class=”page” style=”width: 90%”>
Solved