WebSite X5Help Center

 
Anke D.
Anke D.
User

Responsive Tabellen  de

Author: Anke D.
Visited 1809, Followers 3, Shared 0  

Hallo. ich möchte Tabellen einfügen, dei auch responsiv sind. Wie mache ich das bzw. gibt es Einstellmöglichkeiten dazu?

Posted on the
16 ANSWERS - 5 USEFUL
Andreas L.
Andreas L.
User

Hallo Anke,

von Haus aus sind die Tabellen leider nicht responsiv. Mit einem html oder text-objekt geht es.

<html>
<head>
<style>
#customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}

#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}

#customers tr:nth-child(even){background-color: #f2f2f2;}

#customers tr:hover {background-color: #ddd;}

#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
</head>
<body>

<table id="customers">
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Berglunds snabbköp</td>
<td>Christina Berglund</td>
<td>Sweden</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
<tr>
<td>Ernst Handel</td>
<td>Roland Mendel</td>
<td>Austria</td>
</tr>
<tr>
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>UK</td>
</tr>
<tr>
<td>Königlich Essen</td>
<td>Philip Cramer</td>
<td>Germany</td>
</tr>
<tr>
<td>Laughing Bacchus Winecellars</td>
<td>Yoshi Tannamuri</td>
<td>Canada</td>
</tr>
<tr>
<td>Magazzini Alimentari Riuniti</td>
<td>Giovanni Rovelli</td>
<td>Italy</td>
</tr>
<tr>
<td>North/South</td>
<td>Simon Crowther</td>
<td>UK</td>
</tr>
<tr>
<td>Paris spécialités</td>
<td>Marie Bertrand</td>
<td>France</td>
</tr>
</table>

</body>
</html>

Read more
Posted on the from Andreas L.
Andreas L.
Andreas L.
User

Im text-objekt muss Du den Code Makieren und auf den Button  klicken. Dann wird dieser als HTML Code erkannt.

Read more
Posted on the from Andreas L.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

(It > De) ... ... Ihr LINK würde Ihnen erlauben, auszuwerten ...
... ohnehin gibt es meinen EXTRA-Code, um die "elastischen" Tabellen zu erstellen ("no! responsive"):

<style> table {word-break: break-word;}  </style>
<script> $( document ).ready(function() { $("table").css("width", "");}); </script>

... Code zum Einfügen in den Abschnitt:

>> Schritt 3 - Sitemap > Eigenschaften der Seite Fenster > Funktionen im Bereich ErweitertBenutzerdefinierter Code: >- Vor dem </HEAD> Tag

.

ciao

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Michael E.
Michael E.
User

KolAsim, DANKE! Hat soeben super funktioiert. laughing

Read more
Posted on the from Michael E.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL
Michael Eder
KolAsim, DANKE! Hat soeben super funktioiert.

...... wink...

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Karl B.
Karl B.
User

Hallo KolAsim,

ab einer Auflösung von 480px wird ein horizontaler Scrollbalken angezeigt (Link). Gibt es eine Möglichkeit das zu verhindern?

Read more
Posted on the from Karl B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL
Karl B.
Hallo KolAsim, ab einer Auflösung von 480px wird ein horizontaler Scrollbalken angezeigt (Link). Gibt es eine Möglichkeit das zu verhindern?

+    #imTableObject_01 { overflow-x: hidden !important;}

...

<style> table {word-break: break-word;} #imTableObject_01 { overflow-x: hidden !important;} </style>

.

ciao

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Karl B.
Karl B.
User

So habe ich es eingefügt, aber der Scrollbalken wird trotzdem angezeigt.

<style> table {word-break: break-word;} #imTableObject_01 { overflow-x: hidden !important;} </style>

<script> $( document ).ready(function() { $("table").css("width", "");}); </script>

Read more
Posted on the from Karl B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

... im Link Ihrer Seite im Netz sehe ich den geänderten Code nicht ...
... lass es mich wissen, also kann ich nachschauen ...

ciao

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Andreas S.
Andreas S.
Moderator
Best User of the month DE

Da fehlt eine "}" Klammer beim Selektor "Table" !

Read more
Posted on the from Andreas S.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL
Karl B.
Sorry, hier ist die Seite mit dem geänderten Code.
Andreas S.
Da fehlt eine "}" Klammer beim Selektor "Table" !

... bestätige ich ...
<style> table {word-break: break-word;} #imTableObject_01 {overflow-x: hidden !important;} </style>

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Karl B.
Karl B.
User

@KolAsim ‪‪und Andreas S.

Perfekt!

Mein Fehler, sorry und vielen Dank nochmals für den Code und die Hilfe!

Ich verstehe nicht, wieso die "INCO-Entwickler" es nicht schaffen, diese zwei Codezeilen einzupflegen?

Euer Einverständnis unterstellt werde ich daher hierzu einen neuen Beitrag eröffnen, so dass dieses "Problem" mit dem nächsten Update behoben werden kann. 

Read more
Posted on the from Karl B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL

... OK ...
... aber im TEST/ im Netz habe ich die Korrektur nicht gesehen ... hallo, ciao ...wink...

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Karl B.
Karl B.
User
Read more
Posted on the from Karl B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month FRBest User of the month PL
Karl B.
Link

... test OK ... perfekt ...wink...

Read more
Posted on the from  ‪ KolAsim ‪ ‪