Search
 
SCRIPT & CODE EXAMPLE
 

CSS

centre align text in div

#container {
  display: flex;
  justify-content: center;
  align-items: center;
}
Comment

put text in center of a div

html, body {
    height: 100%;
}
.parent {
    width: 100%;
    height: 100%;
    display: table;
    text-align: center;
}
.parent > .child {
    display: table-cell;
    vertical-align: middle;
}
Comment

PREVIOUS NEXT
Code Example
Css :: mediaquery for portrate 
Css :: linear-gradient 
Css :: css set font family for all elements 
Css :: liste decoration css 
Css :: input uppercase with css 
Css :: input type file without button 
Css :: how to move anything left in css 
Css :: background overlay image 
Css :: css add space left 
Css :: Link design like a Button" 
Css :: how to select classes that start with a certian name 
Css :: placeholder color 
Css :: css table properties 
Css :: how to write css in html 
Css :: center things with css 
Css :: scss extend 
Css :: gray scale css 
Css :: sticky footer not working bootstrap 
Css :: css grid take 2 columns 
Css :: line sharpness css 
Css :: text change animation css 
Css :: scss how to use a variable in entire angular project 
Css :: internal style 
Css :: responsive width css 
Css :: transition various properties css 
Css :: how to link css to html flask 
Css :: css calc vw minus px 
Css :: using inline styling in React 
Css :: postcss plugin 
Css :: css hover 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =