FondationSTaBLFoundation / MOR2Issues

0 stars 0 forks source link

inconsistent vertical-align css causes misalignment #4

Open rsninja722 opened 2 years ago

rsninja722 commented 2 years ago

the CSS for cs1xd3.online/RenderPublishedModule includes the following rule when cs1xd3.online/Code does not.

img {
    vertical-align: middle;
    border-style: none;
}

this inconsistency will change the alignment of some images in modules that include images in html shapes when viewing forkable or shared versions of the module

adding the following rule to the CSS of cs1xd3.online/RenderPublishedModule will solve this

foreignObject > img {
    vertical-align: unset;
}
rvarun11 commented 2 years ago

@rsninja722 Can you please elaborate more, preferably with screenshots?