-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Roland Achermann Sent: Saturday, March 28, 2009 1:12 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Left aligned table and bullet list
I want to have the table left aligned, there is nothing wrong with the table. And the bullets shall surround the table. But I don't want to have the bullets overlapping the table, that's "wrong". I just don't know if this is a rendering problem of the browsers, or if it could be fixed within the CSS.
I could add "margin-right: 1.5em;" to the style "table" in file \skins\monobook\main.css as a quick fix. But the margin is not needed (not wanted) with not left-aligned table.
Roland
Well, instead of use CSS (this affects all the tables of the wiki) probably you cand add the style properties to the table itself:
*bullet *bullet {| |Test1 |} *bullet *bullet {| border="0" cellpadding="5" cellspacing="0" |Test2 |} *bullet *bullet {|align=left border="1pt" style="margin-right:20px;" |Test3 |} *bullet *bullet *bullet
This seems to work...
G.
From: Roland Achermann Sent: Saturday, March 28, 2009 1:12 PM
I could add "margin-right: 1.5em;" to the style "table" in file \skins\monobook\main.css as a quick fix. But the margin is not needed (not wanted) with not left-aligned table.
Roland
You could also add this padding only to the left aligned tables. You can do it in the page, or you can make a new style in main.css (Or in MediaWiki:common.css if you have access to it.) called .left
Adding the margin that way would make sure you didn't affect tables you didn't want to have a margin on.
Good luck! -Courtney
Good hint, here is my solution (in MediaWiki:Common.css):
table[align=left] { margin-right: 20px; }
This adds 20px margin to all left-aligned tables.
Roland
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Christensen, Courtney Sent: Montag, 30. März 2009 14:30 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Left aligned table and bullet list
From: Roland Achermann Sent: Saturday, March 28, 2009 1:12 PM
I could add "margin-right: 1.5em;" to the style "table" in file \skins\monobook\main.css as a quick fix. But the margin is not needed (not wanted) with not left-aligned table.
Roland
You could also add this padding only to the left aligned tables. You can do it in the page, or you can make a new style in main.css (Or in MediaWiki:common.css if you have access to it.) called .left
Adding the margin that way would make sure you didn't affect tables you didn't want to have a margin on.
Good luck! -Courtney
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org