
Hello, on Donnerstag, 8. Juli 2010, Rajko M. wrote:
On Wednesday 07 July 2010 18:29:58 Christian Boltz wrote:
We could discuss if nesting <pre> tags in a paragraph is good style and/or valid HTML (IMHO not really), but it still shouldn't break the margin-left ;-)
I just spoiled you example. <pre> is now on separate line and paragraph is rendered correctly :)
Actually a space at the beginning of the line does the same job, and is better wikitext ;-) But that is not the real point. The thing is that nobody should be able to break the margin-left, even with "funny" code. The perfect solution would be to have padding in the page content area instead of having margin on all page content elements. (Or are there cases where it's really wanted that a content element is close to the content area box? If yes, please speak up *now* or remain silent forever ;-) I did not check the complete CSS, but for me it looks like this CSS (base.css line 159) h1, h2, h3, h4, h5, h6, p, ul, ol, table, pre, blockquote, .box small { margin-left:15px; margin-right:15px; } should be removed and instead this should be added: (.alpha and .omega are defined in grid.css line 72/77) .alpha { padding-left:15px; padding-right:15px; } - or - .omega { padding-left:15px; padding-right:15px; } I have no idea if .alpha or .omega fits better (and why there are two classes) - both should work. Sidenote: IIRC there's the issue that <div> boxes have to be width:96% instead of 100%. This should be solved after this change - but this also means that the code of these boxes has to be changed. Regards, Christian Boltz -- | Yes, I know. But there are even conjobs running as user games? Sometimes when cron is bored he starts playing games, didn't you know? ;-) [Aschwin Marsman and Robert Schiele opensuse] -- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org