How to create code for Craigslist

Some common rules for creating code for site is

1. Use HTML Codes that are inside <BODY> and </BODY> tag of a HTML document for posting to craigslist.

2. Use inline styles instead of class selector. For example
Use <div style=”padding-left:10px;background-color:#666666;”></div> instead of
<div class=”style1″></div> and define that style in an external style sheet.

3. Image tag used with src attribute as a full path to the image. For example
Use <img src=”; /> instead of <img src=”images/php.gif” />. Because image is hosted in our server and the code is rendering from craigslist server.

4. Links to external sites not supported by craigslist (contact craigslist team to do so).

5. CL not supports Javascript, applets, Flash, or other embedded non-HTML content.


7. Don’t include “font-family:Arial, Helvetica, sans-serif;” as inline style. When we put the above attribute in the inline style definition CL processor neglects that style definition as whole. For example
<div style=”font-family:Arial, Helvetica, sans-serif;height:60px;background-color:#999999;width:250px;”>PHP</div>

The above code craigslist interpreted as <div>PHP</div>

The following are the list of attributes not supported by the CL
a.    font-size
b.    font-family

For overcoming this problem we can use the following type of code for font size and color specification.
<font size=”1″ face=”Arial, Helvetica, sans-serif”><div style=”width:300px;height:100px;color:#FF0000;background:#999966;”>PHP</div></font>
We can use <strong> tag for bold a particular text.

8. All the inline style attributes started with margin, whose style rules are removed by the CL code validation

<div style=”margin:5px;width:300px;height:100px;color:#FF0000;background:#999966;”>PHP</div>
Outputs as <div>PHP</div>

So for margin purpose we can use an outer padding div for the division to which we are going to apply margin.

9. Problem in the color attribute used. We cannot use the #FFFFFF [White] color for example if we put the following code
<div style=”color:#FFFFFF;width:300px;height:100px;background:#999966;”>PHP</div>
CL validation neglects the style and the output becomes

For overcoming this we can use a slight variation of white color #FFFFFD can be used.

Background white color also not allowed by CL validation.

you can use professional html creation web site like for creating adds for craigslist.

Published in: on June 10, 2008 at 10:17 am  Comments (5)  
Tags: ,

The URI to TrackBack this entry is:

RSS feed for comments on this post.

5 CommentsLeave a comment

  1. Hi,

    how r you?Hope you are expert in craigslist.Will contact you soon……..


  2. I have been trying to turn my Craigs List backgrounds black for the longest time-and finally-your blog showed me how-

    How about letting us know how to make a photograph-say a picture of a brick wall the background of a Craigs List Ad. There’s got to be a way.
    Awesome work! I really appreciate your ingenuity!

    • Could you send the entire code with some copy added in the right place so I can see how it looks? Thanks (black background I mean)

  3. Thanks for your info. Hey how to I find a list of the color codes? Like #99966; .Is there a site to find a chart of this? And also the font family. like arial.

    If you can help I would so apreciate it! Thanks!!


    here you can edit a page and while designing this page you can get so many “div”

    #000000 back
    #9900ff Purpul
    #0000ff Blue
    #660099 Dark Blue
    #66ffff navi Blue
    #33ff00 Green
    #ff0000 Red
    #cc9900 Brown
    #ffff00 Yellow


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: