Alignment problem with listed content

Alignment problem with listed content

Jean-Nicolas Dufresne發表於
Number of replies: 2

Greetings,
I have a little odd situation on my live website that I don't find on my localhost version of Moodle.

All blocks that lists content (Main Menu, Administration, Courses) align differently the content wether it's odd-numbered or not. For the odd-numbered content, there's a king of tabulation.

Anyone has an idea of the origin of this and a means to correct it?
Here's my Administration block.

Thanks

附件 menu.JPG
評比平均分數: -
In reply to Jean-Nicolas Dufresne

Re: Alignment problem with listed content

Joseph Rézeau發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片

Bonjour Jean-Nicolas,

Which Moodle version are you using? Which theme? As distributed with Moodle or customized? Do you have the same problem in Mozilla and MSIE browsers? Have you tried to dump the HTML source to check for any difference between the odd and even lines displayed in your admin block? Have you used the various tools often mentioned on this forum for getting information about the CSS of a displayed page, which I am listing here:

Hope that helps,
Joseph
In reply to Joseph Rézeau

Re: Alignment problem with listed content

Jean-Nicolas Dufresne發表於

Good day Joseph,

I found my problem and for the benefit of all here's my solution.
Actually, it's quite obvious.

Well, I use 1.5.3+ Moodle with a customized theme. My problem was visible using Firefox or MSIE browsers.

You'll find that listed blocks have two CSS class: .r0 and .r1 All odd lines have the .r0 class while the even lines have the .r1 class.

My problem was that .r0 had align:"center" while the other didn't. I've set align:"left" to both of the classes.

Resolved. 微笑