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 do I adjust the width of a block?
I would like to increase the width of the "Search area" block.
I'm putting my own text in the "Search area" region, and would like more letters to stay on one line. So I need to know how to make that block wider.
Thank you!!
Comments
Comment #1
stanowen CreditAttribution: stanowen commentedIn the style.css file I found a width of 218px associated with the Search region, but adjusting that number makes no difference in the size of the block. There must be a way to increase the length/width of the search area block.
Comment #2
stanowen CreditAttribution: stanowen commentedso nobody knows?
really could use thee help to get my website to go live and I've been waiting on this one issue.
Comment #3
gtsopour CreditAttribution: gtsopour commentedHello stanowen,
could you tell me in which region have you placed the search block?
Thanks
/George
Comment #4
gtsopour CreditAttribution: gtsopour commentedHello stanowen,
I prepared for you the appropriate changes to style.css file. Make the following changes only on your style.css file (increase search block 100px for example)
1. Decrease header-inside-left width 100px
From
To
2. Increase header-inside-right width 100px
From
To
3. Increase search block form text width 100px
From
To
Please, inform me if this worked for you or not in order to help you directly.
Thanks
/George
Comment #5
stanowen CreditAttribution: stanowen commentedGeorge, you are a genius! From a beautiful theme to the excellent support.
You've helped me tremendously, and fixed my problem!
Thank you very much!
Comment #6
gtsopour CreditAttribution: gtsopour commentedHello stanowen,
thank you for your good words.
I changed the status of this issue to 'fixed'.
Thanks again
/George
Comment #8
gtsopour CreditAttribution: gtsopour commentedComment #9.0
(not verified) CreditAttribution: commentedcorrected grammar.