file includes/themes.inc:426

they named a css class with a space inside
\$output .= \"div class=\"messages $type\"\n\";

while - as i know - there's no browser able to read css attributes of a class named like 'this is a class name'.

added an underscore, so it wil works like this
\$output .= \"div class=\"messages_\$type\"\n\";

Comments

heine’s picture

Multiple classes can be assigned to an element. In that case the class seperator is a space. This means that class="message $type" assigns not one class, but two: one messages, the other the contents of $type. As you can see in the stylesheet for the default theme (themes/bluemarine/style.css) the class 'messages' is used on it's own.

This happens in more places, most notably with blocks.

ebruts’s picture

Status: Active » Closed (fixed)

Closed as this is not a bug.