[wp-trac] Re: [WordPress Trac] #2129: left allign the code tag
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 20 15:28:29 GMT 2006
#2129: left allign the code tag
----------------------------+-----------------------------------------------
Id: 2129 | Status: new
Component: Administration | Modified: Mon Mar 20 15:28:29 2006
Severity: minor | Milestone: 2.1
Priority: lowest | Version: 2.0
Owner: anonymous | Reporter: johnjosephbachir
----------------------------+-----------------------------------------------
Comment (by robmiller):
It certainly is:
http://www.w3.org/TR/REC-html40/struct/text.html#h-9.2.1
I'm pretty sure for code fragments that span multiple lines the correct
usage is:
{{{
<pre>
<code>
void foo(bar) {
baz();
}
</code>
</pre>
}}}
So, if you want them left-aligned, the text-align:left; should be applied
to the <pre> in order to cascade down.
--
Ticket URL: <http://trac.wordpress.org/ticket/2129>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list