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.
How can I reduce the font size of the login block only? Because when I switch the language of the home page to another language, let say spanish the text size is so big than it jumps out the frame (see attached image).
Any idea how to make everything fit in place?
One step could be to reduce the label of the login button, but I think that will not be enough.
Comments
Comment #1
rschwab CreditAttribution: rschwab commentedLooks like you forgot the image attachment. But here is how I would handle this problem
1. Download and install the Firebug plugin for Firefox
2. Use it to find the CSS rules that affect the login block
3. Overwrite those rules in your theme css files.
A link to your site with the issue would be the most helpful thing you could provide, I think. Then someone could tell you exactly which rule you're looking for.
- Ryan
Comment #2
nomonstersinme CreditAttribution: nomonstersinme commentedUnfortunately, until I have more info I can't help you. Please move forward as per @rschwab's great directions!
Comment #3
sapox CreditAttribution: sapox commentedSorry for that, here is the missing image.
In the mean time I'll try to figure it out with firebug and see what happens, but any help is welcome.
Comment #4
nomonstersinme CreditAttribution: nomonstersinme commentedI would just target that particular block in style.css and alter the width.. For the demo site i would need to target:
does that answer the question or am i missing something?
Comment #5
sapox CreditAttribution: sapox commentedI though that use the #block-0 will not only affect the login but also the block-0 for already signed users, so I simply changed the translation.
I know that it isn't the most optimal solution but for the moment it works.
Comment #6
nomonstersinme CreditAttribution: nomonstersinme commentedthere shouldn't be another block with the delta 0.. but i'm glad you fixed your issue if at least for now!