I want to be able to style text that is only on the first line. Lets say I have something like
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
I only want the first line and first of type to be styled like using text-transform uppercase. I know there is css psudocode that can do it.
p:first-of-type::first-line{text-transform: uppercase;}
But my professor wants to see it being accomplished using javascript. Can anyone help me with this?
at the top left of the visible one, keep adding words to it until the height changes, and bada-bing!
– Nate Sep 22 '16 at 19:11