how to change default GWT TEXTBOX Border color

929 views
Skip to first unread message

junaid

unread,
Mar 24, 2012, 11:38:47 AM3/24/12
to google-we...@googlegroups.com

how can i change the default border color of GWt TextBox. i tried this

               .gwt-TextBox:focus
               {  
                 border: 1px solid #FF0000;
               }

but with no luck

the default golden color remain there ,and my red color also added , but i need to replace that default golden color with red color

any suggestion

Thanks

Joseph Lust

unread,
Mar 25, 2012, 11:09:37 AM3/25/12
to google-we...@googlegroups.com
Try overriding the existing property with the important keyword.

.gwt-TextBox:focus
{  
  border: 1px solid #FF0000 !important;
}

Sincerely,
Joseph

Maxime Mularz

unread,
Mar 24, 2012, 6:26:29 PM3/24/12
to Google Web Toolkit
Hi ,

Call your CSS file after the js.file, like above
*****************
<script type="text/javascript" language="javascript" src="gwt/
gwt.nocache.js"></script>

<link type="text/css" rel="stylesheet" href="GWT.css">
*****************

Regards,

Maxime
Reply all
Reply to author
Forward
0 new messages