Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34723

What is #maincontent for?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.3.1
    • Fix Version/s: None
    • Component/s: Themes
    • Labels:
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      On every page of moodle there is a #maincontent in the HTML. Normally, you might expect this to be a div that wraps around the main content. But in Moodle it is an empty <span> that is set to {{display: block;height: 1px;overflow: hidden;} so it's a usually invisible line at the top of each page's content.

      The only use I've found (while looking at MDL-34687) is an over-elaborate way of setting the width of embedded objects. It's possible this is some old hack to fix IE6, but can probably be removed now.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            bawjaws David Scotson
            Participants:
            Component watchers:
            Huong Nguyen, Bas Brands, Mathew May
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: