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.
I have a problem with the text in a block.
The background is an image and the text needs to be in the grey area.
The theme I work with is Danland.
Can anyone help me with this problem?
Thank you
Let's focus on your first column only. Try to replace .what css class with this:
.what {
background-image: url("blocks/homepage_blok1.png");
background-repeat: no-repeat; /* this is new */
height: 400px;
padding: 30px; /* this is new */
width: 300px;
}
Comments
It is hard to visualize your
It is hard to visualize your problem without seeing that block and source code. Maybe URL of your site can help to understand your dilemma.
If you need additional html tags, you can put custom tpl.php file for that block in your theme and create additional wrapper
Oh I tought I included the
Oh I tought I included the URL, it's compasscharter.net/drupal
First column example
Let's focus on your first column only. Try to replace .what css class with this:
Is that what you need?
fixed
Yes it worked! :D Thank you so much for your help!