Nibirue
Nibirue

Reputation: 411

How to reference this line in CSS, HTML

I am still new to CSS and HTML in general, so my knowledge is limited. I want to move some style code into css out of my HTML code. I have this:

<fieldset class="login"> 
   ...
   <asp:Button class="mybutton" ID="_login" runat="server" Text="Login" style="float:right; margin-right:20px;"/>
   ...
</fieldset>

And in CSS i reference the entire login box like this:

fieldset.login
{
    ...
}

but what I can't figure out is the equivalent of "fieldset.login" so that I can reference the <asp:Button> line. I've tried

fieldset.login Button {}

And other things similar, but they don't seem to work for me. Thanks for your help.

Upvotes: 1

Views: 259

Answers (1)

illinoistim
illinoistim

Reputation: 446

You should be able to use this:

fieldset.login .mybutton{
...
}

Upvotes: 3

Related Questions