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 :: on clicking a link it gets red color 
Css :: ! [remote rejected] master - master (Working directory has unstaged changes) 
Css :: how to make the list in css with square 
Css :: how to center horizontally in css 
Css :: ul li dot seprator 
Css :: text-color gradient css 
Css :: how to make slideshow not go over navigation bar 
Css :: line under text css 
Css :: rotate icon on click css 
Css :: laravel css image url 
Css :: easiest way to invert css to dark mode 
Css :: background color for whole page css 
Css :: crop img css 
Css :: how to fix the nav bar to the left of the page 
Css :: flex change order 
Css :: inter 
Css :: CSS background blur or glass effect 
Css :: mat stepper custom css 
Css :: ruby cheat sheet 
Css :: custom horizontal scrollbar css 
Css :: how to change color of element when hovering over div 
Css :: blink css 
Css :: fill and no repeat background image css 
Css :: css module multiple classes 
Css :: style direction 
Css :: css text 
Css :: css font properties 
Css :: vertical align text in div bottom 
Css :: best box shadow 
Css :: rgba blue colo 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =