I want my HTML to look like this →
<span id="itemCount"></span>
Parent: relative
child: absolute
I was using this understanding. Used some other combination, but failed.
I want my HTML to look like this →
<span id="itemCount"></span>
Parent: relative
child: absolute
I was using this understanding. Used some other combination, but failed.
You’ve got your itemCount element coded as position absolute when it should be relative:
Quick and dirty change
#itemCount {
position: relative;
top: -41px;
left: -10px;
}
Looks like this:
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.