javascript - How can I position text at a certain height according to another text aside -
i'm new js, , don't know whether try doable. guys told me "try javascript", , google can't me because it's specific.
ok so, firstly have huge text in center of page. far good. call "main text"
then, on side of main text, there has column containing more text blocs. time, these blocs have align height of specific words found in main text.
you understand better picture :
any idea how ? !
use css , html, there no need javascript. in css can use top:; vertically align element, e.g.
.text { top: 40%; }
this align element class "text" 40% of pages height top. use % units make text align correctly no matter size window is.
Comments
Post a Comment