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.
Hi I have a block that displays information in a table. Only on this theme and only for this block, the block content does not inherit the sidebar width.
Table class: "sticky-enabled sticky-table"
I am not good with CSS but I think in the event people display tables in a block, there should be a new CSS entry defining width as 100%??
See screen shot below
Comment | File | Size | Author |
---|---|---|---|
#1 | ScreenShot007.jpg | 11.27 KB | HS |
Comments
Comment #1
HS CreditAttribution: HS commentedIgnore the class above. I don't think that's correct.
Screenshot is attached here. For some reason it didn't attach to the above.
Comment #2
NaheemSays CreditAttribution: NaheemSays commentedI can see in the css that tables in the content region are made 100% width and not the rest. I will fix this shortly, but in the meantime you can add the following css to a local.css file in the theme folder:
(if that results in other problems, please let me know.)
Comment #3
HS CreditAttribution: HS commentedHi thanks for the code above. I am a newb at this, can you please explain what in the above changes the table width in sidebars? The only reason I ask is that I'm using it on a production site and don't want to have anything else broken as a result.
Thanks again!