D
Disc Magnet
I am unable to set the width of a <pre> blog to 80 characters. When, I
set it the width appears different on different OS.
With Firefox or Chrome on Windows, the black background of <pre> is
only 60 characters wide.
With Firefox Linux, the black background is 80 characters wide.
I want it to be 80 characters wide on all systems. How can I achieve
this?
Here is the code:
<html>
<head><title>Console Effect</title>
<style type="text/css">
pre {
width: 80ex;
background: #000000;
color: #808080;
padding: 3px;
}
</style>
<head>
<body>
<p>
Foo
</p>
<pre>
123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789.
int main()
{
printf("hello, world\n");
}
</pre>
<p>
Bar
</p>
</body>
</html>
set it the width appears different on different OS.
With Firefox or Chrome on Windows, the black background of <pre> is
only 60 characters wide.
With Firefox Linux, the black background is 80 characters wide.
I want it to be 80 characters wide on all systems. How can I achieve
this?
Here is the code:
<html>
<head><title>Console Effect</title>
<style type="text/css">
pre {
width: 80ex;
background: #000000;
color: #808080;
padding: 3px;
}
</style>
<head>
<body>
<p>
Foo
</p>
<pre>
123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789.
int main()
{
printf("hello, world\n");
}
</pre>
<p>
Bar
</p>
</body>
</html>