Design and CSS styles
Version 5.x > Design and CSS styles > Logon Form Text color View modes: 
User avatar
Member
Member
rtapia-pragmatica.com - 10/18/2010 11:32:14 PM
   
Logon Form Text color
Hello

I have changed the background to black
but i dont know how change the text color for the labels: "user name" and "password "

thank you

User avatar
Member
Member
gavin.eggheaddesign - 10/19/2010 3:15:00 AM
   
RE:Logon Form Text color
Hi

Which login form are you referring to? the CMS login screen or the login webpart?

have you tried targeting the id 'LogonDialog' then label?


#LogonDialog label {
color: #fff;
}


Hope this helps

User avatar
Member
Member
rtapia-pragmatica.com - 10/19/2010 9:54:12 AM
   
RE:Logon Form Text color
Gaving

i must add this code in the css style?

thank you

User avatar
Kentico Support
Kentico Support
kentico_radekm - 10/19/2010 4:06:21 AM
   
RE:Logon Form Text color
Hello.

I suppose you refer to Kentico logon screen (when you want login to CMSDesk or Site Manager), am I right?

If so, "LogonTextBox" class is applied to these textbox controls, so you can write required stylesheet into this class name.

Or, you can change class name or define style for these control directly in \CMSPages\logon.aspx file.

Best Regards,
Radek Macalik

User avatar
Member
Member
rtapia-pragmatica.com - 10/19/2010 9:25:31 AM
   
RE:Logon Form Text color
I an¡m refering LogonForm webpart

thanks and best regards!!

User avatar
Member
Member
rtapia-pragmatica.com - 10/19/2010 9:53:07 AM
   
RE:Logon Form Text color

I have changed this section but is not working

/*#Global/Logon form#*/
.LoginPanelPasswordRetrieval input[type="submit"]
{
width: 120px;
}

.LogonTextBox
{
width: 150px;
color: white;
}

User avatar
Member
Member
gavin.eggheaddesign - 10/21/2010 3:31:37 AM
   
RE:Logon Form Text color
Hi

Try setting the colour as i have in my original reply. the CSS class '.LoginTextBox' is setting the colour of the text within the textbox and not the label beside it.

Hope it helps but let us know if you still have trouble.

Thanks

User avatar
Member
Member
rtapia-pragmatica.com - 10/27/2010 6:46:57 PM
   
RE:Logon Form Text color
Thank you

Ill try explain my problem

body
{
background-color: black;


all back ground is black but


the logon Form and and others webparts the text color is black and i woud like appear in white and i dont find how

thank you

User avatar
Member
Member
gavin.eggheaddesign - 10/28/2010 2:56:50 AM
   
RE:Logon Form Text color
Hi

Ok generally for the whole site - have you tried setting the colour within the body tag to white? 'color: #fff;' this should set the main bulk of text. Then it will be a case of seeing what has not changed and finding out why (colour probably set somewhere else in CSS)

Did the other bit of code in one of my previous messages work for the label within the logon form?


Thanks

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/8/2010 3:37:52 AM
   
RE:Logon Form Text color
Hello.

So, you want to change background color and foreground color of "User name" and "Password" labels on Logon form web part?

If so, you can do it in /CMSWebParts/Membership/Logon/LogonForm.ascx file, where both labels are defined, adding BackColor="Black" ForeColor="White" properties for proper controls. For example:

<cms:LocalizedLabel ID="lblUserName" runat="server" AssociatedControlID="UserName"
EnableViewState="false" BackColor="Black" ForeColor="White"/>

<cms:LocalizedLabel ID="lblPassword" runat="server" AssociatedControlID="Password"
EnableViewState="false" BackColor="Black" ForeColor="White"/>


Best Regards,
Radek Macalik