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 All,
Again just working through the new processes. Are we able to set a full width region using susy within the "header"? Without getting hacky with css.
Thanks,
Ben
Comments
Comment #1
benjmarr CreditAttribution: benjmarr commentedI should clarify... Running the "Magic" style but i have a few sections (header and nav) that i want to extend out to 100% of window width.
Comment #2
fubhy CreditAttribution: fubhy commentedApply the grid container to every element (except the two that you want to span 100%) separately instead of the entire body or page container. By not applying the grid container to the header and nav they will stay at 100%. I think the ohm-hero layout has an example for that?
Comment #3
benjmarr CreditAttribution: benjmarr commentedIll have a look at the ohm example and try work it out!! Once I have I will add to the documentation.
Loving the new workflow and processes!!
Comment #5
kclarkson CreditAttribution: kclarkson commented@fubhy,
I too am trying to have a full width header and footer. Could you let me know what file in OHM you are referencing as an example ? I have looked at both the layout.scss and the page.tpl.php and they look exactly the same.
It would be great to have a full width header and footer document in the theme already.
thanks,
Comment #6
fubhy CreditAttribution: fubhy commentedI am referring to the ohm-hero layout template file ohm/layouts/ohm-hero.
I don't see the point of documenting specific layout setups or region layouts as that's really just a question of using CSS and HTML together. We can't document every single aspect of CSS and HTML "development" unless we want to be finished with the documentaiton in a timely manner. However, creating full-width footers and headers is not hard. Just don't apply any grid container or grid element mixin / css to it. Unless floated or otherwise manually altered, a HTML block element (like a div, for example) always spans 100% of it's container (full-width). So simply by doing *nothing* you will get a full width header/footer. In order to *add* gridded width constraints to an element you have to apply grid mixins/css to it.
Comment #7.0
(not verified) CreditAttribution: commentedadded to