Posts

Showing posts with the label css3

Flexbox fill available space vertically

Image
Clash Royale CLAN TAG #URR8PPP Flexbox fill available space vertically Now in a flexbox row I can write <div layout="row"> <div>some content</div> <div flex></div> <!-- fills/grows available space --> <div>another content</div> </div> I would like to achieve the same but vertically, like on this picture Currently the problem is that the div which would need to grow doesn't have any height so the two contents are below each other. I want my second content to be at the bottom of the parent container which have a fix height! I know I could solve this by positioning the second content absolute and bottom: 0; but can I achieve this with flexbox? bottom: 0; 2 Answers 2 So you can try this: flex-direction: column for the flex container. flex-direction: column flex: 1 for the element that needs to fill the remaining space. flex: 1 ...

How to prevent thead to be printed on all pages

Image
Clash Royale CLAN TAG #URR8PPP How to prevent thead to be printed on all pages I want to know if it's possible, when a user begins to print an html page, to prevent the thead of a table to be printed on all the pages ? thead It's because I use page-break-after: always; on an element situated before my table, and because of that my table header is also printed on the first page... page-break-after: always; I cannot replace my thead by a tr because a hard part of my code lays on that thead . thead tr thead can't you add <link rel="stylesheet" type="text/css" href="print.css" media="print"> to your head and in print.css add a display:none to the elements you don't want to print? – Marouen Mhiri Oct 13 '16 at 10:24 No, I can't, because these el...

Is there a direct way to target empty grid cells (.) in a grid-template-areas?

Image
Clash Royale CLAN TAG #URR8PPP Is there a direct way to target empty grid cells (.) in a grid-template-areas? Let's say you have grid-template-areas that look like this grid-template-areas .grid { grid-template-areas: ". . a a a a a . ." ". . b b c c c . ." ". . b b c c c . ." } Is there a way to target the css for the . cells to make them a different background color for example? . No...CSS-grid areas are not elements and so cannot be selected with CSS. – Paulie_D 1 hour ago 1 Answer 1 The unnamed grid areas in grid-template-areas are CSS. So you're asking if there's a way to target CSS with CSS. The answer would be no. CSS is used to target...

adding column in a table disable features

Image
Clash Royale CLAN TAG #URR8PPP adding column in a table disable features I have downloaded a template in that there is an example of a table when i try to add a column in it some of it features are disabled like sorting, searching etc. <div class="box"> <div class="box-header"> <h3 class="box-title">Data Table With Full Features</h3> </div> <!-- /.box-header --> <div class="box-body"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>Rendering engine</th> <th>Browser</th> <th>Platform(s)</th> <th>Engine version</th> <th>CSS grade</th> </tr> </thead> <tbody> <tr>...

responsive blocks besides main div

Image
Clash Royale CLAN TAG #URR8PPP responsive blocks besides main div I have a main DIV {width:100%; max-width: 900px} over body. {width:100%; max-width: 900px} I need to place one more DIV exactly over the left free space and another over the right space. May it be done without Javascript and how? Welcome to SO. Please take a tour of the help centre to see how to ask a good question. We cannot help you if you do not provide enough code to re-create your problem - see how to create a Minimal, Complete, and Verifiable example – Pete 16 mins ago Also with the styles you have shown, that div would be left aligned so there would be no space on the left – Pete 14 mins ago ye...

Div is sitting directly on top of another div

Image
Clash Royale CLAN TAG #URR8PPP Div is sitting directly on top of another div I am following a tutorial. I found on making a product showcase using css, it looks great but I want to add more to my page. Underneath I would like to put a slider with more images, add text and include a footer. However, when I add the slider, it just sits directly on top of my product showcase and the page doesn't scroll. I have searched and tried so many options but nothing is working for me - any advice? html, body { width: 100%; } /*---------------------------- Styling the presentation -----------------------------*/ #impress { width: 100%; } #impress:not(.impress-not-supported) .step{ opacity:0.4; } #impress .step{ width:700px; height: 600px; position:relative; margin:0 auto; -moz-transition:1s opacity; -webkit-transition:1s opacity; transition:1s opacity; } ...

Каретка для смены изображения (своеобразная галерея HTML5 CSS3) [on hold]

Image
Clash Royale CLAN TAG #URR8PPP Каретка для смены изображения (своеобразная галерея HTML5 CSS3) [on hold] Доброе время суток. Нашел интересную галерею, где у каждого элемента 2 фотографии, наложенные друг на друга. И они разделены кареткой, которую можно двигать влево и вправо. (получается на подобии ДО и ПОСЛЕ) Как это выглядит (тык) Можно ли как-то такую сверстать (с минимальным кол-вом блоков), если да то как? Или есть какой-то плагин (типа fancybox, lightbox) позволяющие сделать такое Спасибо. I'm voting to close this question as off-topic because it doesn't seem to be in English – Denys Séguret 2 mins ago Nope... Here, English please – Jeremy Thille 1 min ago ...

Toggle current class using jquery

Image
Clash Royale CLAN TAG #URR8PPP Toggle current class using jquery I want to toggle .title class when we click on .title .content class toggle.Here i written this classes inside .I want to be toggle .title in a current class. I tried but not getting. Can anyone suggest me what might be the issue here? .title .content $(document).ready(function() { $('.title').click(function() { $(this).find('.content').slideToggle(); }); }); .content { display: none; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="container"> <ol class="list-timeline"> <li> <h3 class="title">The Establishment</h3> <div class="content"> <p>Ascetur ridiculus mus. Suspendisse pellentesque convallis massa.</p> </div> </li> <li> <h3 class="title">150 Employe...

How to add a linear-gradient in an image using CSS?

How to add a linear-gradient in an image using CSS? I have this snippet code. I want to add a linear-gradient to my image using Css. But I tried this code so far but the linear-gradient doesn't add anything. Do I have to use position:absolute or relative to overlay my linear-gradient inside my image? please help. I use this Please add this image to the image tag because jsfiddle doesn't have an option to add local files and upload it. Sorry for the inconvenience. .container { width: 1000px;padding: 0;margin: 0 auto;} .slideshow {position: relative; background: linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.8));} .slideshow img {border: 3px solid #153f27;border-radius: 5px;-webkit-box-shadow: 4px 3px 5px 0px rgba(168,168,168,1);-moz-box-shadow: 4px 3px 5px 0px rgba(168,168,168,1);box-shadow: 4px 3px 5px 0px rgba(168,168,168,1);} .slogan {position: absolute; top: 30px; padding: 25px 20px;} .slogan h1 {font: bold 30px Arial;color: #fff;} .slogan p {width: 49...