<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Support Forum Topic: crop image and display inline</title>
<link>http://support.westciv.com/</link>
<description>Support Forum Topic: crop image and display inline</description>
<language>en</language>
<pubDate>Fri, 10 Sep 2010 13:37:21 +0000</pubDate>

<item>
<title>gt2304b on "crop image and display inline"</title>
<link>http://support.westciv.com/topic/crop-image-and-display-inline#post-973</link>
<pubDate>Tue, 25 Sep 2007 17:39:51 +0000</pubDate>
<dc:creator>gt2304b</dc:creator>
<guid isPermaLink="false">973@http://support.westciv.com/</guid>
<description>&#60;p&#62;I guess the ONLY html element that can be displayed inline AND you can set the width and height is the img element... =(&#60;/p&#62;
&#60;p&#62;That is a nifty workaround with the transparent gif, but I guess this is one example of how CSS is still lacking in allowing you to separate content and presentation.&#60;/p&#62;
&#60;p&#62;Thanks for the reply.
&#60;/p&#62;</description>
</item>
<item>
<title>Cary on "crop image and display inline"</title>
<link>http://support.westciv.com/topic/crop-image-and-display-inline#post-972</link>
<pubDate>Tue, 25 Sep 2007 07:19:43 +0000</pubDate>
<dc:creator>Cary</dc:creator>
<guid isPermaLink="false">972@http://support.westciv.com/</guid>
<description>&#60;p&#62;I couldn't come up with any way of making this work in IE short of using a transparent gif with a background image. Also, this will still allow you to use alt text if you need it.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;img class=\&#38;quot;cropicon\&#38;quot; src=\&#38;quot;blank.gif\&#38;quot; width=\&#38;quot;14\&#38;quot; height=\&#38;quot;14\&#38;quot; alt=\&#38;quot;\&#38;quot;&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;img.cropicon {
	background: url(croppicture.gif) no-repeat 0 0;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>gt2304b on "crop image and display inline"</title>
<link>http://support.westciv.com/topic/crop-image-and-display-inline#post-971</link>
<pubDate>Mon, 24 Sep 2007 22:54:49 +0000</pubDate>
<dc:creator>gt2304b</dc:creator>
<guid isPermaLink="false">971@http://support.westciv.com/</guid>
<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;so I need to crop an image that is 14x28 and display it inline (in the middle of a paragraph).  So here's the dilemma: to 'crop' an image, you have to constrain the container around the image (either as an img tag or as a background image) which means that the container must be a block element.  (only way to specify width and height).  But again, I would like to display this image in the middle of the paragraph..  something like this:&#60;/p&#62;
&#60;p&#62;Doesn't this picture [14x14 cropped picture] look great?&#60;/p&#62;
&#60;p&#62;In the interest of accessibility and just good html/css practices, I need the picture to remain cropped at 14x14 in the event the font-size is increased or decreased by the user.&#60;/p&#62;
&#60;p&#62;The ONLY way I have been able to get the functionality that I want is to create a single cell table with display:inline that contains a div which crops my image.  But this results in ugly, non-semantic markup: &#60;code&#62;&#38;lt;table&#38;gt;&#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;&#38;lt;div&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;lt;/table&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I was able to get close to what I want by doing this:&#60;br /&#62;
(html:)&#60;br /&#62;
&#60;code&#62;&#38;lt;span class=\\\&#38;quot;crop-icon\\\&#38;quot;&#38;gt;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;(css:)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;span.crop-icon {
  padding:0 14px 0 0;
  font-size:14px;
  background: transparent url(croppicture.gif) no-repeat top left scroll;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;While this works in firefox, it doesn't work in IE7 -- not sure why... (In IE7, the background image is not displayed.. there is just an empty space where it should be.  The really weird thing is that when I X-RAY the blank space, the whole (uncropped) image pops onto the screen and stays there until I do a refresh of the page.)&#60;/p&#62;
&#60;p&#62;can anyone help?!?
&#60;/p&#62;</description>
</item>

</channel>
</rss>