Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Well if we want a block, let's use a DIV.
If we want a SPAN, let's leave it inline to flow after the site title or something.
At the moment we have a sort of mishmash that has to be changed no matter what you want.
In which case they'd probably need to enclose it in a DIV (do we have that?) or pull it into the H1 tag.
I'd say stick it in a DIV and place it directly beneath the site title.
Well anything that is meant to be laid out as a block should really be a block element, so either P or DIV in this case.
That's the simplest thing to do, therefore the easiest to change.
So they're all inline elements.
The least amount of change here is to just remove the display:block on the slogan. Then it runs in and looks ok :)
Let's not get fancy with layout -- most people will want to completely change the header layout anyway.
Comments
Comment #1
psynaptic commentedWhat else do you suggest?
This is one of those things that gets changed on every site. Is there a better default?
Comment #2
joachim commentedWell if we want a block, let's use a DIV.
If we want a SPAN, let's leave it inline to flow after the site title or something.
At the moment we have a sort of mishmash that has to be changed no matter what you want.
Comment #3
psynaptic commentedWell my thoughts were that the themer might want to use block or inline so they could set this without editing the markup.
Comment #4
joachim commentedIn which case they'd probably need to enclose it in a DIV (do we have that?) or pull it into the H1 tag.
I'd say stick it in a DIV and place it directly beneath the site title.
Comment #5
psynaptic commentedI'm happy to go with what you say but is it really semantically correct to put something in a div because you want to to break onto a new line?
Comment #6
joachim commentedWell anything that is meant to be laid out as a block should really be a block element, so either P or DIV in this case.
That's the simplest thing to do, therefore the easiest to change.
Comment #7
psynaptic commentedOk cool, sounds fine.
Would you mind committing?
Comment #8
joachim commentedUh I was wrong -- actually, we have this:
So they're all inline elements.
The least amount of change here is to just remove the display:block on the slogan. Then it runs in and looks ok :)
Let's not get fancy with layout -- most people will want to completely change the header layout anyway.
Comment #9
psynaptic commentedAgreed.
Comment #10
joachim commentedDone.