Hello,
Again, I've strolled through the manual and had a google, and seem unable to find the information.
Currently, when pages are edited, the textarea in the form is delivered as follows:
<textarea tabindex='1' accesskey="," name="wpTextbox1" id="wpTextbox1" rows='25' cols='80' >
This is causing a conflict with my layout for some of my users. Basically, the edit form doesn't resize. I want to set the form in percentage rather than a fixed "80".
I'd rather do something that doesn't involve a core hack, but if that's what I have to resort to, I will.
Any ideas?
Sean
I want to set the form in percentage rather than a fixed "80".
In [[MediaWiki:FooBar.css]]*, add this: #wpTextbox1 { width: 80% !important; } ("FooBar" being the name of your skin; you could also use [[MediaWiki:Common.css]] to apply this to all skins.)
HTH.
-- F.
On 8/16/07, Frederik Dohr fdg001@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
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@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@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
^_^ 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.
:) Thanks Dan :)
mediawiki-l@lists.wikimedia.org