Search
 
SCRIPT & CODE EXAMPLE
 

CSS

display div in the same line css

<div class='parent'>
  <div class='child'>child 1</div>
  <div class='child'>child 2</div>
</div>

.parent {
  text-align: center;
}
.child {
  display: inline-block;
  vertical-align: middle;
}
Comment

css element same line

#element1 {display:inline-block;margin-right:10px;} 
#element2 {display:inline-block;} 
Comment

div same line

#block_container {
    display: flex;
    justify-content: center;
}
Comment

div same line

#block_container
{
    text-align:center;
}
#bloc1, #bloc2
{
    display:inline;
}
Comment

PREVIOUS NEXT
Code Example
Css :: josh comeau css reset 
Css :: Hide first of type elements using css , how to hide elements using css 
Css :: how to put the input box and the label on top of input 
Css :: remove site title squarespace 
Css :: center css elements 
Css :: rgba blue color 
Css :: text underline 
Css :: change br height 
Css :: Find element that is causing overflow css 
Css :: less calc with variable 
Css :: html5 video hide timeline bar 
Css :: how to compile scss to css minify css 
Css :: Push an existing folder to git 
Css :: image resize css 
Css :: get second child div css 
Css :: comments in css 
Css :: css feather border 
Css :: margin for text in html 
Css :: css transform border radius 
Css :: adding border to text css 
Css :: scss for loop nth child 
Css :: css set property with data attribute 
Css :: orientation css max and min width media query 
Css :: rotate element css 
Css :: change angular material icon color 
Css :: hover show scrollbar css 
Css :: css white-space nowrap 
Css :: box-shadow left right and bottom 
Css :: black gradient background effect 
Css :: bootstrap card hover effect 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =