logo
down
shadow

Flexbox doesn't work in summary tag


Flexbox doesn't work in summary tag

By : Warren McGrail
Date : November 20 2020, 11:01 PM
this one helps. The problem is that you are using flexbox in a summary tag, which is not a structural one. summary is used inside a details element. Consider using a proper semantic tag like article or section for this, and it will work.
code :
summary,
article {
  display: flex;
}
p::before {
  content: "Paragraph.";
}
details > summary {
  display: block;
}
<summary>
  <p></p>
  <p></p>
  <p></p>
</summary>

<article>
  <p></p>
  <p></p>
  <p></p>
</article>

<details>
  <summary>Proper Usage</summary>
  <p></p>
</details>


Share : facebook icon twitter icon
insert doesnt work, did prepare, bind and execute, but doesnt work

insert doesnt work, did prepare, bind and execute, but doesnt work


By : Maksim Pilipeyko
Date : March 29 2020, 07:55 AM
will be helpful for those in need hey guys i have this code in pp.php file , Your prepare failed due to syntax errors:'
code :
  $logdb->prepare(".....  (:email,..snip..., :country');
                                                     ^--missing )
                 1        2                           1
 ...., :country)');
CSS vertical flexbox overflow-y doesnt work

CSS vertical flexbox overflow-y doesnt work


By : hitaco
Date : March 29 2020, 07:55 AM
around this issue I've set the page height of my page to 100% through the html and body elements. It's a mobile app-like page and so I would like it to render on one page (without a main scrollbar). The three parts , You need to set height to max-height
code :
body {
margin: 0;
padding: 0;
}
#main-wrapper{ 
width: 500px;
max-height: 200px;    /*Adjust Height*/
overflow-y: scroll!important;
overflow-x: hidden;
}
#main {
-webkit-column-count: 4;
-moz-column-count: 4;
column-count: 4;
}
<div id="main-wrapper">
<div id="container">
lorem ipsum lorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsum
</div>
My firewall icon doesnt work.....I have tried setting up the JAVA path but for some reason, it doesnt work

My firewall icon doesnt work.....I have tried setting up the JAVA path but for some reason, it doesnt work


By : rooeye
Date : March 29 2020, 07:55 AM
this one helps. Your PATH may contain spaces. First, properly quote it. And, you might have another jdk earlier in the PATH (so set it first). Something like
code :
set "PATH=c:\amir\jdk1.7.0_45\bin;%PATH%"
cd c:\myutilities\auth
java -jar auth.jar
@echo off
setlocal
set "PATH=c:\amir\jdk1.7.0_45\bin;%PATH%"
java -jar c:\myutilities\auth\auth.jar
endlocal
css flexbox grid with hover on flexbox cells (nested) does and does not work

css flexbox grid with hover on flexbox cells (nested) does and does not work


By : renuka yadav
Date : March 29 2020, 07:55 AM
hop of those help? The :hover behaviour in this example is making me doubt my sanity as everything in the code seems ok and works as expected, except the hovering of the white cells in the large matrix. , Change the hover rule/selector to
code :
[fbl-cell]>li:hover,.sudoku > ul li:hover {
    background: CornflowerBlue;
    cursor: pointer;
}
/*****************************/
/* MINIMAL REQUIRED [STABLE] */
/*****************************/
/* [MANDATORY] for '.fbl-cell' to work */
html,body           { box-sizing: border-box }
::before,:after, *  { box-sizing: inherit }

/* remove default markup */
ul  { margin: 0; padding: 0 }
li  { list-style-type: none }

/**************************************/
/* easy RESPONSIVE|FONT|NESS [STABLE] */
/**************************************/
/* Math: y=mx+b for points p1(320,14) p2(1280,20) => 14>20 */
html        { font-size: calc(0.00625 * 100vmin + 12px) }    /* device dependend (not W/H), so use VMIN */
[lang="ar"] { font-size: calc(0.00625 * 100vmin + 15px) }    /* 17>23 (Arabic looks a bit small at 14>20) */
body        { font-size: 1rem; line-height: 1.5; margin: 0 } /* HTML default 16px/1.3/10px (or so) */

