Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. I need to create a html table (or something similar looking) with a fixed header and a fixed first column. Every solution I've seen so far uses Javascript or jQuery to set scrollTop/scrollLeft, but it doesn't work smoothly on mobile browsers, so I'm looking for a pure CSS solution.

  2. 13 Αυγ 2024 · Examples. Fixed-width tables with text-overflow. This example uses a fixed table layout, combined with the width property, to restrict the table's width. The text-overflow property is used to apply an ellipsis to words that are too long to fit.

  3. 14 Ιαν 2024 · This code creates an HTML table with a fixed header and a fixed first column using CSS position:sticky. The table remains fluid in height and width, and it also includes a fixed footer. Browsers supporting position:sticky will display the fixed elements.

  4. 6 Ιαν 2020 · A few months ago I built an example of fixed table headers that used CSS position: sticky, partly to demonstrate it is possible but mostly to try to dissuade client (s) from using a double- <table> approach or an all- <div> approach.

  5. 2 Ιουλ 2014 · It is this: table { table-layout: fixed; } The default property for table-layout is auto, and that is the table layout I think most of us are familiar with. That style, to me, feels spongy and weird. Here’s an exploration: With table-layout: fixed; Things get a lot sturdier and more predictable with property/value in place.

  6. The position property specifies the type of positioning method used for an element (static, relative, fixed, absolute or sticky).

  7. 12 Αυγ 2024 · To do this, add the following CSS to your style.css file: css /* spacing */ table { table-layout: fixed; width: 100%; border-collapse: collapse; border: 3px solid purple; } thead th:nth-child(1) { width: 30%; } thead th:nth-child(2) { width: 20%; } thead th:nth-child(3) { width: 15%; } thead th:nth-child(4) { width: 35%; } th, td { padding: 20px; }

  1. Γίνεται επίσης αναζήτηση για