Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
IE won’t show align=left image
Posted: 12 March 2005 09:30 PM   [ Ignore ]  
Summer Student
Total Posts:  13
Joined  2002-07-11

I use Firefox almost exclusively, but some of my friends who read my blog use IE.  I have discovered that when I post an entry with an image aligned to the left or the right, it shows up in IE as a blank space.  In Firefox it looks fine.

A little research around the forums led me to believe this is probably a CSS error (not surprising, my code is so screwed up I’m surprised the website shows anything at all).  I added a style sheet for “.weblog img” but found that it aligned ALL the images I have posted to my blog over to the left.  Sometimes I’ll post one big photo with just one line of text underneath it, and in that case I don’t want it aligned or floated.

Is there a way to float an image to the left in a single entry (and have it show up in IE)?

Profile
 
 
Posted: 12 March 2005 11:42 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

Instead of adding align=“left” to the image tag, you could instead float that particular image with CSS: style=“float: left;”

<img src="path/to/image.jpg" height="100" width="100" alt="my image" style="float: left;" />

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 16 August 2005 02:04 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  13
Joined  2002-07-11

I just posted virtually the same question elsewhere—but for what it’s worth, I did try the float=left tag also and I had no success with it. 

So far I have tried “align=left”, “float=left”, and an extra css tag—“.image {
float: right;
margin: 10px 0 10px 10px;
}”

This last one… I’m not sure I pasted that code in the right place.  But every time the result is the same—image looks just how I want it in Firefox, and there’s just an empty space in IE.  Example here.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 64510 Total Logged-in Users: 0
Total Topics: 81068 Total Anonymous Users: 0
Total Replies: 436299 Total Guests: 18
Total Posts: 517367    
Members ( View Memberlist )
Active Members: