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 am not sure if it's a bug. I have set up the content area from left to right: content - sidebar 1 - sidebar 2.
When I give the .content-region a padding of 5px sidebar 2 will end up below sidebar 1. In my understanding padding pushes the text inwards away from the border. So the border position remains the same. Yet it seems it pushes the border out, because there is no more room for sidebar 2.
You can work around it by making the zone static, but that leaves you with a none centred content area. And that just doesn't look very nice :)
Comment | File | Size | Author |
---|---|---|---|
#1 | block_problem.png | 50.34 KB | bhosmer |
Comments
Comment #1
bhosmer CreditAttribution: bhosmer commentedI've got a similar issue when I try to add a border to the sidebar-regions:
I also don't want to make the zone static since I like the sidebar-content-sidebar layout.
Am I missing something?
If I increase the size of the content-container though, the layout is possible:
Comment #2
kunago CreditAttribution: kunago commentedWhen you add padding or border, the content area gets larger than defined which in total exceeds the 960px width. To make the padding work, wrap your content region by another div in your template file.
Comment #3
fubhy CreditAttribution: fubhy commented... What kunago said.
Comment #4
bhosmer CreditAttribution: bhosmer commentedI would think it might be something that should be accounted for within the base theme itself? How many people are really comfortable modifying their .tpl file?
Comment #5
fubhy CreditAttribution: fubhy commented@bhosmer the 3.x version of Omega will have that in the .tpl file.
Comment #6
bhosmer CreditAttribution: bhosmer commentedThat would be very helpful and save a lot of time. I really really like this framework!