Image slider problems

Permalink Browser Info Environment
Hello

I am having problems with the image slider in the banner on the subpages. I have read the other support messages and can't seem to fix it - basically when I use a banner image (through the attributes) the image looks tidy and contained with the scroller underneath it. When I try to add an image slider into the banner editable area without using the c5box full slider custom template it again looks tidy and contained but there is a huge background area above and particularly below it, which looks especially bad in small (phone) screen sizes. When I add the c5box full slider custom template it looks even worse - the images are enlarged and spill out of the area covering the scroller and again this looks particularly bad in the phone screen size as it takes up a lot of room, and as only a tiny fraction of the image is shown that makes it look even worse (I realise this last point is due to the responsive nature of the images).

I have spent a lot of time fiddling with the Inspect Element function and altering the css (playing around with contain and the banner height etc) but cannot get it to look neat and the same as it does when there is just a single image there using the attribute without the extra spacing top and bottom.

Can you help?

Thanks so much in advance.

Lucy

Type: Ticket
Status: In Progress
ppisoban
View Replies:
ppisoban replied on at Permalink Reply
ppisoban
I've actually just managed to stop it spilling over the scroller (that was a bit of code I had altered) but the slider is still too high, much higher than the 600px of the innerpage banner.
c5box replied on at Permalink Reply
c5box
Hi there, thanks for reaching out.

For the banner part, there should be an element there that I set to height: 100vh. This element occupies the entire length of the vertical screen. I think this maybe the element you are looking for.

If you have your site up and running, please share a link so I can help inspect.

James
ppisoban replied on at Permalink Reply
ppisoban
Hi James

Thanks so much for your speedy reply! That was very helpful, I had played around a bit with the viewpoint height but I had problems with the padding so I couldn't quite get it right.

For anyone else having this problem in the future I fixed this by putting this code in the custom css section of the Design area of Concrete5. 625 pixels is the height of my images in the image slider.

.master-container #banner .bancontcenter .rslides>li {
    height: 625px!important;
    width: 100%;
}
.master-container #banner .bancontcenter {
    display: table-cell;
    vertical-align: middle;
    position: relative;
    padding: 0px 0px 30px 0px!important;
    z-index: 499;
    width: 100%;
}


This seems to work nicely - the images are not taking up the whole viewpoint area now and I can still see the scroller.

Cheers

Lucy

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.7
Version Installed - 8.5.7
Database Version - 20210623000000

# Database Information
Version: 10.3.36-MariaDB-log-cll-lve
SQL Mode: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Framework Theme (1.7.9), Mega Menu (1.6.4), Simple Gallery (1.0.9)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
LiteSpeed

# Server API
litespeed

# PHP Version
7.4.32

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, ionCube Loader, json, libxml, litespeed, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, SPL, sqlite3, standard, timezonedb, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 360
max_input_vars - 8000
memory_limit - 256M
post_max_size - 512M
upload_max_filesize - 512M
ic24.api.max_timeout - 7
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
unserialize_max_depth - 4096

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.