/***************************************/
/* GRID RESTRAINTS and MARKUP [STABLE] */
/***************************************/
/* main container */
.sudoku-row {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    padding: .5rem;

    max-width: 100vmin;
    margin: 3rem auto;
}
/* cell container (default size) */
.sudoku-row>.sudoku {
    height: 10rem;
    width : 10rem;
    margin: .5rem;

    font-size: calc(0.00625 * 100vmin + 18px); /* responsive: (320,20)(1280,26) */
}
.sudoku.fullsize  { /* large size override */
    height: 75vmin;
    width : 75vmin;
    margin: 0 auto;

    font-size: calc(0.025 * 100vmin + 6px);   /* responsive: (320,14)(1280,38) */
}
/* hover */
.sudoku,.sudoku.fullsize>* {
    border: 1px solid black;
}
[fbl-cell]>li:hover,.sudoku > ul li:hover {
    background: CornflowerBlue;
    cursor: pointer;
}
/* coloring/styling */
body {
    background-color: #f0f0f0;
}
.sudoku-row>.sudoku {
    background: #fff;
}
.sudoku>:nth-child(even)  {
    background-color: #eee;
}
.sudoku li {
    border: 1px solid hsla(0,0%,0%,.15);
}

/*********************************************/
/* FLEXBOX and PATCH GRID STRUCTURE [STABLE] */
/*********************************************/
/* Both parent end child are flexbox containers */
[fbl-cell],[fbl-cell]>* {
    display: flex;
    flex-wrap: wrap;
}
[fbl-cell] {
    align-content: flex-start;
}
[fbl-cell]>* { /* cell immediate child elements */
    flex: 1; /* allow grow (and shrink, which is HTML default as is 'flex-basis: auto') */
    overflow: hidden; /* [MANDATORY] */

    /* [DEMO] center content hor/vert inside cell */
    justify-content: center; align-items: center;
}
[fbl-cell="3x3"]>* { /* 3by3 matrix equally divided over parent space */
    flex-basis: 33.33333%; max-width : 33.33333%; /* 'width' won't work */
    height    : 33.33333%; max-height: 33.33333%;
}
<div class="sudoku-row">
        <ul fbl-cell="3x3" class="sudoku"><li> <li>9<li> <li>4<li><li>1<li> <li> <li>3</ul>
        <ul fbl-cell="3x3" class="sudoku"><li>2<li> <li>5<li> <li><li> <li> <li> <li> </ul>
    </div>

    <div class="sudoku-row">
        <div fbl-cell="3x3" class="sudoku fullsize">
            <ul fbl-cell="3x3"><li> <li>9<li> <li>4<li><li>1<li> <li> <li>3</ul>
            <ul fbl-cell="3x3"><li>2<li> <li>5<li> <li><li> <li> <li> <li> </ul>
            <ul fbl-cell="3x3"><li> <li>1<li> <li>3<li><li>9<li>6<li> <li> </ul>
            <ul fbl-cell="3x3"><li> <li> <li>3<li> <li><li> <li>9<li> <li> </ul>
            <ul fbl-cell="3x3"><li>4<li> <li>8<li> <li><li> <li>6<li> <li>1</ul>
            <ul fbl-cell="3x3"><li> <li> <li>5<li> <li><li> <li> <li> <li>7</ul>
            <ul fbl-cell="3x3"><li> <li> <li>9<li>6<li><li>7<li> <li>3<li> </ul>
            <ul fbl-cell="3x3"><li> <li> <li> <li> <li><li> <li>7<li> <li>9</ul>
            <ul fbl-cell="3x3"><li>1<li> <li> <li>4<li><li>2<li> <li>8<li> </ul>
        </div>
    </div>
IE Flexbox doesnt respect child flexbox size

IE Flexbox doesnt respect child flexbox size


