html - Why are my list items breaking in columns? -


enter image description here

i want have "bubbles" intact, aren't can see in picture. have tried break-inside: avoid; in areas appropriate. pardon media screen i'm testing out , when works apply handheld tag instead of more appropriate size.

the code:

ol {    padding: 1em;    list-style: none;  }  li {    background-color: wheat;    border-radius: 1.5em;    padding: .5em;    font-size: 1em;    margin: 1em;    color: black;    border: .25em solid lightblue;  }  nav {    text-align: center;    width: 20%;    background-color: rgb(170, 70, 0);    border-radius: 3em;    position: absolute;    left: 0%;    border: .25em solid lightblue;    top: 50%;    margin: 2em;    -webkit-transform: translate(0%, -50%);  }  div {    position: absolute;    left: 50%;    width: 70%;    transform: translate(-50%, 0%);    height: 40em;  }    @media screen , (max-width: 2560px){    ol {      -webkit-column-count: 4;    }    li {      break-after: always;    }    figcaption {      break-before: always;    }    div {      position: absolute;      left: 50%;      width: 80%;      transform: translate(-50%, 0%);      height: 40em;    }    nav {      text-align: center;      width: 100%;      background-color: rgb(170, 70, 0);      border-radius: 3em;      position: absolute;      left: 0%;      border: .25em solid lightblue;      top: 0%;      margin: 0em;      -webkit-transform: translate(0%, 0%);    }  }
<nav>    <ol>      <li>        <h1 id="hone">peter basolo</h1>      </li>      <li>        <a class="start" href="unnecessary" title="the fun part">start adventure!</a>      </li>      <li>        <a class="fb" href="unnecessary" title="my facebook!">          <figure>            <img src="facebook-logo.png" alt="this should taking facebook. awkward." width="25" height="25" />            <figcaption>stalk me!</figcaption>          </figure>        </a>      </li>      <li>        <a class="ln" href="https://unnecessary" title="my linkdin!">          <figure>            <img src="linkedin-logo.png" alt="this should taking linkedin. awkward." width="25" height="25" />            <figcaption>hire me!</figcaption>          </figure>        </a>      </li>    </ol>  </nav>

you have add display:inline-block in li tag.

ol {    padding: 1em;    list-style: none;  }  li {    background-color: wheat;    border-radius: 1.5em;    padding: .5em;    font-size: 1em;  display:inline-block;    margin: 1em;    color: black;    border: .25em solid lightblue;  }  nav {    text-align: center;    width: 20%;    background-color: rgb(170, 70, 0);    border-radius: 3em;    position: absolute;    left: 0%;    border: .25em solid lightblue;    top: 50%;    margin: 2em;    -webkit-transform: translate(0%, -50%);  }  div {    position: absolute;    left: 50%;    width: 70%;    transform: translate(-50%, 0%);    height: 40em;  }    @media screen , (max-width: 2560px){    ol {      -webkit-column-count: 4;    }    li {      break-after: always;    }    figcaption {      break-before: always;    }    div {      position: absolute;      left: 50%;      width: 80%;      transform: translate(-50%, 0%);      height: 40em;    }    nav {      text-align: center;      width: 100%;      background-color: rgb(170, 70, 0);      border-radius: 3em;      position: absolute;      left: 0%;      border: .25em solid lightblue;      top: 0%;      margin: 0em;      -webkit-transform: translate(0%, 0%);    }  }
<nav>    <ol>      <li>        <h1 id="hone">peter basolo</h1>      </li>      <li>        <a class="start" href="unnecessary" title="the fun part">start adventure!</a>      </li>      <li>        <a class="fb" href="unnecessary" title="my facebook!">          <figure>            <img src="facebook-logo.png" alt="this should taking facebook. awkward." width="25" height="25" />            <figcaption>stalk me!</figcaption>          </figure>        </a>      </li>      <li>        <a class="ln" href="https://unnecessary" title="my linkdin!">          <figure>            <img src="linkedin-logo.png" alt="this should taking linkedin. awkward." width="25" height="25" />            <figcaption>hire me!</figcaption>          </figure>        </a>      </li>    </ol>  </nav>


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -