Image float misbehaving in IE vs FF

This is a discussion on "Image float misbehaving in IE vs FF" within the Web Page Design section. This forum, and the thread "Image float misbehaving in IE vs FF are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 19th, 2008, 20:07
Junior Member
Join Date: Feb 2008
Location: King's Lynn, UK
Age: 38
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Image float misbehaving in IE vs FF

I'm floating an image in the content area of www.togetherateastofengland.com/index.php?pageid=1 In Firefox it butts vertically with the div above as I want it to, but in FF it doesn't.

Bizarrely the image on www.togetherateastofengland.com/index.php?pageid=2 behaves itself in both browsers.



Code: Select all
 
 #main {
 clear:both;
 border: 1px solid #FFF;
  
 background:#FFF;
 width:900px;
 color:#1B1E3F;
 }
 #main p {
  margin-top: 0;
 }
 #main h2, #main h3{
  margin-top: 0; 
  size:1.25em;
    }
 
 #welcomepic
 {
 float:left;
 width:195px;
 }
 #facpic
 {
 float:left;
 width:255px;
 }
I have 2 questions
What have I done wrong?
Is float the best way of achieving text next to an image?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 19th, 2008, 20:56
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image float misbehaving in IE vs FF

You seem to have a strange character in your code.

<div id="main">
HTML: Select all
'<img id="welcomepic" src="images/welcome.jpg" width="195" height="171" alt="Welcome" />
Try rewriting this piece of code as ie seems to be rendering this somehow.

If you view your source in ie it is more apparent.

Pat
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 19th, 2008, 21:37
Junior Member
Join Date: Feb 2008
Location: King's Lynn, UK
Age: 38
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image float misbehaving in IE vs FF

Thank you so much!

The webpage is encoded as UTF-8 - but when the files are saved as UTF-8 files a weird little box (the standard what is that character) appears in the source, but not on the page, throwing the layout.

When I resaved the files using Notepad with ANSI, the character disappeared and i looks great. Now I can add the margins I want!!!

Can anyone explain how a UTF-8 xhtml site needs top have its files saved with ANSI encoding to work please???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] misbehaving footer mykl Web Page Design 15 Oct 15th, 2007 19:20
How to float 2 image hyperlinks on same line AdRock Web Page Design 6 Apr 2nd, 2007 14:30
Problems with float:left float:right nvidiajoe Web Page Design 8 Nov 17th, 2006 20:24
IE6 Float masonbarge Web Page Design 8 Aug 16th, 2006 10:13
Image float problem timmytots Web Page Design 6 Jul 8th, 2006 13:40


All times are GMT. The time now is 18:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42