You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Johannes Schneider <ma...@cedarsoft.com> on 2009/08/05 21:06:00 UTC

Modal window and background color

Hi,

I use the modal window (with a component). But unfortunately white is
used as background color. This is definied in model.css:164

div.wicket-modal div.w_content {
	width: 100%;
	background-color: white;
}


I tried to override that, but since the modal.css is added after my own
css files, still white is used.


Has anyone an idea how I could solve that?


Thanks,

Johannes

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Modal window and background color

Posted by Matej Knopp <ma...@gmail.com>.
What is there to improve? You can set modal window custom CSS class
and style it from scratch. Or you can override properties of the
standard stylesheet.

-Matej

On Wed, Aug 5, 2009 at 11:12 PM, Johannes
Schneider<ma...@cedarsoft.com> wrote:
> Thanks! Worked...
>
> But if anyone reads this - I think that could/should be improved in the
> ModalWindow...
>
>
> Regards,
>
> Johannes
>
> Matej Knopp wrote:
>> You can use !important in your override css.
>>
>> -Matej
>>
>> On Wed, Aug 5, 2009 at 9:06 PM, Johannes
>> Schneider<ma...@cedarsoft.com> wrote:
>>> Hi,
>>>
>>> I use the modal window (with a component). But unfortunately white is
>>> used as background color. This is definied in model.css:164
>>>
>>> div.wicket-modal div.w_content {
>>>        width: 100%;
>>>        background-color: white;
>>> }
>>>
>>>
>>> I tried to override that, but since the modal.css is added after my own
>>> css files, still white is used.
>>>
>>>
>>> Has anyone an idea how I could solve that?
>>>
>>>
>>> Thanks,
>>>
>>> Johannes
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Modal window and background color

Posted by Johannes Schneider <ma...@cedarsoft.com>.
Thanks! Worked...

But if anyone reads this - I think that could/should be improved in the
ModalWindow...


Regards,

Johannes

Matej Knopp wrote:
> You can use !important in your override css.
> 
> -Matej
> 
> On Wed, Aug 5, 2009 at 9:06 PM, Johannes
> Schneider<ma...@cedarsoft.com> wrote:
>> Hi,
>>
>> I use the modal window (with a component). But unfortunately white is
>> used as background color. This is definied in model.css:164
>>
>> div.wicket-modal div.w_content {
>>        width: 100%;
>>        background-color: white;
>> }
>>
>>
>> I tried to override that, but since the modal.css is added after my own
>> css files, still white is used.
>>
>>
>> Has anyone an idea how I could solve that?
>>
>>
>> Thanks,
>>
>> Johannes
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Modal window and background color

Posted by Matej Knopp <ma...@gmail.com>.
You can use !important in your override css.

-Matej

On Wed, Aug 5, 2009 at 9:06 PM, Johannes
Schneider<ma...@cedarsoft.com> wrote:
> Hi,
>
> I use the modal window (with a component). But unfortunately white is
> used as background color. This is definied in model.css:164
>
> div.wicket-modal div.w_content {
>        width: 100%;
>        background-color: white;
> }
>
>
> I tried to override that, but since the modal.css is added after my own
> css files, still white is used.
>
>
> Has anyone an idea how I could solve that?
>
>
> Thanks,
>
> Johannes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org