• Resolved Liz

    (@elc95736)


    My Site

    On my About page, under the Flexible services portion, I’m trying to get the first three words of the next few paragraphs to be a different font/size, kind of like the storybook “Once Upon A Time” idea. The problem I am running in to is keeping the rest of the text next to these bigger words, they go to the next paragraph automatically.

    Would appreciate some help!

    P.s. Still in the process of downloading the fonts I’m using to wordpress so that users are able to see, so disregard the look of the current fonts you will see.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Do you mean the div with the class of set ? Cuz it should still be inside the same paragraph as the other text and instead of a div tag it should be wrapped in a span tag. Div is a block element and will always force a new line Span is an inline element and will not

    Thread Starter Liz

    (@elc95736)

    Yes thank you so much! That’s a great tip to know for a beginner at CSS. Much appreciated.

    Thread Starter Liz

    (@elc95736)

    Yeah the difference between block and inline elements is one of those major speed bumps when getting started it’s worth noting that you can change the display property with css so you could have set div.set to display: inline and got the same result. It is also pretty common to change anchor tags to display: block to make buttons because to have a height and width elements have to be block

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Want first few words of paragraph to be different font’ is closed to new replies.