-
1. Re: RichFaces Skin and background-image
nbelaevski Jul 16, 2010 4:07 AM (in response to zhyuhong)Hi,
>> 1. make all my buttons the same fixed width.
The safest way is to assign some CSS class to all buttons and do customization via it. If IE6 doesn't need to be supported, you can try
CSS attribute selectors like this:
input[type=button], input[type=submit], etc...
>> 2. give each of my button a different icon.
Again, custom CSS class for each type of the icon and background image assigned or via page code.
-
2. Re: RichFaces Skin and background-image
zhyuhong Jul 21, 2010 6:39 PM (in response to nbelaevski)Thanks Nick. I gave up on the button icon. But I did set the button size be defining a style class in css and let all my buttons use that styleClass. I am good for now
I am still not so sure how the whole skin thing work exactly. Why cannot I set the button width in the .xcss file to get it to work without creating a new style class?
-
3. Re: RichFaces Skin and background-image
ilya_shaikovsky Jul 22, 2010 4:48 AM (in response to nbelaevski)Hi Yuhong Zhang !
Nick mentioned separate styleClass in order to support IE 6. If you not need such support - you could leave with selectors like he mentioned. That will save class assignment work for you.