Table in div container with weird gap - html

Hi there's this weird gap beside the td, when viewed at 375px. Which part causes this, and how do I get rid of it?
The table is inside a div with container class btw. Both the table and tr inherit 100% of the width (375.2px when viewed at that pixel), but for some reason the td only inherits 370.4 - there is a missing 4.8px.
HTML:
<div className="container container--margin--top container--font">
<table className="header__table--margin--btm">
<thead>
<tr>
<th className="text article__title">Article Title</th>
<th className="text snippet">Snippet (click to view article)</th>
</tr>
</thead>
</table>
<ArticleRow dataArray={dataArray} />
</div>
JS:
const ArticleRow = ({dataArray}) => {
const dataRow = dataArray.map(row => {
return (
<tr key={row.title}>
<td className="title">{row.title}</td>
<td className="content__div">
{row.content}
</td>
</tr>
);
});
return (
<table>
<tbody>
{dataRow}
</tbody>
</table>
);
}
CSS:
table {
border-collapse: separate;
border-spacing: 2px;
border-color: grey;
.title {
background: $title-bg;
color: $content-bg;
text-align: right;
width: 15.4rem;
padding-right: 1rem;
font: 500 2.1rem "Garamond", serif;
border: 1px solid rgba(39, 41, 50, 0.1);
}
.content__div {
//border: 1px solid rgba(250, 250, 250, 0.1);
}
.content {
display: block;
background: $content-bg;
color: $title-bg;
text-decoration: none;
padding: 1rem 1.5rem;
:hover {
text-decoration: none;
color: $title-bg;
opacity: 0.9;
}
}
}
#media (max-width: 550px) {
table .title {
padding-left: 0.4rem;
padding-right: 0.4rem;
width: auto;
}
.container {
padding: 0;
}
.container--margin--top {
margin-top: 1.5rem;
}
.article__title {
width: 9.8rem;
padding-right: 0.4rem;
text-align: inherit;
}
.search__bar {
width: 20rem;
}
}
#media (max-width: 376px) {
.title {
position: absolute;
margin-top: -2.8rem;
margin-left: 2px;
}
.container--margin--top {
margin-top: 1rem;
}
.header__table--margin--btm {
margin-bottom: 2.9rem;
}
tbody tr:not(:last-child) .content__div {
padding-bottom: 4rem;
}
}
https://github.com/helplah/react-wikipedia

I found the answer. The missing 4px originated from border-collapse: separate. Once I unset it, the gap disappears. I tested it on both firefox and chrome, it works on both browsers.

Related

div not taking full width of screen on mobile, when there's a wide table underneath

