html - Nesting divs but its not working? -


my div should contain 2 more divs inside (in-left , in-right), in-right isn't working. how supposed align in-left?

#left {    position: absolute;    top: 76%;    left: 20%;    color: black;    border: 2px solid black;    border-radius: 15px 15px;    padding-left: 15px;    padding-right: 15px;    font-size: 1em;    text-align: center;    background-image: url("pink.jpg");    height: 1000px;    width: 800px;    background-size: 900px 1000px;    border: 1px solid black;    background-repeat: no-repeat;    box-shadow: 7px 7px 18px white;  }    #in-left {    top: 87%;    left: 22%;    color: black;    font-size: 1.5em;    text-align: left;    height: 650px;    width: 400px;    font-family: ar cena;    border-right: 1px solid white;  }    #in-right {    top: 87%;    left: 50%;    color: black;    font-size: 1.5em;    text-align: right;    height: 650px;    width: 400px;    font-family: ar cena;  }
<div id="left"><br>    <center>      <img src="acoe.jpg" alt="it's me" height="200" width="250"><img src="jer.jpg" alt="it's me" height="200" width="250"><img src="ako ulit.jpg" alt="it's me" height="200" width="250"></center>      <div id="in-left">      <center>        <h2>          hobbies        </h2>      </center>      <ul>        <u><b><li>biking &#128693;</li></u></b>        bike around subdivision every other day, alone , friends. enjoy solitude , way air hits hair, , can proudly biking relaxation technique.        <u><b><li>&#128214; reading books , short stories &#128214;</li></u></b>        spend time indoors, , reading has been big me ease boredom. enjoy horror genre because of feeling of thrill , excitement gives me. reddit:        <a href="https://www.reddit.com/r/nosleep"><img src="reddit.png" height="25" width="25"></a>        <u><b><li>&#128253; watching movies &#127909;</li></u></b>        <u><b><li>&#127911; listening music &#127926;</li></u></b>          <u><b><li>playing videogames &#127918;</li></u></b>          <u><b><li>&#127828; eating &#127859;</li></u></b>        </ul>        </div>    <div id="in-right">      <center>        <h2>          interests:      </center>      </h2>      </div>        </div>

use float property of css. thanks

float : right; 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -