I am facing the following issue: when I send out a automated email the font size changes from 10 to 11. See below the code I am using:
With OutlookMailitem
.To = toEmail
.CC = ccEmail & ";" & ccEmail2 & ";" & ccEmail3
.Subject = "Submit your Timesheet"
.HTMLbody = "<p style='font-family:arial;font-size:13'>" & "Hey " & toName & "," & "<br/>" & "<br/>" & "We noticed your timesheet is still open. Please submit your timesheet each Monday before 12PM. If you face any issues, do let us know." & "<br/>" & "<br/>" & "Best," & signature
.Send
End With
Any idea what is causing this? Many thanks in advance.
CodePudding user response:
Could you try using px.
<p style='font-family:arial;font-size:13px'>
CodePudding user response:
You missed to add "px"
or the unit that you want before the font-size, if this doesn't work... maybe another function is overwriting your styles, then try to add !important after the font-size: 13px
like this:
<p style='font-family:arial;font-size:13px!important;'>
!important shall take priority over any other style that is applied.