Jump to content
Mark Strobel

Font Style and Size Change

Recommended Posts

I built a site using the New Google Sites.  It appears that the standard text is Roboto.  The font size appears to be between 4 and 5.  I have been using the following code to adjust the default font style and size <font face="Roboto" font size="4"> in embedded code snippets for html.  However using 4 makes the text smaller and using 5 makes the text bigger than the default text in the New Google Sites.  What code do I need to make the text size the same?  Thanks.

Share this post


Link to post
Share on other sites

No one really uses the font tag anymore, especially not in html5 where its not supported at all. Use CSS instead with font-family: ; font-size: ; instead. You can set default size to 16px; then adjust it using percentages or em units, 1em will equal 16px, 0.5em = 8px, you have greater choice for changing the font-size gradually, more than just using font tag.

Edited by dsonesuk

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×