how to create two vertical div in html
CSS
/* Add CSS *//
/* Split the screen in half */
.split {
height: 100%;
width: 50%;
position: fixed;
z-index: 1;
top: 0;
overflow-x: hidden;
padding-top: 20px;
}
/* Control the left side */
.left {
left: 0;
background-color: #111;
}
/* Control the right side */
.right {
right: 0;
background-color: red;
}
/* If you want the content centered horizontally and vertically */
.centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
/* Style the image inside the centered container, if needed */
.centered img {
width: 150px;
border-radius: 50%;
}
Add HTML:
<div class="split left">
<div class="centered">
<img src="img_avatar2.png" alt="Avatar woman">
<h2>Jane Flex</h2>
<p>Some text.</p>
</div>
</div>
<div class="split right">
<div class="centered">
<img src="img_avatar.png" alt="Avatar man">
<h2>John Doe</h2>
<p>Some text here too.</p>
</div>
</div>
Also in CSS:
- Title
- how to make a text at the top of page in css
- Category
- CSS
- Title
- css fade out
- Category
- CSS
- Title
- css backdrop filter blut
- Category
- CSS
- Title
- how to give page a random background image css
- Category
- CSS
- Title
- css :focus
- Category
- CSS
- Title
- orientation css max and min width media query
- Category
- CSS
- Title
- how to call an id in css
- Category
- CSS
- Title
- how to center text in css
- Category
- CSS
- Title
- How to find the key of the largest value hash?
- Category
- CSS
- Title
- sweet alert
- Category
- CSS
- Title
- table css
- Category
- CSS
- Title
- css change class name start with
- Category
- CSS
- Title
- breakpoint bootstrap
- Category
- CSS
- Title
- css animation shorthand
- Category
- CSS
- Title
- animate css cdn
- Category
- CSS
- Title
- css light grey
- Category
- CSS
- Title
- css opacity example
- Category
- CSS
- Title
- css tricks media queries
- Category
- CSS
- Title
- css url do not change color of visited links
- Category
- CSS
- Title
- css border radius top
- Category
- CSS
- Title
- css media queries
- Category
- CSS
- Title
- difference between class and id in html css
- Category
- CSS
- Title
- background color animation css
- Category
- CSS
- Title
- css wordwrap
- Category
- CSS
- Title
- link css with path
- Category
- CSS
- Title
- laavel relation through morph
- Category
- CSS
- Title
- inline css
- Category
- CSS
- Title
- css styling
- Category
- CSS
- Title
- css vs scss
- Category
- CSS
- Title
- css overflow-y scroll
- Category
- CSS
- Title
- responsive navbar
- Category
- CSS
- Title
- Use Recursion to Create a Range of Numbers
- Category
- CSS
- Title
- html hide list bullet
- Category
- CSS
- Title
- font weight css
- Category
- CSS
- Title
- width defined by content css
- Category
- CSS
- Title
- comments in css
- Category
- CSS
- Title
- red asterix css
- Category
- CSS
- Title
- tint image css
- Category
- CSS
- Title
- css rotate 90 deg
- Category
- CSS
- Title
- how to darken background image with css
- Category
- CSS
- Title
- css inherit class
- Category
- CSS
- Title
- amazon type search box html css
- Category
- CSS
- Title
- how to create two vertical div in html
- Category
- CSS
- Title
- css change background color of page
- Category
- CSS
- Title
- how to change color of svg with css
- Category
- CSS
- Title
- css disable mouse events
- Category
- CSS
- Title
- add a border to a div css
- Category
- CSS
- Title
- overflow css
- Category
- CSS
- Title
- :root css
- Category
- CSS
- Title
- Ul or ol with no indent
- Category
- CSS
- Title
- line-height not working
- Category
- CSS
- Title
- how to include a css file in jsp
- Category
- CSS
- Title
- background image size css
- Category
- CSS
- Title
- css vertical align middle
- Category
- CSS
- Title
- hide the default tooltip behaviour from safari
- Category
- CSS
- Title
- make image background of div
- Category
- CSS
- Title
- comfirm before delete
- Category
- CSS
- Title
- font. to be thinner css
- Category
- CSS
- Title
- css border shorthand
- Category
- CSS
- Title
- css grid repeat
- Category
- CSS
- Title
- css image radius
- Category
- CSS
- Title
- stop the client from scrolling
- Category
- CSS
- Title
- select second element of type css
- Category
- CSS
- Title
- css hover
- Category
- CSS
- Title
- css background image
- Category
- CSS
- Title
- scss to css
- Category
- CSS
- Title
- css hero image
- Category
- CSS
- Title
- css image effects
- Category
- CSS
- Title
- how to use sass
- Category
- CSS
- Title
- background css
- Category
- CSS
- Title
- css grid layout
- Category
- CSS
- Title
- javascript canvas pixel art
- Category
- CSS
- Title
- background image in css
- Category
- CSS
- Title
- css change text color
- Category
- CSS
- Title
- change background input css
- Category
- CSS
- Title
- html link to css in another folder
- Category
- CSS
- Title
- display table css
- Category
- CSS
- Title
- Jquery .css
- Category
- CSS
- Title
- css comment tag
- Category
- CSS
- Title
- how to make animation stay on 100%
- Category
- CSS
- Title
- how to link to a css file in html
- Category
- CSS
- Title
- css stylesheet template
- Category
- CSS
- Title
- how to make border for letters in css
- Category
- CSS
- Title
- breakline css
- Category
- CSS
- Title
- media queries css not working for mobile
- Category
- CSS
- Title
- descendent selector in css
- Category
- CSS
- Title
- css all children of type
- Category
- CSS
- Title
- css word break
- Category
- CSS
- Title
- css all caps
- Category
- CSS
- Title
- css animation linear
- Category
- CSS
- Title
- add css
- Category
- CSS
- Title
- div scrollable content
- Category
- CSS
- Title
- text-align attribute in css
- Category
- CSS
- Title
- ngclass multiple conditions
- Category
- CSS
- Title
- uibutton image
- Category
- CSS
- Title
- how to apply bg image in inline css
- Category
- CSS
- Title
- text wrap image wordpress css
- Category
- CSS
- Title
- css grid example
- Category
- CSS
- Title
- do some css using js on selector
- Category
- CSS
- Title
- no select css
- Category
- CSS