Having read a lot of other posts for 'div not taking full width', I still can't find an answer as to why the following happens with my website:
I have a responsive topnav navigation bar that works perfectly in Chrome on a Win11 machine. On an Android mobile however, the topnav only takes the full width of the browser when the table is less 'narrow'. It seems that when the table becomes wider, the topnav doesn't follow suit.
HTML + PHP:
<?php
// Include the database connection file
include_once("config.php");
$usr = $_GET['usr'];
// Fetch measurements (in descending order)
$result = mysqli_query($mysqli, "SELECT * FROM ".$usr." ORDER BY ts DESC");
?>
<!DOCTYPE html>
<html lang="nl">
<head>
<title>MariaDB Bloeddruk</title>
<link rel="stylesheet" href="../styles.css">
</head>
<body>
<div class="topnav" id="myTopNav">
<?php include("../header.php") ?>
</div>
<div>
<table>
<thead>
<tr>
<th>Datum</th>
<th>Tijd</th>
<th>Bovendruk</th>
<th>Onderdruk</th>
<th>Hoge Bloeddruk</th>
<th>Hartslag</th>
<th>Onregelmatige Hartslag</th>
<th>AF Modus</th>
<th>AF gedetecteerd</th>
<th>Manchet OK</th>
<th><a class="button" href="add.php?usr=<?php echo $usr ?>">Nieuwe meting</a></th>
</tr>
</thead>
<tbody>
<?php
// Print measurements
while($res = mysqli_fetch_array($result)) {
echo "<tr>";
$dt = substr($res['ts'],0,10);
$tm = substr($res['ts'],-8,8);
echo "<td>".$dt."</td>";
echo "<td>".$tm."</td>";
echo "<td>".$res['sys_bp']."</td>";
echo "<td>".$res['dia_bp']."</td>";
echo "<td><input ".($res['high_bp'] == 1 ? "checked" : "")." type='checkbox' onclick='return false;'</td>";
echo "<td>".$res['hr']."</td>";
echo "<td>".($res['irregular_rythm'] == '' ? "</td>" : "<input ".($res['irregular_rythm'] == 1 ? "checked" : "")." type='checkbox' onclick='return false;'</td>");
echo "<td><input ".($res['af_mode'] == 1 ? "checked" : "")." type='checkbox' onclick='return false;'</td>";
echo "<td>".($res['af_detected'] == '' ? "</td>" : "<input ".($res['af_detected'] == 1 ? "checked" : "")." type='checkbox' onclick='return false;'</td>");
echo "<td><input ".($res['cuff_ok'] == 1 ? "checked" : "")." type='checkbox' onclick='return false;'</td>";
echo "<td>Bewerken | Verwijderen</td>";
}
?>
</tbody>
</table>
</div>
</body>
</html>
rendered HTML/code snippet:
body {
font-family: Verdana, Tahoma, sans-serif;
font-size: calc(16px + 0.25vw);
}
.topnav {
overflow: hidden;
background-color: #a6e1fa;
margin-bottom: 20px;
position: sticky;
top: 0;
}
.topnav a {
float: left;
display: block;
color: #fff;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.topnav a:hover {
background-color: #bbb;
color: black;
}
.topnav a.active {
background-color: #001c55;
color: white;
}
.topnav .icon {
display: none;
}
#media screen and (max-width: 600px) {
.topnav a:not(:first-child) {display: none;}
.topnav a.icon {
float: right;
display: block;
}
}
#media screen and (max-width: 600px) {
.topnav.responsive {position: relative;}
.topnav.responsive .icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
}
a {
color: #0a2472;
text-decoration: none;
padding: 6px;
}
table {
border-collapse: collapse;
border: 1px solid #0e6ba8;
margin-left: auto;
margin-right: auto;
}
table th {
background-color: #0e6ba8;
color: #fff;
font-weight: bold;
padding: 18px 12px;
position: sticky;
top: 0;
}
table tr:nth-child(even) {
background-color: #caf0f8;
}
table tr {
border-bottom: 1px dotted #0e6ba8;
}
table td {
padding: 12px;
text-align: center;
}
table td:first-child {
white-space: nowrap;
}
form table {
width: 33%;
}
form table tr:nth-child(even) {
background-color: #fff;
}
form table tfoot {
background-color: #0e6ba8;
}
form table td:first-child {
white-space: normal;
}
.button {
border: 1px solid #001c55;
border-radius: 10px;
background-color: #001c55;
color: #fff;
text-decoration: none;
padding: 6px;
min-width: 100px;
white-space: nowrap;
}
.button:hover {
background-color: #fff;
color: #001c55;
cursor: pointer;
}
input {
font-size: inherit;
}
input[type=number] {
width: calc(4 * (16px + 0.25vw));
text-align: center;
}
input[type=checkbox] {
width: calc(16px + 0.25vw);
height: calc(16px + 0.25vw);
}
input[type=checkbox]:checked {
accent-color: #0a2472;
background-color: #000;
}
input[type=submit] {
border: 1px solid #001c55;
border-radius: 10px;
background-color: #001c55;
color: #fff;
text-decoration: none;
padding: 10px;
min-width: 100px;
}
input[type=submit]:hover {
background-color: #fff;
color: #001c55;
cursor: pointer;
}
input[type=submit].cancel {
background-color: #bbb;
background-color: #bbb;
border: 1px solid #bbb;
}
input[type=submit].cancel:hover {
background-color: #fff;
color: #bbb;
cursor: pointer;
}
.float-right {
float: right;
}
.error {
color: red;
font-size: 12px;
}
<html lang="nl"><head>
<title>MariaDB Bloeddruk</title>
<link rel="stylesheet" href="../styles.css">
</head>
<body>
<div class="topnav" id="myTopNav">
HomeBloeddruk - JoostVijverwaterWatermeterWaterlekkage <i class="fa fa-bars"></i></div>
<div>
<table>
<thead>
<tr>
<th>Datum</th>
<th>Tijd</th>
<th>Bovendruk</th>
<th>Onderdruk</th>
<th>Hoge Bloeddruk</th>
<th>Hartslag</th>
<th>Onregelmatige Hartslag</th>
<th>AF Modus</th>
<th>AF gedetecteerd</th>
<th>Manchet OK</th>
<th><a class="button" href="add.php?usr=joost">Nieuwe meting</a></th>
</tr>
</thead>
<tbody>
<tr><td>2022-10-29</td><td>09:23:00</td><td>140</td><td>80</td><td><input checked="" type="checkbox" onclick="return false;" <="" td=""></td><td>50</td><td></td><td><input type="checkbox" onclick="return false;" <="" td=""></td><td></td><td><input type="checkbox" onclick="return false;" <="" td=""></td><td>Bewerken | Verwijderen</td></tr></tbody>
</table>
</div>
</body></html>
Got it solved by adding max height/width and auto overflow to the div containing the table:
CSS added:
.tableContainer {
max-width: 100vw;
max-height: 100vh;
overflow:auto;
}
And of course classified the div that wraps the table as "tableContainer":
<div class="tableContainer">
<table>
<thead>
<tr>
<th>Datum</th>
...

