[prev in list] [next in list] [prev in thread] [next in thread] 

List:       elinks-users
Subject:    [elinks-users] centering with <br/>, css overriding, bug?
From:       fesegre <enrico.segre () weizmann ! ac ! il>
Date:       2013-12-25 21:49:28
Message-ID: 52BB52E8.4060401 () weizmann ! ac ! il
[Download RAW message or body]

[Attachment #2 (text/html)]

<html style="direction: ltr;">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;"
    bidimailui-detected-decoding-type="UTF-8" bgcolor="#FFFFFF"
    text="#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>&lt;html&gt;</pre>
    <pre>  &lt;head&gt;</pre>
    <pre>    &lt;style type="text/css"&gt;</pre>
    <pre>       p {text-align: justify; }</pre>
    <pre>       .center {text-align: center; }</pre>
    <pre>    &lt;/style&gt;</pre>
    <pre>  &lt;/head&gt;</pre>
    <pre>  &lt;body&gt;</pre>
    <pre>    &lt;p class="center"&gt;1. This is centered&lt;/p&gt;</pre>
    <pre>    &lt;p style="text-align: center;"&gt;2. And this one&lt;br/&gt;is \
centered too&lt;/p&gt;</pre>  <pre>    &lt;p class="center"&gt;3. But also this one \
should,&lt;br/&gt;and comes not.&lt;/p&gt;</pre>  <pre>  &lt;/body&gt;</pre>
    <pre>&lt;/html&gt;</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 &lt;br/&gt;). 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>



_______________________________________________
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic