Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In pushbutton theme I cannot set a picture to appear on the centre by using
- the images are displayed ont he left.
Comments
Comment #1
nsk CreditAttribution: nsk commentedby using div center directive, but the code didn't show up :( There is a need here to format the msgs in plain text.
Comment #2
(not verified) CreditAttribution: commentedPlease read before posting. Your complaint about being unable to post code is totally off-base, as it is CLEARLY specified at the bottom of the submission form that you can use the >code< tag to write code.
Back on the issue at hand, I have had success centering text using the following code in nodes with the pushbutton theme:
<div align="center">Look! It's centered.</div>
the following more XHTML and CSS-ish code also works for me:
<div style="text-align: center;">Look! It's centered.</div>
Please specify exactly what code you're attempting to use and where you're trying to use it.
Comment #3
Robert Castelo CreditAttribution: Robert Castelo commentedComment #4
(not verified) CreditAttribution: commented