CSS search button style being overridden by User Agent Stylesheet

When the code below renders in ANY browser, the user agent stylesheet is overriding the form.example in my CSS for the search button. The button is appearing small and not the same size as the input box as it used to. I have confirmed this using the browser console. It's strange because the same CSS has been working fine for months and I haven't changed anything. It stopped working all of a sudden. Strangely, when I run the same code in https://www.codeply.com/p it seems to render correctly.
Here is code:
body {
margin: 0;
height: 100%;
font-family: Courier New, monospace; color: white;
}
{
box-sizing: border-box;
font-family: Courier New, monospace; color: white;
}
/* Style the top navigation bar */
.topnav {
overflow: hidden;
background-color: #333;
font-family: Courier New, monospace;
}
/* Style the topnav links */
.topnav a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change color on hover */
.topnav a:hover {
background-color: rgb(48, 10, 36);
color: black;
}
/* Style the content */
.content {
background-color: rgb(48, 10, 36);
padding: 10px;
height: 100%; /*Should be removed. Only for demonstration */
}
table,
td {
border: 1px solid #333;
}
thead,
tfoot {
background-color: #333;
color: #fff;
}
/* Style the footer bar */
.footer {
overflow: hidden;
background-color: #333;
font-family: Courier New, monospace;
}
/* Style the footer links */
.footer a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change color on hover */
.footer a:hover {
background-color: rgb(48, 10, 36);
color: black;
}
/* Style the footer
.footer {
background-color: #333;
padding: 10px;
color: white;
}
*/
/* Style the search box */
input[type=text] {
padding: 10px;
font-size: 17px;
border: 1px solid grey;
float: left;/* CSS for search file */
body {
font-family: Courier New, monospace;
}
* {
box-sizing: border-box;
}
form.example
width: 80%;
background: #f1f1f1;
}
}
table.example
width: 100%;
background: #f1f1f1;
}
form.example button {
float: left;
width: 30%;
padding: 10px;
background: #2196F3;
color: white;
font-size: 17px;
border: 1px solid grey;
border-left: none;
cursor: pointer;
}
form.example button:hover {
background: #0b7dda;
}
form.example::after {
content: "";
clear: both;
display: table;
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Ramster</title>
<link rel="stylesheet" href="/static/index.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, height=100%">
</head>
<body>
<div class="topnav">
Home
Leagues
Teams
Players
</div>
<div class="content">
<h2>Ramster</h2>
<p>A place to play</p>
<form class="example" method="post" action="" style="margin:left;max-width:600px">
<input type="text" placeholder="Search by team or player" name="name">
<button type="submit">Search</button>
</form>
<p></p>
</div>
<div class="content">
<table class="example">
<thead>
<tr>
<th colspan="1">Name</th>
<th colspan="1">Position</th>
<th colspan="1">Team</th>
<th colspan="1">Buy</th>
</tr>
</thead>
{% for item in data %}
<tbody>
<tr>
<td>{{item[1]}}</td>
<td>{{item[2]}}</td>
<td>{{item[3]}}</td>
<td>Buy</td>
{% endfor %}
</tr>
</tbody>
</table>
</div>
<div class="topnav">
Login
Register
Logout
</div>
</body>
</html>
You missed the { in form.example and got one closing } to much after it. Therefore its missing on input[type=text] {
Should work:
form.example {
width: 80%;
background: #f1f1f1;
}
input[type=text] {
padding: 10px;
font-size: 17px;
border: 1px solid grey;
float: left;/* CSS for search file */
}
JSFiddle
OR
body {
margin: 0;
height: 100%;
font-family: Courier New, monospace; color: white;
}
{
box-sizing: border-box;
font-family: Courier New, monospace; color: white;
}
/* Style the top navigation bar */
.topnav {
overflow: hidden;
background-color: #333;
font-family: Courier New, monospace;
}
/* Style the topnav links */
.topnav a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change color on hover */
.topnav a:hover {
background-color: rgb(48, 10, 36);
color: black;
}
/* Style the content */
.content {
background-color: rgb(48, 10, 36);
padding: 10px;
height: 100%; /*Should be removed. Only for demonstration */
}
table,
td {
border: 1px solid #333;
}
thead,
tfoot {
background-color: #333;
color: #fff;
}
/* Style the footer bar */
.footer {
overflow: hidden;
background-color: #333;
font-family: Courier New, monospace;
}
/* Style the footer links */
.footer a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change color on hover */
.footer a:hover {
background-color: rgb(48, 10, 36);
color: black;
}
/* Style the footer
.footer {
background-color: #333;
padding: 10px;
color: white;
}
*/
/* Style the search box */
input[type=text] {
padding: 10px;
font-size: 17px;
border: 1px solid grey;
float: left;/* CSS for search file */
}
body {
font-family: Courier New, monospace;
}
* {
box-sizing: border-box;
}
form.example {
width: 80%;
background: #f1f1f1;
}
table.example {
width: 100%;
background: #f1f1f1;
}
form.example button {
float: left;
width: 30%;
padding: 10px;
background: #2196F3;
color: white;
font-size: 17px;
border: 1px solid grey;
border-left: none;
cursor: pointer;
}
form.example button:hover {
background: #0b7dda;
}
form.example::after {
content: "";
clear: both;
display: table;
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Ramster</title>
<link rel="stylesheet" href="/static/index.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, height=100%">
</head>
<body>
<div class="topnav">
Home
Leagues
Teams
Players
</div>
<div class="content">
<h2>Ramster</h2>
<p>A place to play</p>
<form class="example" method="post" action="" style="display:inline;">
<input type="text" placeholder="Search by team or player" name="name">
<button type="submit">Search</button>
</form>
<p></p>
</div>
<div class="content">
<table class="example">
<thead>
<tr>
<th colspan="1">Name</th>
<th colspan="1">Position</th>
<th colspan="1">Team</th>
<th colspan="1">Buy</th>
</tr>
</thead>
{% for item in data %}
<tbody>
<tr>
<td>{{item[1]}}</td>
<td>{{item[2]}}</td>
<td>{{item[3]}}</td>
<td>Buy</td>
{% endfor %}
</tr>
</tbody>
</table>
</div>
<div class="topnav">
Login
Register
Logout
</div>
</body>
</html>
It seems there an update in the API or something.
I would suggest to set the overwritten styles an !important flag and/or try a browser style-reset:
td /*!important flag*/
{
border: 1px solid #333 !important;
}
*, html /*set every element an initial style (style-reset)*/
{
margin: 0;
padding: 0;
}

HTML table doesn't start until next page if it's too large

I'm using WickedPDF to convert HTML to PDF and for some reason, even though I thought I had the proper HTML code, my tables still seem to be breaking onto the next page. Mind you, the information that starts in the <td> is actually a nested table, so I'm not sure if this has anything to do with it.
Here's what it looks like in the report:
Here's my CSS code that I'm working with:
<style>
p, ul {
color: #545658;
font-size: 12pt;
font-family: "Arial";
font-weight: 500;
}
* {
font-family: "Arial";
}
h1 {
color: #ED1C24;
font-weight: normal;
font-family: "Arial";
}
th {
padding-top: 12px;
padding-bottom: 12px;
text-align: center;
background-color: black;
color: white;
}
td {
color: #545658;
padding-top: 5px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 5px;
}
table.bordered {
border-collapse: collapse;
}
table.bordered td {
border: 1px solid black;
}
table.bordered tr:first-child td {
border-top: 0;
}
table.bordered tr td:first-child {
border-left: 0;
}
table.bordered tr:last-child td {
border-bottom: 0;
}
table.bordered tr td:last-child {
border-right: 0;
}
tr.bordered:nth-child(even) {background-color: #f2f2f2}
img.finding {
position:absolute;
width:60%;
height: 40px;
margin-left: -20px;
max-width: 100%;
z-index:-1;
}
p.finding {
display: inline;
color: white;
font-weight: bold;
font-size: 16pt;
line-height: 1.75em;
}
code {
background-color: #eee;
border: 1px solid #999;
display: block;
padding: 5px;
font-family: "Courier";
font-size: 9.5pt;
color: black;
}
pre {
white-space: pre-wrap; /* Since CSS 2.1 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-break: break-all;
}
table { page-break-inside: auto; width: 100%;}
thead { display: table-row-group; }
tr { page-break-inside: auto; }
</style>
What am I doing wrong that's causing my table to not start until the next page just because its contents is too large for the remainder of the previous page? I thought my tr { page-break-inside: auto; } line would have taken care of this. Is it because I have a nested table perhaps?
This ONLY happens on nested HTML tables. Normal HTML tables start on the same page no matter the length of the content.
Here's an example HTML table:
<html>
<body >
<table border=5 bordercolor=red>
<tr>
<td>
Fisrt Column of Outer Table
</td>
<td>
<table border=5 bordercolor=green>
<tr>
<td>
[lots of data right here]
</td>
</tr>
<tr>
<td>
[lots of data right here]
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

Highlight a row on Click not working. CSS precedence

Here's the table in my html file. I have to highlight a row on click.
<tbody>
<!--display none-->
<!--onclick-->
<tr ng-repeat="case in lastten" ng-click="setSelected(case.Name)" ng-class="{selected: case.Name === idSelected}">
<td colspan="1">{{case.Name}}</td>
<td colspan="1">{{case.total}}</td>
<td colspan="1">{{case.passed}}</td>
<td colspan="1">{{case.failed}}</td>
</tr>
</tbody>
css- initialTable is the class for the above table
table.InitialTable {
table-layout: fixed;
width: 100%;
font-family: Helvetica, Arial, sans-serif;
margin-top: 20px;
margin-bottom: 20px;
border-collapse: collapse;
border-spacing: 0;
}
table.InitialTable td,
th {
border: 1px solid transparent;
height: 40px;
transition: all 0.3s;
overflow: hidden;
}
table.InitialTable th {
font-weight: bold;
text-align: center;
vertical-align: middle;
}
table.InitialTable td {
text-align: center;
vertical-align: middle;
}
table.InitialTable tr:nth-child(even) {
background: #f3f7fb;
}
table.InitialTable tr:nth-child(odd) {
background: #ffffff;
}
.InitialTable tr:hover td {
background: #eee;
}
.selected {
background: red;
}
Here's the angular code-
$scope.idSelected = null;
$scope.setSelected = function(idSelected) {
$scope.idSelected = idSelected;
};
So basically whenever a row is selected it gets the class selected and it should be highlighted. But the css is not working. So is the precedence of .selected below the hover ? I also tried a lot of other combinations , but it didn't work. Even important isn't working . I've been stuck at this for quite a while now .

HTML/CSS Table height ignored in Internet Explorer

I'm adding a new 'News Container' to a slightly older webpage at our firm.
This container is made up of a 2x3 table. I want the Cell 2x2 to be as High as the Text.
Here's the Problem:
Everybody uses IE in our offices (Security reasons etc.) but for some reason IE ignores the height attribute given either directly in HTML (style="height:;" or height="") or in a separate CSS.
So in Chrome it looks like this (how it should):
╔════════════════╗
╠══╦═════════════╣
║  ║Test String  ║
║  ╠═════════════╣
╚══╩═════════════╝
And in Internet Explorer like this:
╔════════════════╗
╠══╦═════════════╣
║  ║Test String  ║
║  ║ ║
║  ╠═════════════╣
╚══╩═════════════╝
Picture: http://imgur.com/a/jQXhQ
View it yourself (Open in both Chrome and IE) here.
How can I get IE to use the Height attribute or alternatively is there a different way?
IE Version: 11.0.9600.17358
Update: 11.0.13
Code:
<table id="NewsTable">
<tr>
<th id="NewsHeader" colspan="2">IT Status</th>
</tr>
<tr>
<td rowspan="2">
<img id="NewsAmpel" alt="NewsStatus" src="Ampel/AmpelA.jpg" width="36px" height="100px">
</td>
<td id="NewsStatus"><b>Status:    </b>Test String</td>
</tr>
<tr>
<td id="NewsDesc"><b>Description: </b>Sample Text</td>
</tr>
i have made some changes in html as well as CSS
Working Fiddle
http://jsfiddle.net/UzCRc/60/
HTML
<table id="NewsTable">
<tr>
<th id="NewsHeader" colspan="2">IT Status</th>
</tr>
<tr>
<td id="NewsAmpel">
<img alt="NewsStatus" src="Ampel/AmpelA.jpg" width="36px" height="100px">
</td>
<td id="NewsStatus"><b>Status:    </b>Test String</td>
<td id="NewsDesc"><b>Description: </b>Sample Text</td>
</tr>
</table>
CSS
#NewsAmpel{
width:36px;
}
body {
font-family: Verdana, sans-serif;
font-size: 13px;
}
h1 {
font-size: 15px;
font-weight: bold;
}
h2 {
font-size: 14px;
body {
font-family: Verdana, sans-serif;
font-size: 13px;
}
h1 {
font-size: 15px;
font-weight: bold;
}
h2 {
font-size: 14px;
font-weight: bold;
}
img {
border: 0;
}
a {
color: #00538E;
}
#content {
width: 100%;
float: left;
}
#center {
width: 600px;
height: auto;
margin: 0 auto;
}
font-weight: bold;
}
img {
border: 0;
}
a {
color: #00538E;
}
#content {
width: 100%;
float: left;
}
#center {
width: 600px;
height: auto;
margin: 0 auto;
}
#NewsTable {
border: 2px solid #000000;
background-color: #FFFFFF;
width: 100%;
}
#NewsStatus {
height: 20px;
padding:0;
border-bottom: 1px solid #000000;
width: 100%;
vertical-align: top;
display:block;
}
#NewsDesc {
height: 20px;
width: 100%;
margin:0;
padding:0;
display:block;
}
#NewsHeader {
text-align: center;
font-size: 14px;
font-weight: bold;
border: 1px solid #000000;
background-color: #FF1000;
}
Changes in html
Removed colspan
added image TD in same TR
Instead of image, ID has given to TD
CSS changes
#NewsStatus {
height: 20px;
padding:0;
border-bottom: 1px solid #000000;
width: 100%;//modified
vertical-align: top;
display:block;//added
}
#NewsDesc {
height: 20px; //added
width: 100%;//modified
margin:0;
padding:0;
display:block;//added
}
#NewsAmpel{
width:36px;
}