Browsers display course topic boxes differently

Browsers display course topic boxes differently

بواسطة - Miriam Laidlaw
عدد الردود: 5
صورة Plugin developers

Time to finally ask here, because I'm sure the answer is obvious...

Moodle 2.2

Brand new theme with base as the parent

Been designing my theme using Firefox and I noticed this only because I wanted to log in on another browser as a student to check how something looked.

How my course topic boxes look in Firefox:

Firefox

How they look in Chrome and Safari:

Chrome and Safari

As you can see, in Chrome and Safari the right hand side of the topic box is rather... large.

Things I have tried that have fixed it in Chrome/Safari have broken it in Firefox.

Help?

متوسط التقييمات: -
رداً على Miriam Laidlaw

Re: Browsers display course topic boxes differently

بواسطة - Mary Evans
صورة Core developers صورة Documentation writers صورة Peer reviewers صورة Plugin developers صورة Testers

If it isn't already set you need to do this...

رداً على Mary Evans

Re: Browsers display course topic boxes differently

بواسطة - Miriam Laidlaw
صورة Plugin developers

Hi Mary,

Yep, that appears to be already set in the base theme, but I put it in my theme just in case. Hasn't fixed the problem.

مفكّر

رداً على Miriam Laidlaw

Re: Browsers display course topic boxes differently

بواسطة - Miriam Laidlaw
صورة Plugin developers

Through a process of painful elimination I found the problem.

/** Central content in the course box **/
.course-content .main .content {
    background-color: #FFFFFF;
    overflow: auto;
    padding: 5px;
}

Setting the overflow in the content area of the topic boxes causes this. Removing this line makes everything ok.

So I need to find a different place to set the overflow, in case people upload large images to the course page?

رداً على Miriam Laidlaw

Re: Browsers display course topic boxes differently

بواسطة - Mary Evans
صورة Core developers صورة Documentation writers صورة Peer reviewers صورة Plugin developers صورة Testers

What about ...