HTML- Email code tweak

GaryPanic

Smoke me a Kipper,Skipper
Local time
Today, 06:20
Joined
Nov 8, 2005
Messages
3,309
Guys - quickie question


I have the following working pretty well - however I want to change the size of font on one line
-"<h1>" & [Forms]![quotefrm]![Text184] & "</h1>"

(Yes I have this as a heading midway through - but thats what I want - or to bold it at this point)
I am out of my depth at html - and have hacked this together
how do I change the font size ?

regards


EmailSend.HTMLBody = _
"<p>" & "For the Attention of :-" & [Forms]![quotefrm]![POC] & " </p>" _
& vbCrLf & vbCrLf _
& "<br>" & "Insured :-" & [Forms]![quotefrm]![Insured] & " </br>" _
& "<br>" & "Event :-" & [Forms]![quotefrm]![Eventname] & " </br>" _
& "<br>" & "Dates :-" & [Forms]![quotefrm]![openfrom] & " To " & [Forms]![quotefrm]![opento] & " </br>" _
& "<br>" & "Venue :-" & [Forms]![quotefrm]![venuename] & " </br>" _
& "<h1>" & [Forms]![quotefrm]![Text184] & "</h1>" _
& "<p>" & [Forms]![quotefrm]![Text151] & "</p>" _
& "<p>" & [Forms]![quotefrm]![Text155] & "</p>" _
& "<p>" & [Forms]![quotefrm]![Text157] & "</p>" _
 
Here is a typical font tag with a size attribute setting:

<font size="2">
This is a paragraph.
</font>
 
gary,

i dont think you need </br> tags. i never used them. might save some space
 
gary,

i dont think you need </br> tags. i never used them. might save some space

Its bitching when I take them out .. - but I will retry from scratch once I have the font sorted...
 
I think the best way to get your head around what works and what doesn't is to view the source html code after it renders... ?
 
I would try to putting some <div></div> in there to help sort it a bit. Also it is east to do anything style once you have something wrapping the text.

ex.

<div style="font-size:40px"><p> Text here </p></div>
 
I would try to putting some <div></div> in there to help sort it a bit. Also it is east to do anything style once you have something wrapping the text.

ex.

<div style="font-size:40px"><p> Text here </p></div>

Yeah this is the bit thats throwing me somewhat - I am trying to catch up here with what I want and with what i can do .... Something new to learn - it doesn't look that hard - but I have a feeling that its going to harder than I imagine
I presume that i will put quotes round the lot so
<div style="font-size:40px"><p>
would be
"<div style="font-size:40px"><p>" whatever " </p></div> "
 
Yeah this is the bit thats throwing me somewhat - I am trying to catch up here with what I want and with what i can do .... Something new to learn - it doesn't look that hard - but I have a feeling that its going to harder than I imagine
I presume that i will put quotes round the lot so
<div style="font-size:40px"><p>
would be
"<div style="font-size:40px"><p>" whatever " </p></div> "


Well really don't know on that.. but only one way to find out..hehe. I can see a problem with quotes.. so might have to switch to single quotes around to 'font-size:40px'
 
gary,

using attributes of html tags, specifically the ones that are spec'd in pixels is never consistent, just so u know. proper display is completely up to the incomming servers when you send mail out, so if I were you I wouldn't rely on continuity ever

divs are also not consistent. at any rate...
 
thanks everyone -

I have it doing what I want - I really wanted to tidy up -

I have parked this one for the moment - something to get back to at a later date

g
 

Users who are viewing this thread

Back
Top Bottom