zenoh
zenoh

Reputation: 2183

How to apply class to selected inline elements in Jade?

in Jade:

section
  .line
    .red-words RED
    | TEXT

This would cause TEXT to be on another line to RED

I want to keep RED and TEXT inline, but only apply .red-words class to RED

Upvotes: 0

Views: 73

Answers (1)

KZee
KZee

Reputation: 446

Add span.

section
  .line
    span.red-words RED
    | TEXT

or in CSS:

.red-words{display:inline;}

Upvotes: 1

Related Questions