The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Images in CMS 100 percent
I'd like the images shown on the CMS to be 100% width.
not within the articles, but only on the "overview" (/content) Anyone know how to achieve this? I've made a temp solution, but that screws up most of my articles. (You can see what I mean here --> http://www.modellflynytt.no/content/ ) |
#2
|
||||
|
||||
I don't understand what you want. You seem to have set the images on that page to be 100% like you said you wanted, so what is wrong with what you did? What do you want it to look like if not how it looks like there?
|
#3
|
|||
|
|||
The only solution I have found for achieving that is by setting Image Thumbnail Max to 100%
That screws up a lot of the articles, and I also have to make a custom setup for the other image-sizes. What I basicly want is to avoid changes to the stylevars (/common/image_xxxx_max), and just edit the output of content/cms page. |
#4
|
||||
|
||||
Then set the image size specifically for images on that page.
HTML Code:
#section_content .fullwidth .cms_article_preview_image { max-height: 100%; max-width: 100% !important;} |
#5
|
|||
|
|||
woohoo!
Thanks a lot Amazing how easy stuff is once you know where to look for it |
#6
|
|||
|
|||
Hmmm.. After upgrading to 4.5.1PL1 this setting no longer works?
Tried changing the size, but no luck :/ |
#7
|
||||
|
||||
Where did you add the new css originally? I don't see it at all on your site.
|
#8
|
|||
|
|||
Its in my vbcms.css
.article_preview_contents ul > li, .article ul > li { list-style:disc inside; /* keeps the bullets from going inside the preview image */ } .cms_article_preview_image, .showpreviewonly object { border:{vb:stylevar vbcms_article_preview_image_border}; outline: {vb:stylevar vbcms_article_preview_image_outline}; float:{vb:stylevar left}; margin:{vb:stylevar vbcms_article_preview_image_margin}; } .cms_article_preview_image { max-height:400px; max-width:100% !important; } .showpreviewonly object { {vb:stylevar vbcms_article_preview_object_size}; } |
#9
|
||||
|
||||
My guess would be you have overwritten it. I do not see it in the css on your site right now.
|
#10
|
|||
|
|||
I also thought of that, but I can find it if I search for it. (Search in templates)
Is there a better place to put custom CSS? --------------- Added [DATE]1312962406[/DATE] at [TIME]1312962406[/TIME] --------------- As you can see in this image, its there... just not working |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|