<!DOCTYPE html>
<html lang="he">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>One row text title By CSS</title>
<style>
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Global Rules */
html, body {
height: 100%;
width: 100%;
overflow-x: hidden;
}
.wrapper.row {
direction: rtl;
max-width: 1800px;
margin: 0 auto;
display: flex;
gap: 10px;
}
.section.ue_post_grid_item {
max-width: 25%;
padding: 20px;
min-height: 320px;
display: inline-flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
/* .slider-container .section {
position: absolute;
width: 100vh; /* Switch width by height */
/*height: 100vw; /* Switch height by width */
/* display: flex;
justify-content: center;
align-items: center;
font-size: 3rem;
color: white;
transform: rotate(-90deg); /* Flip all */
/* transition: transform 0.5s ease-in-out;
}*/
/* Each section is stacked vertically */
.section-1 { top: 0; left: 0; background-color: #ff6f61; }
.section-2 { top: 100vh; left: 0; background-color: #6fa3ff; }
.section-3 { top: 200vh; left: 0; background-color: #6fff7a; }
.section-4 { top: 300vh; left: 0; background-color: #ffdf6f; }
.uc_post_image img {
max-width: 100%;
object-fit: cover;
height: 220px;
}
.uc_post_title h2 {
font-size: 1.2em;
font-family: system-ui;
text-decoration: none;
color: #000;
line-height: normal;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.uc_post_title a {
text-decoration: none;
}
.uc_post_title {
background: #fff;
padding: 10px 15px 15px;
}
</style>
</head>
<body>
<div class="wrapper row">
<div class="section section-1 ue_post_grid_item">
<div class="uc_post_image">
<img decoding="async" src="https://aspx.co.il/wp-content/uploads/2024/11/27270-1920-768x318.webp" alt="27270-1920" width="768" height="318" data-lazy-src="//aspx.co.il/wp-content/uploads/2024/11/27270-1920-768x318.webp" data-ll-status="loaded" class="entered lazyloaded">
</div>
<div class="uc_post_title">
<a href="https://aspx.co.il/%d7%91%d7%a0%d7%99%d7%99%d7%aa-%d7%90%d7%aa%d7%a8-%d7%97%d7%a0%d7%95%d7%aa/" target="_self">
<h2>בניית אתרים ← בניית אתר חנות | בניית חנות אינטרנטית: המדריך המלא</h2>
</a>
</div>
</div>
<div class="section section-2 ue_post_grid_item">
<div class="uc_post_image">
<img decoding="async" src="https://aspx.co.il/wp-content/uploads/2024/11/27270-1920-768x318.webp" alt="27270-1920" width="768" height="318" data-lazy-src="//aspx.co.il/wp-content/uploads/2024/11/27270-1920-768x318.webp" data-ll-status="loaded" class="entered lazyloaded">
</div>
<div class="uc_post_title">
<a href="https://aspx.co.il/%d7%91%d7%a0%d7%99%d7%99%d7%aa-%d7%90%d7%aa%d7%a8-%d7%97%d7%a0%d7%95%d7%aa/" target="_self">
<h2>בניית אתרים ← בניית אתר חנות | בניית חנות אינטרנטית: המדריך המלא</h2>
</a>
</div>
</div>
<div class="section section-3 ue_post_grid_item">
<div class="uc_post_image">
<img decoding="async" src="https://aspx.co.il/wp-content/uploads/2024/11/27270-1920-768x318.webp" alt="27270-1920" width="768" height="318" data-lazy-src="//aspx.co.il/wp-content/uploads/2024/11/27270-1920-768x318.webp" data-ll-status="loaded" class="entered lazyloaded">
</div>
<div class="uc_post_title">
<a href="https://aspx.co.il/%d7%91%d7%a0%d7%99%d7%99%d7%aa-%d7%90%d7%aa%d7%a8-%d7%97%d7%a0%d7%95%d7%aa/" target="_self">
<h2>בניית אתרים ← בניית אתר חנות | בניית חנות אינטרנטית: המדריך המלא</h2>
</a>
</div>
</div>
<div class="section section-4 ue_post_grid_item">
<div class="uc_post_image">
<img decoding="async" src="https://aspx.co.il/wp-content/uploads/2024/11/27270-1920-768x318.webp" alt="27270-1920" width="768" height="318" data-lazy-src="//aspx.co.il/wp-content/uploads/2024/11/27270-1920-768x318.webp" data-ll-status="loaded" class="entered lazyloaded">
</div>
<div class="uc_post_title">
<a href="https://aspx.co.il/%d7%91%d7%a0%d7%99%d7%99%d7%aa-%d7%90%d7%aa%d7%a8-%d7%97%d7%a0%d7%95%d7%aa/" target="_self">
<h2>בניית אתרים ← בניית אתר חנות | בניית חנות אינטרנטית: המדריך המלא</h2>
</a>
</div>
</div>
</div>
<!-- This is the short and direct code -->
<style>
.slot-title {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
</style>
<div class="title-wrapper">
<a id="blabla" href="https://www.ynet.co.il/food/article/bj7eyktoyl">
<div class="slot-title">הקרואסון המפורסם חזר - בפעם האחרונה</div>
</a>
</div>
</body>
</html>