The Million Dollar Question - Who will figure it out?
Posted 14 years 11 months ago
Hello Rocketeeeeers!
Here's a question that might stump you:
How can you get an image with a perfect 960 pixel width, show up flush when published in any of the Gantry module positions? If you're about to reply with a link to the Module Positions page close this post immediately and go back to eating your fallaffel.
For the person with an actual answer:
Will the flush module suffix do it? How about flushtop? Maybe basic module suffix?
Well, I'm attaching screen shots of a custom_html module published in the showcase a position with these 3 module suffixes BUT you'll see that the image does not align "flush"
The last image is the same module, published with GAVICKS module suffix "advert" in GAVICS "Party Freak" template. You'll notice that the image aligns perfectly flush with no paddings or margins.
Re: The Million Dollar Question - Who will figure it out?
Posted 14 years 11 months ago
So I get the million if I answer this?
It depends a bit on the template but basically you can make every module-position exactly 960px wide via css. Do you have an example?
Re: The Million Dollar Question - Who will figure it out?
Posted 14 years 11 months ago
You cant do that last step with a mod suffix:
You have to add
#rt-showcase2 div.rt-grid-12 {margin: 0;}
to the template.css to get of the last 10px to the left and right.
You could use a page-suffix (with page-suffix-feature of gantry turned "on")
like "b-flush-showcase2" to limit this to certain pages ...
css would look like
.b-flush-showcase2 #rt-showcase2 div.rt-grid-12 {margin: 0;}
Re: The Million Dollar Question - Who will figure it out?
Posted 14 years 11 months ago
B-Inspired,
I tried to follow one of your suggestions (as best I could) but still couldn't quite get that final step you were explaining. Looked as if the only file i needed to edit was the template.css right?
Here's the code to mine, did I do it right?
Also, is there another suffix I need to type or is the module suffix no longer necessary?
/* Bullet Styles */
ul.bullet-1, ul.bullet-2, ul.bullet-3, ul.bullet-4, ul.bullet-5, ul.bullet-6, ul.bullet-7, ul.bullet-8, ul.bullet-9 {padding: 0 0 0 5px; margin: 0 0 15px;}
ul.bullet-1 li, ul.bullet-2 li, ul.bullet-3 li, ul.bullet-4 li, ul.bullet-5 li, ul.bullet-6 li, ul.bullet-7 li, ul.bullet-8 li, ul.bullet-9 li {list-style: none;padding: 0 0 0 15px;margin: 0 0 3px;background-repeat: no-repeat;background-position: 0 5px;}
ul.bullet-1 li a, ul.bullet-2 li a, ul.bullet-3 li a, ul.bullet-4 li a, ul.bullet-5 li a, ul.bullet-6 li a, ul.bullet-7 li a, ul.bullet-8 li a, ul.bullet-9 li a {font-size: 100%;line-height: 1.7;}
ul.bullet-1 li {background-image: url(../images/typography/bullet1.png);}
ul.bullet-2 li {background-image: url(../images/typography/bullet2.png);}
ul.bullet-3 li {background-image: url(../images/typography/bullet3.png);}
ul.bullet-4 li {background-image: url(../images/typography/bullet4.png);}
ul.bullet-5 li {background-image: url(../images/typography/bullet5.png);}
ul.bullet-6 li {background-image: url(../images/typography/bullet6.png);}
ul.bullet-7 li {background-image: url(../images/typography/bullet7.png);}
ul.bullet-8 li {background-image: url(../images/typography/bullet8.png);}
ul.bullet-9 li {background-image: url(../images/typography/bullet9.png);}
was for the basic template and just for the FEATURE-position.
Your picture seems to be in the SHOWCASE-position (?).
If I remember right flush and basic can be used.
If you have a link to something I can tell you how to get the 960px width ...