Search
 
SCRIPT & CODE EXAMPLE
 

CSS

inline block align center

.parent {
  display: flex;
  justify-content: center;
  align-items: center;
}

.child {
  display: inline-block;
}
Comment

how to center a inline block element

  display: inline-block;
  position: relative;
  /* Move the element to the right by 50% of the container's width */
  left: 50%; 
  /* Calculates 50% of the element's width, and moves it by that */ 
  /* amount across the X-axis to the left */
  transform: translateX(-50%);
Comment

PREVIOUS NEXT
Code Example
Css :: css reset 
Css :: table fixed header 
Css :: remove arrow summary tag css 
Css :: css background half one color the other half another color 
Css :: center with css 
Css :: separar letras en css 
Css :: hide scrollbar but still scroll 
Css :: css vertical align items in div 
Css :: rounded input css 
Css :: how to use html and css to design a chess board 
Css :: css input selector 
Css :: background color in css 
Css :: style disabled button 
Css :: css smooth text shadow 
Css :: how to center div in css 
Css :: backwards text css 
Css :: text break css 
Css :: transition transform 
Css :: absolute position div center 
Css :: how to remove border on button click 
Css :: table td remove unknown padding in td 
Css :: scss watch command 
Css :: transition shorthand css 
Css :: Css style on particular screen 
Css :: css multiple backgrounds 
Css :: perimeter around my background image 
Css :: css minifier api 
Css :: how to change what twine looks like 
Css :: css selected color 
Css :: screen orientation css 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =