HTML - Email Template -> Soooo Close!
Im in the progress of building my first mailchimp template.
Ive come very far, but one thing I cant figure out. Please have a look at this image to see the original photoshop concept. Now please look here for my progress so far. The code that im struggling with: Quote: <table border="0" cellpadding="0" cellspacing="0" width="100%" class="bg_h4" mc:repeatable> <tbody> <tr> <td><h4 mc:edit="article_title1" class="titeltjes">Maatwerk met Italiaans klasse </h4></td> </tr> <tr id="background_blox"> <td align="center" valign="top"> <img src="http://gallery.mailchimp.com/653153ae841fd11de66ad181a/images/placeholder_260.gif" style="max-width:160px;" mc:label="image" mc:edit="liwc600_image00" /> </td> <td valign="top"> <div mc:edit="article_content1"> <strong>Variable content blocks:</strong> <a href="http://www.mailchimp.com/kb/article/how-do-i-work-with-repeatable-content-blocks" target="_blank">Variable content sections</a> are noted with plus and minus signs so that you can add and subtract content blocks and also a drop-down selector that allows you to choose which type of content block to display. </div> </td> </tr> </tbody> </table> Can anyone help me out? The brown h4 area needs to be wider! Thanks for reading this. Similar TutorialsHi I've done a search with various keywords about this but haven't been able to find the answer. I'd like to know how you combine the html and css from a website to create a single file that can be used to make a template suitable to send as an email (that keeps the look and feel of the site intact) I'm sure it's really easy to do via dreamweaver but I don't know how. Thanks Hi guys, I created a email template for company usage using html, i put company`s logo in it, it works perfect with outlook and windows live mail, but when i open that email template in browsers, i see .jpg file at the end of the mail message. Is there any way to get rid of this? Thanks. here is a screenshot of my problem: http://img26.imageshack.us/img26/5672/16715830.jpg YAY SOLVED THANKS TO COOTHEAD This thing is driving me nuts... over the last 36 hours i, along with a helpfull member of this community have been trying to fix some SIMPLE code that wasnt broken in the first place. It displays fine, when tested in Dreamweaver, tests fine in IE, FF. The several adjusted codes even display fine inside the test previewer of the mail program on www.yourmailinglistprovider.com ! The trouble starts when the email HTML code gets sent to the Gmail & Hotmail inbox. Both my inbox' are stuffed with test mails.. and it isnt going to end any time soon I have CODE 2 that wont load up the CSS image tags. And CODE 1 that wont display the text in its right position, not on top of the image, instead it shows it way down, like so: http://img196.imageshack.us/img196/2625/frustration.jpg So finally... i discovered, why.. the Gods have put me in this misfortune. Google Mail is in BETA, and that means the following: Quote: Google Mail, LotusNotes, and Outlook 2007 present special coding problems. The good news? If you code to account for their oddities, your html email code is more likely to display well in most if not all email software. Because Google cannot control how senders will code CSS and HTML, they have to take steps to ensure their application displays properly regardless of the code quality of the html email that is displayed. As a result, Google Mail acts like an artifact of the mid 1990s when web standards were primitive. It takes some work, but it is possible to crack open a Google Mail page and see just how convoluted their approach is to rendering html email. For one thing, Google Mail deletes any CSS style reference to a set of styles, no matter where it appears in the email. And fonts displayed in html tables have the odd habit of appearing larger than intended no matter how the html email is coded. &#^&%$@3(*(2@#*&y#!!............................. Why Now all my work ive put into this could be all for nothing,.. since I believe the solution given by the website is too far fetched for this amateur. The solution: Quote: Here are coding techniques that appear to work well in Google Mail and older email softwa * Define the background color in a TD cell with bgcolor=, not the CSS style. * Use the background= attribute in the TD cell for background images, not the CSS. A corollary is that the background image can be made as tall as needed. If the content of an email template might be short or tall depending on the email content, using an extra-tall background image this way lets the email layout height shrink or expand based on the height of the copy from one email to the next. Note, however, that Outlook 2007 ignores background images. * If it works better, use the padding style to control margins within a TD cell. The margin style does not work in these cells. Padding does work. * If a border around a TD cell is needed, Google Mail displays a border when defined in a DIV but not when defined as a border style in a TD tag. * If a light colored link against a dark background color is needed, put the font definition in the TD cell (so it applies to P and A tags equally) then add a color= style to the A tag. * If the P and A fonts appear to be different sizes, wrap the A tag in a P tag. * Google Mail aggressively uses the right column of their interface which squeezes the html email into the center panel. Be sure the padding style in the content TDs is set at 10 pixels all round so text does not smash against the left and right edges. * When testing an html email with a Google Mail account, it is likely one or more missing font styles in the TD, H1, H2, P, A, and other tags will be found. Inspect every font carefully to make sure Google Mail displays the fonts correctly. SOURCE I need either of these two amateuristic codes (they are basically the same) re-coded with the rules up above. Could anyone who can do this fluently without breaking a sweat help me out? I am near desperation and willing to transfer a fee to whatever paypal account. I just need this mail template sent out asap. Thank you for reading. CODE 1: HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <base href="http://xx.com/"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title></title> <style type="text/css"> #container{ width:711px; margin:auto; font-family:verdana,sans serif; font-size:16px; background-image:url(blokje.png); } #pic { display:block; } #content { padding:0 0 60px 50px; background-image:url(onderkantcurve.png); background-repeat:no-repeat; background-position:0 bottom; } #p-one { font-weight:bold; color:#410d3e; } #pic-one { text-align:center; } #pic-one img { width:170px; height:190px; } #link { font-size:12px; } </style> </head> <body> <p align="center"><font face="Verdana, Geneva, sans-serif" size="2"><a href="http://xx.com/template3.html">Klik hier voor de web-versie mocht de nieuwsbrief niet goed worden weergegeven.</a></font></p> <div id="container"> <img id="pic" src="top.png" alt=""> <div id="content"> <p id="p-one"> Nieuwsbrief februari 2010 </p><p><br> Beste Lezer van mijn eerste nieuwsbrief, </p><p> Graag wil ik je opmerkzaam maken op de nieuwste activiteiten van <br> Sessio Communications. </p><br> <p id="pic-one"> <img src="koord.jpg" alt=""><br> <a href="http://www.xx.com">www.xx.com</a> </p><p> <br> Ik nodig je van harte uit om <a href="http://www.xx.com">mijn website</a> te bezoeken.<br> Reacties zijn welkom. Doorsturen naar andere belangstellenden mag. <br> <a href="[FORWARDTOFRIEND]">Stuur deze email door naar een vriend of vriendin.</a></p> </p><p> Mocht je geen belangstelling hebben om op de hoogte te blijven van<br> mijn verschillende workshops en trainingen dan kun je dat via de <br> link onderaan de pagina aangeven. Je e-mail adres wordt dan verwijderd. </p><p><br> Met vriendelijke groet, </p> </p> </div> </div> <p align="center"><font face="Verdana, Geneva, sans-serif" size="2"><a href="http://ymlp154.com/u.php?YMLPID=gejseubgsguejeg"> Uitschrijven / Gegevens wijzigen </a></font></p> </body> </html> CODE 2: HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <base href="http://xx.com/"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title></title> <style type="text/css"> #container{ position:relative; width:711px; height:910px; margin:auto; font-family:verdana,sans serif; font-size:16px; } #pic { position:absolute; top:0; left:0; } #content { position:absolute; top:170px; left:50px; width:651px; height:680px; } #p-one { font-weight:bold; color:#410d3e; } #pic-one { text-align:center; } #pic-one img { width:170px; height:190px; } #link { font-size:12px; } </style> </head> <body> <p align="center"><font face="Verdana, Geneva, sans-serif" size="2"><a href="http://xx.com/template3.html">Klik hier voor de web-versie mocht de nieuwsbrief niet goed worden weergegeven.</a></font></p> <div id="container"> <img id="pic" src="big.png" alt=""> <div id="content"> <p id="p-one"> Nieuwsbrief Februari 2010 </p><p><br> Beste Lezer van mijn eerste nieuwsbrief, </p><p> Graag wil ik je opmerkzaam maken op de nieuwste activiteiten van <br> Sessio Communications. </p> <p id="pic-one"> <img src="koord.jpg" alt=""><br> <a href="http://www.xx.com">www.xx.com</a> </p><p> <br> Ik nodig je van harte uit om <a href="http://www.xx.com">mijn website</a> te bezoeken.<br> Reacties zijn welkom. Doorsturen naar andere belangstellenden mag. <br> <a href="[FORWARDTOFRIEND]">Stuur deze email door naar een vriend of vriendin.</a></p> </p><p> Mocht je geen belangstelling hebben om op de hoogte te blijven van<br> mijn verschillende workshops en trainingen dan kun je dat via de <br> link onderaan de pagina aangeven. Je e-mail adres wordt dan verwijderd. </p><p><br> Met vriendelijke groet, </p> </div> </div> <p align="center"><font face="Verdana, Geneva, sans-serif" size="2"><a href="http://ymlp154.com/u.php?YMLPID=gejseubgsguejeg"> Uitschrijven / Gegevens wijzigen </a></font></p> </body> </html> Thanks for reading.. I need html code of an ad with close button and I also need html code of floating ad with close button.If someone knows how to do it , please post html. http://lmiinc.com/LMIinc_Links.html First off let me say sorry for the code on here, its terrible, but not mine, I'm just trying to help do a little updating while I'm building him a new site. Ok I edited a bunch on this page & now its still a really long page with just a little info & there is a large blank gap until you reach the bottom. I've tried resizing a few things to make it normal with no luck. What do I need to adjust to make it normal? I am so close to finishing up the pop player that I have been working on. Need just a little help to get over the top http://www.vlifechurch.org/ on this page is a sermon player link. If you click on it you will see the player, for some reason I can not get the video player moved over to the right and let the weekly sermons titles on the right. Please a little help... thanksss Hi, I want to put in a form to get queries from the user, like so: Name: Email: Comments: 'Send' button and that it will send the information to my email address which is gmail? Thanks I try to make make "close window" button or link and I used this codes: Code: <form> <input type="button" value="Close Window" onClick="window.close()"> </form> or this one Code: <a href="javascript:window.close()">Close Window</a> None of this one works in firefox. Do I have to do some modification to the code? Does someone have other code I can use? there are sum pages where theres a lil link u click on to close the page how to do this ??? and if i want it to be automatically done after a period of time i want it to be sumthin like this for example HTML Code: <script type="text/javascript"> function redirect() { document.location.href = "http://www.westcoast-host.com/en"; } setTimeout("redirect()", 10000); </script> this is for redirect i want to close the page Thanx BYE When you use a <p> tag, there is space between paragraphs. Not sure if there is are automatic margins set for the top and bottom, but that's the way it seems. I'm using <p> tags inside a <table> and I'd like the first paragraph to be tight to the top of the cell but the only way I know how to do it is to remove the <p> tags from the first paragraph. I don't really want to do this as I'd like to have the <p> tags around each paragraph. Here is what I have, which btw does exactly what I want it to but as you can see the first set of <p> tags have been removed. What's a better way to get this effect? Code: <table cellspacing="10"> <tr> <td class="menu" style="background-color:#8C9429"><a href="lab4-2bsolution.html">Prices</a> <p><a href="http://www.antiquity.ac.uk/">Links</a></p></td> <td class="content">Voytokovich Antiquities is the leadinng wholesaler for Asian, Middle Eastern, and European antiquities. Items in our store include masks from a variety of cultures, statues, paintings, and other collectibles. Bring the past into your own homes with the beautiful art pieces offered in our store. Come visit us often to find new and unusual items not found elsewhere <p>The links on the left take you to pricing information and our favorite Web sites. Please take a look at our prices and call or e-mail us for a price quote.</p> <p>Please sent any comments to <a href="mailto:voytkovich@isp.com">voytkovich@isp.com</a>.</p></td> </tr> </table> This is for a class assignment. It calls for a one row, two column borderless table. The first column has two links (one on top of the other), and the second column has three paragraphs of text. Thanks for any suggestions! Ok I just deleted about 100 links off of this page: http://lmiinc.com/LMIinc_Links.html And now as you can see there is some extra space. What do I have to do in order to make it look "normal"? Thanks. If a person needs to close their site temporarily for health reasons, what would be the best approach for that? This site is using html pages as well as an ecommerce store. The site will be returning as it is, but we dont want anyone to be able to make purchases or view the content of the site for the time being. Any suggestions/help will be greatly appreciated. Thank you! I have the following html which opens a new window. Is there a way of once the new window has opened, the current window closes? thanks HTML Code: <html> <head> <a href="http://www.capitasymonds.co.uk/expertise/all_expertise/industrial_design__project_se.aspx" target="_blank"> <img src="CS_LOGO.jpg" alt="capita logo" width="304" height="30" border="0"/> </a> <head> <hr> <title> Multi-Pix Created By CAPITA SYMONDS </title> <body <br><p><em><b><font size= +1 >Multi-Pix Secure Area Demo:</font></b></em></p> <p><em><a href="#" onClick="javascript:window.open('Multipix.html','_blank','status=yes,top=0,left=0,width=1024,height=768');" >click here</a> to view the Multi-Pix.</em></p> <hr> Generated by <a href="http://www.capitasymonds.co.uk/expertise/all_expertise/process_engineering/smart_tools.aspx" target="_blank"> <br><img src="ST_LOGO.jpg" alt="capita logo" width="200" height="30" border="0"/> </a> </body> </html> Overview User will visit the site, that has a default iframe on load that displays in on the page. The below div i'm using to null their ability to navigate the base page *excluding the iframe Code: <div id="popupMask0" class="popupMask" style="z-index: 2001; display: block; height: 600px; width: 100%; top: 0px; left: 0px;"> </div> So the user is looking at a page that has a user agreement in the iframe. if they click "NO", they are re-directed to a page that says they cannot view the site due to not agreeing to the terms page. If they click "YES", they are taken to a terms of use page, also contained in the iframe with the masked div over the main page. Once on the terms page, if they click "NO", they are re-directed to a page that says they cannot view the site due to not agreeing to the 2nd terms page. If they click "YES", the iframe disapears and the masked DIV disapears. The user will have the ability to click links and objects on the base page at this time. Goal Need to have a user agreement page, and term page display before allowing users to login to a site. This is the cleanest way that i can think of for the restrictions i need to work around. All viewers will be using IE, so no need to be cross-browser friendly. screen shots attached I remember some 6 years back when I used to play around with HTML that there was a code that I could use. What it did was when you closed out the webpage it would cause another webpage to load in it's place. much like what a lot of porn sites do for traffic. Any information would be appreciated. "Lifes a ***** than you go to hell" Hi, I'm working on a project and I want layers stacked to be visible and invisible through a button. Anyone here that buys books on Amazon knows what I'm talking about. Some books in Amazon have a "look inside" that when you click it opens like a layer where you can see some content of the book. This layer or whatever it is has an X button to close it. This is what I want to do, but I don't have an idea of how this can be accomplished. Any help will be appreciated. Thanks Hi all, In my report i show the amount value. Below the amount value, i want to draw 2 horizontal lines close to each other in HTML. I used 2 hr tags and it printed 2 horizontal lines but the width between them is large. I want the 2 horizontal lines to be very close to each other. e.g Amount: 100 -------- -------- The above 2 lines should be closer to each other and not like the above. Let me know if anyone knows how this can be done. The text on this page has huge gaps between the lines. The gaps are between "Choose a Transaction", "Transaction Types" and the button "Next". I have included the page code and attached an image for reference. If you could help me close the gaps, I'd greatly appreciate it. Thanks. Code: <table width='770' border='0' cellpadding='0' cellspacing='0' id='maintable' align='center' valign='top' align='left' margin=0 padding=0 width='770' height='500' table style='background-color:#ffffff; font-family:Arial, Helvetica, sans-serif; width:'770' height:'500'></td> <link href='custom.css' rel='stylesheet' type='text/css'> <td id='menu' align='left' valign='top' rowspan='500' width='164'> <br> <img src='images/bullet.gif' alt='' width='10' height='10'><a href='index.php'><font color='#DDCEA2'><font face='Arial' size='2'>Home</a></font><br></a> <form method="POST" action="index.php"> <input class='field' type='hidden' name='command' value='account'> <input class='field' type='hidden' name='param' value='renew'> <input class='field' type='hidden' name='account_id' value='[account_id]'> <td colspan='2' class='pageTitle'><div class='hLine'><font face="Arial" color="#EE7600" size="3"> Choose a Transaction</font></div></td> <tr><td class='fieldLabel' width="30%"><font face="Arial" color=#000000" size="3" Style="padding: 5px;"> <font face="Arial" color="#000000" size="3"> Transaction Type:</font><!--</td>--> <td align="left"><font face="Arial" color="#EE7600" size="2">[account_type_panel]</font></td> <tr><td align="center"></td> <td align="left"><input name="submit" type='submit' class='button' value='Next' /></td> </tr> </form> <tr height='30%' ><div class='hLine'></div></td></tr> </table> I am new to HTML coding. I am trying to create a form, which, automatically submits the form contents and finally automatically close the browser window. But I am not able to get the self form submissions and self window closing. The code that I have written is found below. Kindly advice on how to get it working. Thanks in advance. <html> <body> </form> <p><b>This form submits an HTTP POST request to url '/forms_example/post'</b></p> <form name="form1" form method="POST" action="http://localhost/forms_example/post"> <table> <tr> </tr><tr><td>Name</td><td><input type="Text" name="name" VALUE="roger"></td></tr> <tr><td>Address</td><td><input type="Text" name="address" VALUE="smith"></td></tr> <tr><td>Phone</td><td><input type="Text" name="phone" VALUE="25714988"></td></tr> <tr><td>E-Mail</td><td><input type="Text" name="email" VALUE="roger.smithatgmail.com"></td></tr> <tr><td><input type="Submit" VALUE="submit" > </td></tr> </table> </form> </script> function GO(){ setTimeout("subForm()",0) } function subForm(){ document.form1.submit() } t = null; function closeMe(){ t = setTimeout("self.close()",2000); } </script> </body onload="GO()";"closeMe()"> </html> |