Click to See Complete Forum and Search --> : How do you access an asp:button in css


rutledj
01-28-2007, 07:07 PM
If I have this arrangement

<div class="classA">
<asp:Button ID="cmdLogin" runat="server" Text="Submit" />
</div>

In css, how do you access the button?

I've tried .classA Button
.classA asp:Button
.classA cmdLogin

None of these seem to work.

Thanks,
Rut

ray326
01-28-2007, 10:24 PM
input#cmdLogin {}

rutledj
01-29-2007, 06:58 AM
Thanks but that doesn't seem to work either. I'm trying to set this button to appear centered within the panel it is located in.

I'm using text-align: center;

Is there another way?

Rut

ray326
01-29-2007, 02:17 PM
You'd use that on the container. At any rate you need to work against the generated HTML, not the ASP source.