Snippets Collections
   <div class="ue-mega-menu-inner-links" id="uc_mega_menu_inner_links_elementor_">
	<div class="elementor-repeater-item-ed346d6"></div>
	<div class="elementor-repeater-item-006127e7"></div>
	<div class="elementor-repeater-item-r6592c7"></div>
	<div class="elementor-repeater-item-a66145b"></div>
</div>

<style>
[class^="elementor-repeater-item-"] {
     background-color: lightgray;
     padding: 10px;
}
</style>
<!-- -----------------------------------------
--------------------------- -->

<div data-text="example">טקסט זה יהיה אדום ושמן</div>
<div data-text="something-else">טקסט זה לא יושפע</div>
<style>
[data-text="example"] {
    color: red;
    font-weight: bold;
}
</style>

<! ---------------------------->

<div data-text="menu-item-1">תפריט 1</div>
<div data-text="menu-section">תפריט כללי</div>
<div data-text="other-menu">לא יושפע כי זה לא מתחיל ב-"menu"</div>
<style>
[data-text^="menu"] {
    background-color: yellow;
}
</style>

<!----------------------------->

<div data-text="menu-item-1">תפריט עם פריט</div>
<div data-text="nav-item">פריט ניווט</div>
<div data-text="items-list">רשימת פריטים</div>
<div data-text="random-text">לא יושפע כי אין בו "item"</div>
<style>
[data-text*="item"] {
    border: 2px solid blue;
}
</style>

<!------------------------------->

<div data-text="section-end">זה יסומן בקו תחתי</div>
<div data-text="menu-end">גם זה</div>
<div data-text="start-end">זה גם כי זה נגמר ב-"end"</div>
<div data-text="end-section">לא יושפע כי "end" לא בסוף</div>
<style>
[data-text$="-end"] {
    text-decoration: underline;
}
</style>

<-------------------------------->
<div class="ue-mega-menu-inner-links">
    <div data-text="menu-home">עמוד הבית</div>
    <div data-text="menu-services">שירותים</div>
    <div data-text="random-text">לא יושפע כי אין "menu"</div>
</div>
<style>
.ue-mega-menu-inner-links [data-text^="menu"] {
    font-size: 18px;
    color: green;
}
</style>
<!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>
star

Fri Feb 21 2025 03:17:47 GMT+0000 (Coordinated Universal Time)

#css #webkit #-webkit
star

Fri Jan 31 2025 00:39:07 GMT+0000 (Coordinated Universal Time) https://aspx.co.il/

#css #webkit #-webkit

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension