L
L
lavezzi12015-10-07 15:33:32
css
lavezzi1, 2015-10-07 15:33:32

How to apply the information from the input to the element?

Hello!
I want to make a text size switch on my site, that is, there will be an input, you select the text size in it and it is applied to certain text on the site, to blocks. Or is the color acceptable, where to dig? Without reloading the page of course.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivanq, 2015-10-07
@lavezzi1

You can try to set the default font-size to the body, then change it with the input. And for the necessary elements, set the size in rem or em

M
Marevin, 2015-10-07
@Marevin

On js, for example: https://jsfiddle.net/7xae1w13/
Ajax if you need to save without reloading.

V
Vitaly Inchin ☢, 2015-10-07
@In4in

Ta-dam
So? Or even tougher?
Like this'c.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question