standard.css attribute override my css attribute!!

49 views
Skip to first unread message

tong123123

unread,
Apr 25, 2012, 10:16:36 PM4/25/12
to google-we...@googlegroups.com
my project name is ALS and I have a ALS.css file, with some content like


body{
  font-size:20px;
}

table td{
   font-size:20px;
}

but I found it has no effect on my gwt application, it is override by standard.css, how to resolve this problem?

Also, when I generate the project, there is some auto-generated css attribute in ALS.css like
.gwt-MenuItem
but these attribute can also be found in standard.css, so why gwt autogenerated these css attribute again when I new a project if standard.css already has these attribute?

Joseph Lust

unread,
Apr 26, 2012, 1:40:06 PM4/26/12
to google-we...@googlegroups.com
Either:
  1. Remove the offending selector from standard.css.
  2. OR set your CSS property to font-size: 20px !important; to force it to override the other property.

Sincerely,
Joseph
Reply all
Reply to author
Forward
0 new messages