Hello -
I am not sure how to include CSS formatting right on my Wiki page, and I would like to include formatting like this: |align="left" width="35%" style="background-color:#FFF7F7; border-top:1px solid #AA8888; border-bottom:1px solid #AA8888; border-top:1px solid #AA8888; padding-top:5px; padding-right:10px; padding-left:10px; padding-bottom:10px;" valign="top"|
When I try to do so (without a template), it just shows up as text! Is there a plugin or directive that I can install/change to enable this? Many thanks, vm2058@gmail.com.
Hi Varun,
The code that you're using is actually part of the syntax for creating tables in HTML pages, so it's just showing up as text because you're not writing out the entire syntax: see http://meta.wikimedia.org/wiki/Help:Table for details on that.
If you'd like to just format a chunk of text without creating a table (recommended unless you're actually formatting some tabular data), then you can use something like this:
<div align="left" width="35%" style="background-color:#FFF7F7; border-bottom:1px solid #AA8888; border-top:1px solid #AA8888; padding-top:5px; padding-right:10px; padding-left:10px; padding-bottom:10px;">
Your text here...
</div>
Hope this helps.
Varun Munjal wrote:
Hello -
I am not sure how to include CSS formatting right on my Wiki page, and I would like to include formatting like this: |align="left" width="35%" style="background-color:#FFF7F7; border-top:1px solid #AA8888; border-bottom:1px solid #AA8888; border-top:1px solid #AA8888; padding-top:5px; padding-right:10px; padding-left:10px; padding-bottom:10px;" valign="top"|
When I try to do so (without a template), it just shows up as text! Is there a plugin or directive that I can install/change to enable this? Many thanks, vm2058@gmail.com.
wikitech-l@lists.wikimedia.org