How to properly specify font size and face in a classified Ads HTML template without html, body and head tags (these tags will be cutted), when template will be put in iframe on page? The classifieds website will use mixed styles which will come partly from it page, so every CSS style I don’t assign specifically, will get a style declaration from main website CSS. I know inline style is a good solution for elements, but sometimes adding styles to a wrapper of template is enough. The sample of html template.

  • what you are using for classified ad? any software? – Helping Hands Dec 23 '14 at 12:52
  • I mean html template, consisting from tables, some internal CSS and div sections with paragraphs, like <div id="templatedesc" class="tempwidget"><div class="temp-content"> <p>..</p> – triwo Dec 23 '14 at 13:12
  • you can set like <style=font-size:20px;/> – Helping Hands Dec 24 '14 at 9:31

If you can specify css in the wrapper do it there, if not, inline seems a good option, it works. <div style="font-size:150%"></div>

  • I can apply style to "temp-content" div: .temp-content { width:700px; text-align:left; font-size: 100%; font-family: 'Open Sans', Helvetica, 'Trebuchet MS', Arial, sans-serif;} – triwo Dec 24 '14 at 20:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.