By : cha gavara
Date : March 29 2020, 07:55 AM
like below fixes the issue Try to set the min-width property of the .container class, and change the flex-basis property from 0 to "auto" for the IE browser.
Code as below:
code :
<style>
    .container {
        display: flex;
        background: #cccccc;
        width: 50%;
        min-width:300px;
    }

        .container > * {
            flex: 1 1 auto;
        }

    .first {
        background: #00ffff;
    }

    .last {
        background: #ff00ff;
        display: flex;
    }

    .btn {
        flex: 1 1 0%;
        display: flex;
        height: 30px;
    }

    .btn-inner {
        flex: 1 1 0px;
        background: rgba(0,0,0,0.2);
        display: flex;
    }

    _:-ms-fullscreen, :root .IE-FlexAuto {
        flex-basis: auto;
    }
    .inner-inner {
        flex: 1 1 auto;
    }
</style>
<div class="container">
    <div class="first">
        <input type="text" \>
    </div>
    <div class="empty"></div>
    <div class="last">
        <div class="btn IE-FlexAuto">
            <div class="btn-inner IE-FlexAuto">
                first item item
            </div>
        </div>
        <div class="btn IE-FlexAuto">
            <div class="btn-inner IE-FlexAuto">
                second item item
            </div>
        </div>
    </div>
</div>
Related Posts Related Posts :
  • Stop playing video in iframe when modal is closed
  • Bootstrap. Can't change navbar link color. Even with ID
  • Making a position:absolute div stay in place on page resize
  • Can we reference contents of <defs> across multiple <svg> elements?
  • Kendo Chart Databinding - Local Json Data with schema
  • Box shadow appearing from right to left
  • BEM element nest naming and sass rule
  • How to vertically center text next to image?
  • Responsive full width input with button
  • Make three headings in line. One to be on the left, second on center and third on the right?
  • XPath for all child elements before a certain sibling?
  • How to prevent default Css scroll onclick and allow javascript event only?
  • CSS Media Query not accounting for screen density?
  • How to stop second navbar from overlapping fixed navbar at the top of the page
  • List Indentation same x-cord as header
  • Sending file input doesn't work
  • Scale div padding according to screen width
  • CSS - mobile responsive issue with absolute positioning
  • Align image slider at the same bottom using css (Slick Carousel library)
  • Input border CSS
  • Define a custom <a> tag in CSS?
  • How to write vertical text from bottom to top without using transform rotate?
  • Text sometimes warping, sometimes not
  • CSS Correctly positioning pseudo element
  • Center Cropping Image
  • How to wrap a block around a div tag?
  • How to make a tight cell around text and expand empty ones?
  • make exact padding on text
  • position:relative started working different than at first (asp.net)
  • Html does not display in 1/2 columns
  • Positioning shapes to website
  • overwrite another tag in CSS
  • How to calculate sum on change?
  • Why do the browsers automatically wrap text of a web page without any indication about how to do it?
  • Sizing and positioning a border property
  • How do I float div's to the bottom of a page?
  • Responsive html with absolute position text inside relative positon picture
  • Flexbox doesn't work in IE 10
  • AngularJS shopping cart app: Disable button when quantity < 2
  • How to select element by order ? - Css
  • How to apply animation on the list items such that during an instance of time only one list item is visible?
  • responsive CSS - display:inline UL breaking into 2 lines, seems to have enough space
  • Reduce space between responsive div or classes html/css3
  • CSS image disappears too fast
  • Spring boot not redirecting to desired page
  • dont know how to make a proper mixin for background
  • Logout form within Bootstrap navbar dropdown
  • how to stack images from bottom up in Django
  • Auto scroll image taller than container on hover (taller image)
  • Is SASS/SCSS a way to make OOCSS?
  • Is there a work around to turning flex items to containers?
  • CSS HTML | Search input has round corners in safari
  • How do I align all my div's in one line?
  • Mvc DropdownList Not working
  • Why does the image have overflow:hidden?
  • Triggering alerts with validate-need in Shiny?
  • Create two tables from xml using xslt based on it an node attribute that is less than a integer value
  • CSS transition being fired upon load with link and input elements (chrome)
  • Why does my float elements not working properly at 40% + 60% width settings?
  • Cant keep three divs inline without one going to the next line
  • shadow
    Privacy Policy - Terms - Contact Us © soohba.com