KHTML or IE?
Vadim Plessky
lucy-ples at mtu-net.ru
Mon Jun 10 11:07:57 BST 2002
On Friday 07 June 2002 11:30 pm, Christian A Strømmen [Number1/NumeroUno]
wrote:
| On Friday 07 June 2002 16:47, manu scribbled down on a piece of electronic
|
| paper:
| > Quoting "Christian A Strømmen [Number1/NumeroUno]" <number1 at kde.org>:
| > > When doing a <pre> text, and adding a <center> before the <pre> tag,
| > > shouldn't the <pre> text itself be centered?
| > >
| > > Take a look at http://www.realityx.net
| > >
| > > IE does this, but KHTML doesn't.. Who's correct?
| >
| > Both are.
| > <center> elements are deprecated and should not be used anymore.
| > CSS allows you to achieve exactly the same goal by adding
| > style="align: center;" to a block element.
| >
| > BTW, your PRE *is* centered in Konqueror 2.2.2.
|
| Running CVS HEAD here..
Pls try
<style type="text/css">
pre { margin-left: auto; margin-right: auto }
</style>
this should center PRE tags in KHTML
BTW: you can include such definition in html4.css (default CSS stylesheet for
HTML in KDE), so all pages with PRE will have it centered.
--
Vadim Plessky
http://kde2.newmail.ru (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/
More information about the kfm-devel
mailing list