vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   CMS Layout (https://vborg.vbsupport.ru/showthread.php?t=281766)

Steve038 04-25-2012 03:48 AM

Yep, I tried:

.vbcms_content img { max-width:100%;}

and:

.vbcms_content img {max-width: 350px; max-height: 200px;}

The first one doesn't change anything, the second one makes the latest article image size 350px wide, but doesn't change the preview images at all. I don't want to change the size of the latest article image, just the preview images.

--------------- Added [DATE]1335329618[/DATE] at [TIME]1335329618[/TIME] ---------------

btw, I've currently set it to .vbcms_content img {max-width: 350px; max-height: 200px;} so you can see how it looks with this setting, if thats of any help?

dimobr 04-25-2012 05:28 AM

Hi,

Some of you might just help me remove the solid background of the cms? just want to use an image as background, I already use the same of forum.
I left the variable vbcms_body_background as transparent, but this option does not take effect throughout all cms.

sorry for bad english ...

Lynne 04-25-2012 03:10 PM

Your problem is this:

HTML Code:

.cms_article_preview_image {
    max-height: 150px;
    max-width: 150px !important;
}

It's got !important on it so it is overriding your CSS.

You need to get firebug and take a look at your CSS. It shows right up when you use that tool.

Lynne 04-25-2012 03:11 PM

Quote:

Originally Posted by dimobr (Post 2323284)
Hi,

Some of you might just help me remove the solid background of the cms? just want to use an image as background, I already use the same of forum.
I left the variable vbcms_body_background as transparent, but this option does not take effect throughout all cms.

sorry for bad english ...

Please start your own thread for you own problem.

dimobr 04-25-2012 06:47 PM

Quote:

Originally Posted by Lynne (Post 2323406)
Please start your own thread for you own problem.

like this? https://vborg.vbsupport.ru/showthread.php?t=281923

Steve038 04-25-2012 06:58 PM

Quote:

Originally Posted by Lynne (Post 2323405)
Your problem is this:

HTML Code:

.cms_article_preview_image {
    max-height: 150px;
    max-width: 150px !important;
}

It's got !important on it so it is overriding your CSS.

You need to get firebug and take a look at your CSS. It shows right up when you use that tool.

Which folder is this in Lynne, I'll go and remove the "!important"

Lynne 04-25-2012 08:35 PM

It should be in a template. Do a Search in Templates for that class.

Steve038 04-26-2012 01:05 AM

Lynne, you're awesome!!! Many thanks, its now working the way I want it to, and I'm able to size the preview images to my liking. I'd really love it if they could be automatically cropped to a size of my choosing, such as 330px x 220px, regardless of the original size, but I can resize them before I post them so they're all the same size to start with.

But this is great, and allows me to create my Home page in a way that suits me, and looks nice and tidy.

Thanks again for all your help Lynne, I really appreciate it.

Lynne 04-26-2012 01:19 AM

I'm glad you got it how you want. :)

Steve038 04-26-2012 04:01 AM

Thanks again Lynne, I'm really pleased with the outcome.


All times are GMT. The time now is 02:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01021 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete