Hallo!
Koen Deforche пишет:
> The problem is that it impossible
> to center the dialog (vertically) in CSS only without knowing the
> size.
Vertical centering is exactly what is *not* needed in my case at least.
I am concerned
about horizontal centering.
> You should be able to override all the internal CSS code, by
> overriding the selectors from your own CSS files:
>
> - use WApplication::useStyleSheet() to load your own CSS file
> - for WDialog, it is not documented, but you will want to add
> declarations like :
>
> div.Wt-dialogwindow {
> margin-left: -XXXpx;
> margin-top:-YYpx;
> }
>
Yes I found all that in source code, but if I put these declarations in
my css file,
they seem to be ignored. First I was using a hacked on version of
library with
css code in WDialog commented out, then I added a following line at the
start
of my program:
styleSheet().addRule("dummy", "background: white;", "Wt::WDialog");
and then it became possible to use my own css rules for wdialog without
modifying the library.
It would be nice if all built-in css rules could be reliably overrided
in some
well-defined way.
Best regards!
--
Michael Ivanov
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest