centering with <br/>, css overriding, bug?
fesegre <[email protected]> Wed, 25 Dec 2013 23:49:28 +0200
| Newsgroups | gmane.comp.web.elinks.user |
|---|---|
| Organization | Weizmann Institute |
| Message-ID | <[email protected]> |
--===============1467775568==
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html style=3D"direction: ltr;">
<head>
<meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF=
-8">
<style type=3D"text/css">body p { margin-bottom: 0cm; margin-top: 0pt=
; } </style>
</head>
<body style=3D"direction: ltr;"
bidimailui-detected-decoding-type=3D"UTF-8" bgcolor=3D"#FFFFFF"
text=3D"#000000">
I'm trying to pretty-text-dump pages with nicely formatting css,
including centered text. My problem boils down to the following
snippet:<br>
<br>
<pre><html></pre>
<pre>=C2=A0 <head></pre>
<pre>=C2=A0=C2=A0=C2=A0 <style type=3D"text/css"></pre>
<pre>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 p {text-align: justify; }</=
pre>
<pre>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .center {text-align: center=
; }</pre>
<pre>=C2=A0=C2=A0=C2=A0 </style></pre>
<pre>=C2=A0 </head></pre>
<pre>=C2=A0 <body></pre>
<pre>=C2=A0=C2=A0=C2=A0 <p class=3D"center">1. This is centered=
</p></pre>
<pre>=C2=A0=C2=A0=C2=A0 <p style=3D"text-align: center;">2. And=
this one<br/>is centered too</p></pre>
<pre>=C2=A0=C2=A0=C2=A0 <p class=3D"center">3. But also this on=
e should,<br/>and comes not.</p></pre>
<pre>=C2=A0 </body></pre>
<pre></html></pre>
<p><br>
</p>
<p>In FF, Chrome, 1,2,3 are displayed as centered; in elinks 3 is
left-aligned (it would be centered if I either omitted the css for
p or the internal <br/>). Bug or feature, and why? ELinks
0.12pre6, package-installed in ubuntu 13.10.</p>
<p><br>
</p>
<p>Thanks, Enrico<br>
</p>
</body>
</html>
--===============1467775568==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users
--===============1467775568==--