konoldk
konoldk
KPCKevin Powell - Community
Created by konoldk on 7/31/2023 in #front-end
div goes down when i put text in it
so basically i have like a div and it has a lot of images inside it along with another div(lets call said div "bob") so basically bob is inline-block and bob is fine on its own and the top of bob meets the top of his parent div and the bottom of bob meets the bottom of his parent div, but whenever i put text inside bob (ex. <div class="bob">hello im bob</div>, or <div class="bob"><span>hello im bob</span></div>) bob shifts down so that the top of bob is somewhere in the middle of the parent div (a bit towards the bottom) and the bottom of bob is far below the bottom of the parent div
10 replies