Horje
flex Code Example
make the first item at the very top of the screen
.fixedElement {
    position:fixed;
    top:0;
    width:100%;
    z-index:100;
}
css flexbox syntax
Display: flex 
Flex-direction: row | row-reverse | column | column-reverse
align-self: flex-start | flex-end | center | baseline | stretch
justify-content: start |  center | space-between | space-around | space-evenly
Source: nethub.af
flex
.flexCardsContainer {
  --alpha: 0.3;

  /* Flexbox - for children (cards). */
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;

  counter-reset: cardCounter;

  padding: var(--defaultPadding);
  color: yellow;
}
flex
/*** Definition Section has one variable
which can be accessed inside yylex() 
and main() ***/
%{
int count = 0;
%}
  
/*** Rule Section has three rules, first rule 
matches with capital letters, second rule
matches with any character except newline and 
third rule does not take input after the enter***/
%%
[A-Z] {printf("%s capital letter\n", yytext);
       count++;}
.     {printf("%s not a capital letter\n", yytext);}
\n    {return 0;}
%%
  
/*** Code Section prints the number of
capital letter present in the given input***/
int yywrap(){}
int main(){
  
// Explanation:
// yywrap() - wraps the above rule section
/* yyin - takes the file pointer 
          which contains the input*/
/* yylex() - this is the main flex function
          which runs the Rule Section*/
// yytext is the text in the buffer
  
// Uncomment the lines below 
// to take input from file
// FILE *fp;
// char filename[50];
// printf("Enter the filename: \n");
// scanf("%s",filename);
// fp = fopen(filename,"r");
// yyin = fp;
  
yylex();
printf("\nNumber of Capital letters " 
      "in the given input - %d\n", count);
  
return 0;
}
flex
<div class="d-flex bd-highlight">
  <div class="p-2 flex-fill bd-highlight">Flex item</div>
  <div class="p-2 flex-fill bd-highlight">Flex item</div>
  <div class="p-2 flex-fill bd-highlight">Flex item</div>
  <div class="p-2 flex-fill bd-highlight">Flex item</div>
</div>
flex
.column {
  padding: 10px;
  height: 300px; /* Should be removed. Only for demonstration */
}




Css

Related
null z transform hack Code Example null z transform hack Code Example
facebook box-shadow css Code Example facebook box-shadow css Code Example
color around the text Code Example color around the text Code Example
string interning in python Code Example string interning in python Code Example
css convert td to tr Code Example css convert td to tr Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8