Issue Details (XML | Word | Printable)

Key: MDLSITE-681
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Martin Dougiamas
Reporter: Mauno Korpelainen
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle Community Sites

Moodle.org does not render superscripts or subscripts

Created: 14/Mar/09 07:15 PM   Updated: 14/Mar/09 09:39 PM
Component/s: moodle.org

URL: http://moodle.org/mod/forum/discuss.php?d=118798
Participants: Helen Foster, Martin Dougiamas and Mauno Korpelainen
Security Level: None
Resolved date: 14/Mar/09


 Description  « Hide
Moodle.org does not render superscripts or subscripts

http://moodle.org/mod/forum/discuss.php?d=118798

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Helen Foster added a comment - 14/Mar/09 07:27 PM
Mauno, thanks for your report.

I guess this is a theme issue, as I don't remember there being a problem with the old moodle.org theme.

Reassigning to Martin for consideration.


Mauno Korpelainen added a comment - 14/Mar/09 07:31 PM
Well I found the reason - it's in theme css

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
background-image: none;
}
/* IEs break with vertical-align: baseline on images */
/* set different vertiacal-align for tr, th, td for Moodle */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead {
vertical-align: baseline;
}

should not be used for sub and sup. The former code sets font size to 100% and the latter sets vertical-align to baseline which breaks supscript and superscript...


Martin Dougiamas added a comment - 14/Mar/09 09:39 PM
It's Urs' reset.css ... I'm not sure why all of it is necessary though ...

Anyway, I took our sub and sup as they are hardly the sort of tag anyone uses for anything else.

Cheers!