No width for your non-repeater image

pro web dev here, but new to CM... kind of on a deadline for tomorrow or asap. so far most things worked seemlessly, except that I keep getting this same error about the img tag not having a width.

-- feature request - show what line number the error is on! --

anyway I've checked all image tags (there aren't many) - obviously the ones not in repeater tags are most in question, but I checked them all just in case - they all have widths specified.

any suggestions?? fyi here's the main code in the body:

<div id="content">
            <h2 class="headline"><$title default='Enter Feature Title Here'$></h2>
            <div class="feature">
                <div class="text">
                    <$description default='<p>Enter body content here</p>'$>
                    <p><a class="readMore" href="#">Read More &raquo;</a></p>
                </div>
                <img class="floatRight" src="<$imagesrc link='true'$>"
                    width="182" height="139" alt="{IMAGE PLACEHOLDER}" />
            </div>
            
            <br clear="all" />
            
            <h2 class="headline"><$title default='Enter Feature Title Here'$></h2>
            <div class="feature">
                <div class="text">
                    <$description default='<p>Enter body content here</p>'$>
                    <p><a class="readMore" href="#">Read More &raquo;</a></p>
                </div>
                <img class="floatRight" src="<$imagesrc link='true'$>"
                    width="182" height="139" alt="{IMAGE PLACEHOLDER}" />
                <!-- TODO: should this link be in the p.text block?? -->
            </div>
            
            <br clear="all" />
            
            <div id="columnLeft">
                
                <div class="category">
                    <img class="categoryTitle" src="<$imagesrc$>" width="283" />
                    <repeater>
                        <dl>
                            <dt><$title default='Enter Headline Here'$></dt>
                            <dd>
                                <$description default='<p>Enter body content here</p>'$>
                            </dd>
                        </dl>
                    </repeater>
                </div>
                
                <div class="category">
                    <img class="categoryTitle" src="<$imagesrc$>" width="283" />
                    <repeater>
                        <dl>
                            <dt><$title default='Enter Headline Here'$></dt>
                            <dd>
                                <$description default='<p>Enter body content here</p>'$>
                            </dd>
                        </dl>
                    </repeater>
                </div>
                
                <div class="category">
                    <img class="categoryTitle" src="<$imagesrc$>" width="283" />
                    <repeater>
                        <dl>
                            <dt><$title default='Enter Headline Here'$></dt>
                            <dd>
                                <$description default='<p>Enter body content here</p>'$>
                            </dd>
                        </dl>
                    </repeater>
                </div>
                
                <div class="category">
                    <img class="categoryTitle" src="<$imagesrc$>" width="283" />
                    <repeater>
                        <dl>
                            <dt><$title default='Enter Headline Here'$></dt>
                            <dd>
                                <$description default='<p>Enter body content here</p>'$>
                            </dd>
                        </dl>
                    </repeater>
                </div>
                
                <div class="category">
                    <img class="categoryTitle" src="<$imagesrc$>" width="283" />
                    <repeater>
                        <dl>
                            <dt><$title default='Enter Headline Here'$></dt>
                            <dd>
                                <$description default='<p>Enter body content here</p>'$>
                            </dd>
                        </dl>
                    </repeater>
                </div>
                
            </div>
            
            <div id="columnRight">
                
                <div class="category">
                    <img class="categoryTitle" src="<$imagesrc$>" width="283" />
                    <dl>
                        <dt><$title default='Enter Headline Here'$></dt>
                        <dd>
                            <$description default='<p>Enter body content here</p>'$>
                        </dd>
                    </dl>
                </div>
                
                <div class="category">
                    <img class="categoryTitle" src="<$imagesrc$>" width="283" />
                    <dl>
                        <dt><$title default='Enter Headline Here'$></dt>
                        <dd>
                            <$description default='<p>Enter body content here</p>'$>
                        </dd>
                    </dl>
                </div>
                
                <div class="category">
                    <img class="categoryTitle" src="<$imagesrc$>" width="283" />
                    <dl>
                        <dt><$title default='Enter Headline Here'$></dt>
                        <dd>
                            <$description default='<p>Enter body content here</p>'$>
                        </dd>
                    </dl>
                </div>
                
                <div class="category">
                    <img class="categoryTitle" src="<$imagesrc$>" width="283" />
                    <dl>
                        <dt><$title default='Enter Headline Here'$></dt>
                        <dd>
                            <$description default='<p>Enter body content here</p>'$>
                        </dd>
                    </dl>
                </div>
                
                <div class="category">
                    <img class="categoryTitle" src="<$imagesrc$>" width="283" />
                    <dl>
                        <dt><$title default='Enter Headline Here'$></dt>
                        <dd>
                            <$description default='<p>Enter body content here</p>'$>
                        </dd>
                    </dl>
                </div>
                
            </div>
Mathew Mathew, 7 years ago

I can't spot the problem from that code, but if you contact support and let us know the specific template you are working with we can try to replicate the issue on our end.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
BThies BThies, 7 years ago

Can you post your CSS as well?  I'm seeing possible code (floats, etc.) that may not be compatible with several e-mail clients.

Also, I'm not sure if this would fix your issue, but you're missing a </DIV> at the end to close out your "content" DIV.


Brian Thies
Professional Email Developer
Thies Publishing
Diana Diana, 7 years ago

Hey, I'm pretty sure we solved this via support (the first couple image tags had line breaks in the middle and it was messing with the validation checking for the width) but if I'm wrong just let us know.


~*~~*~~*~~*~
D. Potter
Campaign Monitor

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098