PDA

View Full Version : Setting up embed code, question



kdubbie
10 May 2010, 05:34 PM
Hello,

I was asked to create a web banner (160 x 600px) that is html based (It's a banner promoting our services, with a link going to our homepage, and 4 links going to our social media pages (facebook, twitter, etc), We want to keep this HTML banner on our site, with an embed code guests can copy and paste into their websites.

Is this correct? I should

1. write the code for the HTML banner that will be on our site.

2. create an "Embed Code" div next to the banner.

3. Take the code I used to create the banner and modify it so it can be shown in the "Embed Code" div. So users can copy.

--------------------------------------------------------

Just a couple of questions.

Because we hope that people will take this code and paste into their website... The Embed code should be set up to create the HTML banner with only inline styles and !important tags as to avoid inheriting the styles from the website it's on?

Is it ok that the embed code is long with nested divs?

--------------------------------------------------------

I've never done this, so I want to make sure I'm on the right track.

Thanks a lot

sandman64
12 May 2010, 02:26 AM
I'm kind of confused with what exactly you are trying to do. Usually all you would need is an <img> tag with the image location and the link provided. The styles for your site aren't necessarily going to be used on other peoples sites, so I don't think you would need to include them at all.