Centering controls on a Web Form

J

Joe Bonavita

I'm sure this is a stupid question but I'll ask anyway :)

Is there a way to center controls on a Web Form? I notice Dreamweaver
centers the controls by default.

The problem I have is if I have 2 images on 2 seperate panels they display
differently with different resolutions.
 
A

Alan Corbett \(.NET MVP\)

You could always put the controls inside an html table and set the TD's to
align=Center.

<table width=100%>
<tr>
<td align=center>SomeControl</td>
<td align=center>SomeOtherControl</td>
</tr>
</table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top