vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Fluid width youtube video modules (https://vborg.vbsupport.ru/showthread.php?t=322086)

shimei 03-11-2016 05:43 PM

Fluid width youtube video modules
 
Hi,

I am pretty excited to share some additions to my forum. I created step by step instructions on how to create fluid modules for youtube videos using the html static modules and addtional_css. Here's the link: Vbulletin 5 How to create fluid width Video modules Horizonatal Aligned

And here's a screen shot of the video modules:

https://vborg.vbsupport.ru/external/2016/03/9.jpg

DemOnstar 03-12-2016 10:53 AM

Well done sir....

Is there a link where people can see them demonstrated?

shimei 03-12-2016 08:04 PM

Quote:

Originally Posted by DemOnstar (Post 2567066)
Well done sir....

Is there a link where people can see them demonstrated?

Yes, here: https://www.christforums.org

Enjoy and thanks for the compliment Demostar!

DemOnstar 03-13-2016 09:37 AM

Hello there. . .

They look and act great with the PC. However, have you tried viewing them using your mobile?
I try to view them through Chrome using developer tools and whilst all the other modules are displayed the 2 modules Youtube ones are not visible....
I also tried a full zoom on Firefox and they disappear...
Not sure if that is a good test or not but it would have me scratching my head. . .

In Omnibus 03-13-2016 12:02 PM

Quote:

Originally Posted by DemOnstar (Post 2567107)
Hello there. . .

They look and act great with the PC. However, have you tried viewing them using your mobile?
I try to view them through Chrome using developer tools and whilst all the other modules are displayed the 2 modules Youtube ones are not visible....
I also tried a full zoom on Firefox and they disappear...
Not sure if that is a good test or not but it would have me scratching my head. . .

There should be media queries for @media screen (min-width: 320px) and (max-width: 667px) which cause the following two IDs to use 100% of the container width for small screen mobile devices:

div#widget_224.b-module.canvas-widget.default-widget.custom-html-widget {
width: 50%;
height: 100%;
border:thick solid #1C4F70 !important;
}

div#widget_225.b-module.canvas-widget.default-widget.custom-html-widget {
width: 50%;
height: 100%;
border:thick solid #1C4F70 !important;
}

667px is fine for newer smartphones but leaves out the 640px crowd, which is a huge percentage of smartphone users.

DemOnstar 03-13-2016 06:56 PM

@shimei

Quote:

Originally Posted by ProSportsForums (Post 2567110)
There should be media queries for @media screen (min-width: 320px) and (max-width: 667px) which cause the following two IDs to use 100% of the container width for small screen mobile devices:

div#widget_224.b-module.canvas-widget.default-widget.custom-html-widget {
width: 50%;
height: 100%;
border:thick solid #1C4F70 !important;
}

div#widget_225.b-module.canvas-widget.default-widget.custom-html-widget {
width: 50%;
height: 100%;
border:thick solid #1C4F70 !important;
}

667px is fine for newer smartphones but leaves out the 640px crowd, which is a huge percentage of smartphone users.

:up:

Thanks for that. . .
Guess that what community is about. . .

shimei 03-13-2016 06:57 PM

I am using @media queries to display: none on screen sizes below 667px. If one doesn't want that they only need not put the @media queries in additional_css. Or customize it as you have suggested.

I prefer not to display them on smaller screen resolutions. Actually, I try to make the site as bare bones as possible for little display devices.

DemOnstar 03-13-2016 06:58 PM

Quote:

Originally Posted by shimei (Post 2567137)
I prefer not to display them on smaller screen resolutions. Actually, I try to make the site as bare bones as possible for little display devices.

Makes sense now. . .
Seems we were posting at the same time. . .

In Omnibus 03-13-2016 09:51 PM

Quote:

Originally Posted by shimei (Post 2567137)
I am using @media queries to display: none on screen sizes below 667px. If one doesn't want that they only need not put the @media queries in additional_css. Or customize it as you have suggested.

I prefer not to display them on smaller screen resolutions. Actually, I try to make the site as bare bones as possible for little display devices.

Makes perfect sense. Everyone is going to have different needs. On my own sites I code everything for full HD 1920 X 1080 pixel resolutions. I think responsive design is entirely over-rated for modern technology. Virtually all new smartphones and tablets are now full HD resolution. But several clients still think their sites should cater to the iPhone 4 crowd so that's what they get. :)


All times are GMT. The time now is 01:27 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.02096 seconds
  • Memory Usage 1,736KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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