0

My element put in some flex container but I can't align it itself. I've already tried change some values of properties, but nothing works(((

enter image description here

<div id="mainHeader">
        <img id="mainHeaderImageLeft" src="images/coder.png">

        <span id="mainHeaderCodeImg">for(int i=0; i < arr.length; i++){ <br>System.out.println("Hello World");<br>
        int width = 10;<br>
        System.err.println(width);
        <br>}</span>
</div>
#mainHeader{
    width: 100%;
    height: 10vh;
    display: flex;
    margin-top: calc(-1 * height);
    background: var(--primary-light);
    overflow: hidden;
}

#mainHeaderCodeImg{
    display: block;
    justify-self: flex-end;
    align-self: flex-end;
}
Michael Benjamin
  • 346,931
  • 104
  • 581
  • 701
topit
  • 3
  • 2

0 Answers0