Make WordPress Core

Opened 16 years ago

Closed 15 years ago

Last modified 14 years ago

#2129 closed enhancement (wontfix)

left align the code tag

Reported by: johnjosephbachir Owned by: robmiller
Milestone: Priority: lowest
Severity: trivial Version: 2.0
Component: Template Keywords: code-tag style bg|dev-feedback has-patch
Focuses: Cc:


I think this is better, for lines that wrap anyway. I suppose one could argue either way.

Attachments (2)

style.css.diff (272 bytes) - added by johnjosephbachir 16 years ago.
2129.diff (280 bytes) - added by robmiller 15 years ago.

Download all attachments as: .zip

Change History (10)

#1 @skeltoac
16 years ago

  • Milestone changed from 2.0 to 2.1

#2 @abhay
16 years ago

  • Keywords code-tag style bg|dev-feedback added

isn't the code tag usually used inline?

#3 @robmiller
16 years ago

It certainly is:


I'm pretty sure for code fragments that span multiple lines the correct usage is:

void foo(bar) {

So, if you want them left-aligned, the text-align:left; should be applied to the <pre> in order to cascade down.

#4 @robmiller
15 years ago

  • Component changed from Administration to Template
  • Owner changed from anonymous to robmiller
  • Severity changed from minor to trivial
  • Status changed from new to assigned
  • Summary changed from left allign the code tag to left align the code tag
  • Type changed from defect to enhancement

15 years ago

#5 @robmiller
15 years ago

Style pre not code.

#6 @rgovostes
15 years ago

  • Keywords has-patch added

#7 @matt
15 years ago

  • Resolution set to wontfix
  • Status changed from assigned to closed

#8 @Nazgul
14 years ago

  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.