Alignment problem with listed content

Alignment problem with listed content

Jean-Nicolas Dufresne -
回帖数: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
回复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
回复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. 微笑