vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to make my CMS previw article images the same size (https://vborg.vbsupport.ru/showthread.php?t=307092)

PAPPACLART 01-16-2014 01:26 PM

How to make my CMS previw article images the same size
 
Hello

I would like my CMS article preview iamges to be re sized so that they are the same size automatically. At the moment VB will re size them so that their width is the same but not height. I am not too fussed about formatting/aspect ratio of the pic being messed as I can work around that.


Is there an easy way to do this - which template would I have to look at to fix that?

I am running VB4.2.2 with the CMS.

My site here if it helps


Many Thanks Guys

Lynne 01-16-2014 05:18 PM

Well, if you don't care about what it does to the image, just add something like this:

HTML Code:

.cms_article_preview_image {
    height: 250px;}


PAPPACLART 01-17-2014 10:04 AM

Many Thanks Lynne though where do I put the code, in additional.css?

Edit

I put it in additional, works a treat though I change to 150px for now. As long as my original source images are roughly the same aspect ratio/size then it should look fine.

Cheers


All times are GMT. The time now is 08:56 AM.

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.01035 seconds
  • Memory Usage 1,712KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete