minimum height for text and image blocks

Permalink Browser Info Environment
I have a supplementary question. Maybe you can help me with that. How can I set a minimum height for textblocks (the background should have a full color) and image blocks. I have not found a simple solution here in the forum. I would be happy if you could help me.

1 Attachment

Type: Pre-Sale
Status: Resolved
web089
View Replies:
shahroq replied on at Permalink Reply
shahroq
You cannot define height directly via core UI, yet for what you mean to do, the padding should serve the purpose:
Click on the block: select Design & Custom Template: Click on Margin & Padding icon and set Top/Botton Padding.
web089 replied on at Permalink Reply
web089
Thank you for the quick response. I know these settings, but it does not help in responsive mode on smartphones and tablets. It is clear when I use margin and padding settings that it also affects other end devices. I have read that someone is using javascript. Unfortunately, no contact was made.
shahroq replied on at Permalink Reply
shahroq
In that case, you can use custom.dev.less file and define a utility class for it. Plz, check `Instructions` Page #18.
You can use this template to define your desired height in different screens.

/*-----------------------------------------------------------------------------------
sample code for implement media queries
-----------------------------------------------------------------------------------*/
/*
body {border-top: 50px solid black;}
@media only screen and (max-width: 1199px) {body {border-color: MidnightBlue;}}
@media only screen and (min-width: 992px) and (max-width: 1199px) {body {border-color: Brown;}}
@media only screen and (max-width: 991px) {body {border-color: Salmon;}}
@media only screen and (min-width: 768px) and (max-width: 991px) {body {border-color: SkyBlue;}}
@media only screen and (max-width: 767px) {body {border-color: SpringGreen;}}
@media (min-width: 480px) and (max-width: 767px) {body {border-color: Orange;}}
@media only screen and (max-width: 479px) {body {border-color: GhostWhite;}}
*/
web089 replied on at Permalink Reply
web089
Thank you very much for ur help. I will try it.
web089 replied on at Permalink Reply
web089
Found another solution (add on) here in the shop. Thanks for your ideas.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210

# Database Information
Version: 5.6.48-88.0-log
SQL Mode: NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Enhanced Toolbar (3.4), EU Cookie Law (1.1.2), Pixel Theme (2.4.0), Responsive Embed (1.0.1), Stack Planner (1.2.2), Stack Popover (1.2.7)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
apache2handler

# PHP Version
7.2.29-he.0

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, geoip, gettext, hash, iconv, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDFlib, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, timezonedb, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 50
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 32M
upload_max_filesize - 32M
ldap.max_links - Unlimited
mysqli.max_links - 50
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; rv:68.0) Gecko/20100101 Firefox/68.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.