try style="border: none;"
{| width="75%" cellpadding=0 cellspacing=0 style="background-color:#c1ffc1;
border: 1px dashed green; padding: 0px 4px;"
|-
| style="border: none;" width="50" valign="top" |
'''Note:'''
| style="border: none;" | Sometimes you have to wait a bit.
|}
Frederich, Eric P2173 a écrit :
Does anyone know how to get rid of this?
I found that if I put the following in MediaWiki:Common.css I can get
rid of those borders if I set the nested table to use class="hrm".
table.hrm {
}
table.hrm th, table.hrm td {
border: 0;
}
Is there a way I can override this in the template itself rather than
using a class?
I tried putting border: 0, and border="0" on this line...
| border="0" width="50" valign="top" |
'''Note:'''
But that didn't get rid of it.
I would much rather fix this in the templates than use some class to get
rid of the borders but I don't know where to put it.
Thanks,
~Eric
-----Original Message-----
From: mediawiki-l-bounces-T31ubCBy5U6GglJvpFV4uA(a)public.gmane.org
[mailto:mediawiki-l-bounces-T31ubCBy5U6GglJvpFV4uA@public.gmane.org] On Behalf Of
Frederich, Eric
P2173
Sent: Monday, June 05, 2006 4:19 PM
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] properly nesting tables
So I finally got the wikitable css stuff working to make my tables look
pretty whenever I say class="wikitable".
Now my problem is if I wanted to have a non-wikitable inside of it.
I have a template called Box Note that looks like this....
{| width="75%" cellpadding=0 cellspacing=0 style="background-color:
#c1ffc1; border: 1px dashed green; padding: 0px 4px;"
|-
| width="50" valign="top" | '''Note:'''
| {{{1}}}
|}
...
It looks very nice and doesn't show any internal borders around each
cell.
But if I use it nested within a wikitable now all of a sudden I see the
borders in the note.
This happens if I use the template above for a note or if I were to
manually nest the table as shown below (so if anyone wanted to try this
out they wouldn't have to create and save a template).
So my question is how do I get rid of all of that style info and
properly nest two tables with different styles?
Thanks,
~Eric
{| class="wikitable"
|-
| valign="top" |
* click this
* press that
* hit okay
{| width="75%" cellpadding=0 cellspacing=0 style="background-color:
#c1ffc1; border: 1px dashed green; padding: 0px 4px;"
|-
| width="50" valign="top" | '''Note:'''
| Sometimes you have to wait a bit.
|}
|
[[Image:Screenshot 01.jpg|200 px]]
|-
| valign="top" |
* Press Enter
|
[[Image:Screenshot 02.jpg|200 px]]
|-
| valign="top" |
* fill out form
* cross your fingers
* hit enter
|
[[Image:Screenshot 03.jpg|200 px]]
|}
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l-T31ubCBy5U6GglJvpFV4uA(a)public.gmane.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l