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.
I'm trying to modify the build a sub-theme but don't know how to do this:
I need a fluid grid with a min and a max width BUT with a fixed-width sidebar.
Anyone knows how to?
Comments
Comment #1
aristeides CreditAttribution: aristeides commentedOk, I realize that sentence didn't make much sense but the phone rang while I was writing it and I got distracted. :P
Comment #2
jeremycaldwell CreditAttribution: jeremycaldwell commentedI worked on a theme not too long again that needed this sort of functionality. It had to have a fluid layout yet had fixed width sidebars. So this allowed for the content area to be totally flexible and have fixed width sidebars at all times.
Try with this bit of CSS as a base and modify as needed. It should get you started but will still take a bit more custom work to get it going correctly.
Hope that helps!
Comment #3
aristeides CreditAttribution: aristeides commentedthanks! that was really helpful....
marking this as fixed.
Comment #4
aristeides CreditAttribution: aristeides commentedActually.... after trying again and again to make this work, it didn't work as expected because of the way that fusion deals with grids. So... the way I see it, I'll have to change the grid.css file in the core theme (copy it of course to the sub-theme's css directory) but the problem I found was that mixing px values with % values in that file isn't as simple as it seems at first.
So.... does anyone have any ideas?
Of course it could be done the way described above with another theme, but I'd really love to do it with fusion....
Comment #5
aristeides CreditAttribution: aristeides commentedswitching back to "active"
Comment #6
tiptup CreditAttribution: tiptup commentedHi everbody :D
I'm on wordpress and im actually using your theme Mystique but i would like, without leaving the fluid mode, specify a size for the sidebar (330px).
This is my style.css : http://www.mediafire.com/?fxwg7cmbvt2nunp :) I can open you a administator account to make some changes.
Thank you for answer :D bye bye
Comment #7
jeremycaldwell CreditAttribution: jeremycaldwell commentedComment #8
stephthegeek CreditAttribution: stephthegeek commentedWill revisit this later in a next generation layout approach.
Comment #9
aristeides CreditAttribution: aristeides commented:) good to know.... with screen sizes getting larger all the time and simultaneously more mobile users coming to our sites, fixed vs fluid is getting more and more difficult to choose. Having a way to get the benefits of both worlds would be nice.
Comment #10
stephthegeek CreditAttribution: stephthegeek commentedYeah you'll see a responsive layout option for us before this, most likely. The mixed fixed+fluid on the same page is a whole other ballgame we can't address with the current foundation. And it's really hard in a dynamic CMS/regions :P
Comment #11
Poieo CreditAttribution: Poieo commentedThe use cases for this are pretty minimal with responsive design.