Minimal tables width


#1

Hello,
I have a question about a problem. I inserted a table in Blocs via PHP code. This is also responsive. Unfortunately only up to a certain point. Then she stops being smaller. How can I change this?

Best regards
David


#2

Do you have a link to the table code which you use? Otherwise it is very hard to help you.


#3

The table is inserted in a PHP code snippet. And the code looks like this:

echo "	<div class=\"container bloc-sm\">\n"; 
echo "		<div class=\"row\">\n"; 
echo "			<div class=\"col-sm-12\">\n"; 
echo "					<center><h1>KW " . $kalenderwoche . " / " . $jahr . "</h1></center>\n"; 
echo "					<center><button id=\"kwzurueck\" type=\"button\" class=\"btn btn-success\"><<<</button>\n"; 
echo "					<button id=\"kwvor\" type=\"button\" class=\"btn btn-success\">>>></button>\n";
echo "					<button id=\"kwvor\" type=\"button\" class=\"btn btn-primary hidden-print\"><span class=\"glyphicon glyphicon-print\" aria-hidden=\"true\"></span>Drucken</button>\n<br>";
echo "					<center><h3>" . date("d.m.Y", $timestamp_montag) . " <-> " . date("d.m.Y", $timestamp_samstag) . "</h3></center>\n"; 
echo "			</div>\n"; 
echo "		</div>\n"; 
echo "		<div class=\"row voffset\">\n"; 
echo "				<div class=\"col-sm-12\">\n"; 
echo "					<table class=\"table table-bordered table-striped\">\n"; 
echo "						<thead class =\"thead-dark\">\n"; 
echo "							<tr>\n"; 
echo "								<th style=\"vertical-align : middle;text-align:center;\" scope=\"col\">Dienste</th>\n"; 
echo "								<th style=\"vertical-align : middle;text-align:center;\" scope=\"col\">Montag<br>" . date("d.m.Y", strtotime("{$jahr}-W{$kalenderwoche}")) ."</th>\n"; 
echo "								<th style=\"vertical-align : middle;text-align:center;\" scope=\"col\">Dienstag<br>" . date("d.m.Y", strtotime("{$jahr}-W{$kalenderwoche}-2")) . "</th>\n"; 
echo "								<th style=\"vertical-align : middle;text-align:center;\" scope=\"col\">Mittwoch<br>" . date("d.m.Y", strtotime("{$jahr}-W{$kalenderwoche}-3")) . "</th>\n"; 
echo "								<th style=\"vertical-align : middle;text-align:center;\" scope=\"col\">Donnerstag<br>" . date("d.m.Y", strtotime("{$jahr}-W{$kalenderwoche}-4")) . "</th>\n"; 
echo "								<th style=\"vertical-align : middle;text-align:center;\" scope=\"col\">Freitag<br>" . date("d.m.Y", strtotime("{$jahr}-W{$kalenderwoche}-5")) . "</th>\n"; 
echo "								<th style=\"vertical-align : middle;text-align:center;\" scope=\"col\">Samstag<br>" . date("d.m.Y", strtotime("{$jahr}-W{$kalenderwoche}-6")) . "</th>\n"; 
echo "							</tr>\n"; 
echo "						</thead>\n"; 
echo "						<tbody>\n"; 
echo "							<tr>\n"; 
echo "								<th style=\"vertical-align : middle;text-align:center;\" scope=\"row\">Frühdienst</th>\n";
echo "</td>\n";
echo "							</tr>\n"; 
echo "							</tr>\n"; 
echo "						</tbody>\n"; 
echo "					</table>\n"; 
echo "				</div>\n"; 
echo "			</div>\n"; 
echo "	</div>\n"; 

Thank you for you help.

Best regards
David