html - How to automatically change words and color in a phrase with css? -


i create dynamic phrase doyouimpress.com

the code use html is: source

<section class="rw-wrapper">      <h1 class="rw-sentence">      phrase 1                       <div class="rw-words rw-words-1">         <span>word 1</span>         <span>word 2</span>         <span>word 3</span>         </div>     </h1> </section> <h2 class="rw-sentence-ie">phrase internet explorer</h2> 

the code use css is: (i have errors when pasting css here, please see source.)

with code words automatically change phrase not change position when words long or short.

what wrong , how can similar effect to: doyouimpress.com

it looks css left-aligning sentence gets changed with:

text-align: left; 

if change

 text-align: center; 

you might find sentence/phrase changes position when it's different word.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -