-
1. rich:Panel style
boy18nj Mar 6, 2011 9:54 PM (in response to basharf)you are doing it wrong way, do this way-
<rich:panel id="bk" class="width : 200px;">
-
2. rich:Panel style
basharf Mar 7, 2011 2:55 AM (in response to boy18nj)Oh I see !!
Thanks for the help .. but what if I have more than one style I mean, if i want to control the width, height, color .... etc ..
cant I depend on my way ?
Thank you
-
3. rich:Panel style
gonchar Mar 7, 2011 2:55 AM (in response to basharf)Hi!
Attributes styleClass and class is not necessary, cause id selector has been used.
<rich:panel id="bk">
#bk {
width: 200px;
}
-
4. rich:Panel style
basharf Mar 7, 2011 2:59 AM (in response to gonchar)but it didnt take the effect when I used with the id .. I dont know why
-
5. rich:Panel style
gonchar Mar 7, 2011 3:15 AM (in response to basharf)1 of 1 people found this helpfulDebug for example in Firebug and check id, is it realy "bk"
-
6. rich:Panel style
gonchar Mar 7, 2011 3:22 AM (in response to basharf)1 of 1 people found this helpful...
<style>
#test {
width: 200px;
}
</style>
<rich:panel id="test"></rich:panel>
...
I've tried like i suggested and it works!
-
7. rich:Panel style
snaker Mar 7, 2011 4:22 AM (in response to gonchar)if you use that:
<rich:panel id="bk" styleClass="#bk">
#bk {
width: 200px;
}
I supose #bk is in a css class, if use "#" only need id ofr rich:panel, you don't need styleClass, but i don't know why with richfaces for id doesn't work, so you must put:
<rich:panel id="bk" styleClass="bk">
In the ccs class:
.bk{
width:200px;
...
...
backgroud-color:lightgray;
color: red;
}
it works.
if you use a header you must overwrite the class of richfaces (panel) because styleClass only is for the panel body
-
-
9. rich:Panel style
snaker Mar 7, 2011 4:36 AM (in response to basharf)finally, how do you do?
for id??