need help with html font - different...

User 1982097 Photo


Registered User
72 posts

If I create an HTML element, what do I need to do to make the font of the text match the font of the rest of the doc? See attached, the "Hi <<&firstname>>," is a different font than the rest.
Attachments:
Coffee roasting is my passion - seriously
User 187934 Photo


Senior Advisor
20,181 posts

Hi Telimon,
Can you share your RED file?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 1982097 Photo


Registered User
72 posts

Sure! What's the best way to share? Export it?
Coffee roasting is my passion - seriously
User 122279 Photo


Senior Advisor
14,447 posts

If the .red file isn't too big, zip it up and post it here. Otherwise you can pop it into your dropbox and let us have the url.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 1982097 Photo


Registered User
72 posts

Zip should be attached :)
Attachments:
Coffee roasting is my passion - seriously
User 2319362 Photo


Registered User
14 posts

Hi. The rest of your text is styled to be in the Arial font. You'll have to do this manually in the HTML element, but it's not too complex. Something like this should work:

<p style="font-family:Arial, sans-serif">Hi <<&firstname>>,</p>


Another option is to look at the exported markup for your other paragraphs, and wrap your HTML element's text in that same markup. That would look like this:

<p style="color:#222222;font-weight:normal;padding:0px;text-align:left;font-size:14px;margin:0px 0px 1.35em;text-size-adjust:none;line-height:1.7;mso-font-alt: &quot;Helvetica Neue&quot;;font-family:Arial, &quot;Helvetica Neue&quot;, Helvetica, sans-serif;">Hi <<&firstname>>,</p>


I've done that second one, and saved the RED file again. You'll find it attached.
Attachments:
User 1982097 Photo


Registered User
72 posts

Thanks so much, Nestor! It worked!
Coffee roasting is my passion - seriously

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.