tonelm54
asked on
Relative to parent
Im trying to make a counter div which has a title in the top and then the number below, however I cannot get the counter to line up, even though Im setting the div to be relative from bottom:-
What Im looking for is something like (so the count is relative to bottom, not depending on the title text):-
What Im looking for is something like (so the count is relative to bottom, not depending on the title text):-
.divQC {
position:relative;
color: #ffffff;
font-size: 28px;
width:120px;
height:30px;
text-align: center;
bottom:10px;
left:0;
right:0;
}
I put my code at https://jsfiddle.net/r46jehxd/ in the hope someone can help me correct me positining.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Open in new window
Open in new window
The relevant layout part:Open in new window