Developer forum

Forum » Templates » Change font size

Change font size


Reply

Hi,


 


I need to find a solution so that a user can increase and decrease font size on a website. We can set ut 3 or 4 stylesheets and create links on the website, so that when you click them, you simply shift trought the "active" stylesheet, but that would require the client to update information in 3 or 4 different stylesheets. Nevertheless it does not work with the browser funcionality.


 


Iddeally the browser's feature should work. Does anyone know how to get it to work, or at least a better way of performing this?


 


//nuno


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Nuno


 


The problem with Dynamicweb is that its fontsizes are in px and not em or pt.


 


The only way to acomplish this easy is to "overrule" the Dynamicweb stylesheets text classes font properties (long term, heh?) with a custom stylesheet of your own. In that stylesheet you need something like this:


 


.h1 {

 font-size: 13pt;

}


.h2 {

 font-size: 12pt;

}


.h3 {

 font-size: 11pt;

}


.h4 {

 font-size: 11pt;

}


body, table, p {

 font-size: 11pt;

}


.text2 {

 font-size: 11pt;

}


.text3 {

 font-size: 11pt;

}


 


It should work...

 
Reply

Hi,


 


Thanks a lot. Looks like a perfect solution


 


Regards,


//nuno

 

You must be logged in to post in the forum