https://bugzilla.wikimedia.org/show_bug.cgi?id=29252

       Web browser: ---
             Bug #: 29252
           Summary: Consecutive DIV tags insert unwanted newline
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Page rendering
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


I tried to create a multicolored horizontal bar by using 'display:
inline-block' on several consecutive DIV elements, for example:

<div style='background: red; width: 80px; height: 0.7em; display:
inline-block;'></div><div style='background: green; width: 160px; height:
0.7em; display: inline-block;'></div>

Unfortunately MediaWiki renders this into HTML by adding a newline between the
two tags, which the browser of course renders as a space, and thus the two bars
have a gap between them.

The same happens for other block-level elements, for example HR.

Expected behaviour is to have no such newline between the tags.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to