Search
 
SCRIPT & CODE EXAMPLE
 

CSS

header center

div {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: blue;
}

text {
  background: orange;
}

<div>
   <text>Centered horizontally and vertically</text>
</div>
Comment

how to center a html header

h1{text-align: center;}
Comment

PREVIOUS NEXT
Code Example
Css :: html dim entire screen 
Css :: html input search x cursor pointer 
Css :: css center div vertically 
Css :: how to verticaly align items in a HTML container 
Css :: active pseudo class in css not working in form text area 
Css :: blazor spinner css in wwwroot/css/site.css 
Css :: move element to the left css 
Css :: faire un fond fade to transparent css 
Css :: Conditionally loading resources with media queries 
Css :: scss light color 
Css :: mat radio button color 
Css :: antd css 
Css :: css text stroke 
Css :: how to lighten a color in css 
Css :: remove site title squarespace 
Css :: display div in the same line css 
Css :: css text fill all the width possible 
Css :: css html unterstreichen 
Css :: how to compile scss to css minify css 
Css :: css cut text of 
Css :: padding bottom 
Css :: css grow 
Css :: centos 8 cron on reboot 
Css :: show all available virtual environments python 
Css :: css animation infinite 
Css :: div class sr-only 
Css :: how to use gradient on font css? 
Css :: footer at bottom of body 
Css :: css wrap text next line align right 
Css :: css everything under element 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =