You are right about the cascading bit. Except there are 2 things to
consider. The textbox is defining the columns for the textbox, not the
actual width of it, so a width should technically be able to override
it. And also, the use of !important overrides any other css declaration
that doesn't also use !important.
^_^ so, it works. And once you get that, you can start to do a number of
things using CSS that you never thought of before.
~Daniel Friesen(Dantman) of The Gaiapedia, Wikia Graphical Entertainment Project, and
Wiki-Tools.com
Sean O'Connor wrote:
On 8/16/07, Frederik Dohr <fdg001(a)gmx.net>
wrote:
I want to
set the form in percentage rather than a fixed "80".
In [[MediaWiki:FooBar.css]]*, add this:
#wpTextbox1 {
width: 80% !important;
}
Thanks for that. I didn't realise that a css declaration would
override hard coded fixed dimmensions. I thought that the cascade of
things meant that first an external css is looked at, then css in the
head of the document, then inline style was looked at, meaning the
closer to the inline style, the more important the styling...
Sean
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l