[PATCH] make CSS for docs compatible with IE

Aaron Bentley aaron.bentley at utoronto.ca
Tue Sep 26 12:51:49 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Belchenko wrote:
> I make changes to font size declaration. This changes makes documents
> looks almost identical in both browsers. As example see attached
> ie-patch.png image -- how looks index.htm with new default.css in IE.
>  body {
>    background-color: #ffffff;
> -  color: #303030;
> +  color: #000000;
>    margin-top: 50px;
>    margin-left: 50px;
>    margin-right: 50px;
>    margin-bottom: 70px;
>    font-family: Verdana, Geneva, Arial, sans-serif;
> -  font-size: small;
> -  line-height: 180%
> +  line-height: 180%;
>    }
>  
> -/* p {
> -  text-indent: 3em
> -} */
> +p {
> +  font-size: 85%;
> +}

It doesn't seem like good style to set the font size for paragraphs,
because not all text falls in paragraphs, but all body text should have
the same base attributes.  Is there a reason we can't set the font size
in the body, instead?

The other font sizes are given in em, which is relative to the parent
size, so I would expect the rest of your changes to be unnecessary if we
get the base font size consistent in IE and Firefox.


> -.literal-block {
> +pre {
>    margin-left: 5em;
>    color: #000000;
> -  font-weight: normal;
> -  background-color: #c1d1ff;
>    background-color: #e5ecf9;
>    border: 1px solid #888888;
>    padding: 1em;
> -  }
> +}

What's the reason for these changes?  Isn't it better to style
literal-block than pre, since not all preformatted areas are necessarily
code examples?

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFFGRRV0F+nu1YWqI0RAuVPAJiiR7CweHFb9/1zX2DgHZmDyaDaAJ0QCXgQ
U/Si1V3tHQcb1Y5Qdc2SPw==
=5Gm9
-----END PGP SIGNATURE-----




More information about the bazaar mailing list