Jump to content

IE7 Float Bug

Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

IE7 Float Bug Rate Topic: -----

#1 User is offline   ZekeLL 

  • W.R. Private
  • Group: Members
  • Posts: 4
  • Joined: 20-July 08

Posted 02 October 2008 - 01:14 PM

Hi, this bug is driving me nuts. I don't know why it happens. All I know is that it is not even consistent.

Here's a screenshot of the problem: http://www.argsoccer...oat-problem.jpg

Posted Image

And here's the code for that part:

<p>The bus will take you to your hotel, where you can leave your luggage and take a shower.</p>
  <p>This day we suggest the Buenos Aires City Tour. Discover one of the most amazing cities in the world. Buenos Aires is a thoroughly modern city with more than 400 years of history. Visit Florida street, one of the most surprising pedestrian streets in South America. You don't want to miss Palermo Soho, the trendiest neighborhood in Argentina, where you will find tourists from all over the Globe;<img src="images/caption10.jpg" alt="Caminito" width="300" height="300" class="floatright" /> visit Puerto Madero, the preferred area for luxury offices and restaurants; and also check out San Isidro, the most exclusive neighborhood in Buenos Aires.</p>
  <p>You will also get to see Argentina's historic buildings, the <em>Casa Rosada</em> (which means &quot;Pink House&quot; and is the President's office), the <em>Obelisco</em> (a huge tower with a lot of history), and some of the oldest, yet best mantained museums and theaters in the world.</p>
  <p>Finish the day with a short visit to Recoleta, the neighborhood of choice for expats in Buenos Aires to have a good time and eat at the best restaurants.</p>
  <h2>Thursday, March 4 - <span class="redsubtitle">Practice + Palermo Soho + Recoleta</span></h2>
  <p>Your team will have a practice in the morning. A complimentary transfer will be available for you and your Tour Manager will help you with any arrangements that you need.<img src="images/caption11.jpg" alt="Rugby practice" class="floatright" /></p>
  <p>In the afternoon you can have <em>Tapas</em> -a Spanish typical dish- in Palermo Soho, a place that is so cool you will never forget it.</p>


The CSS for floatright is:

.floatright {
	float: right;
	margin-top: 10px;
	margin-bottom: 10px;
	margin-left: 10px;
}


As you can see in the code, in both cases I insert the image the same way, but the first one looks OK and the second one doesn't. This happens on IE7 (not sure about other versions of IE), but for sure it doesn't happen on FF.

Anybody has any clue on what could cause this?
0

#2 User is offline   sypher 

  • the owner3r
  • Group: Administrators
  • Posts: 1,578
  • Joined: 04-April 06
  • Location:North Wales, UK
  • Interests:Art, Boxing, MMA, Graphic Design, Web Design etc. ;)

Posted 02 October 2008 - 11:14 PM

You havent added a height and width value on the second float img.

Also try changing the values of the margins to see if it helps.
Also try a clear: right; on the bottom float
sypher design - North Wales Web Design | Latest Work: - Scala Cinema

CSS - Can't See Sh*t
0

#3 User is offline   Ben Marshall 

  • W.R. Private
  • Group: Members
  • Posts: 31
  • Joined: 26-September 08
  • Gender:Male
  • Location:Dallas, TX
  • Interests:Web Development, SEO

Posted 03 October 2008 - 12:48 PM

The height and width shouldn't affect it. I would try this:

.floatright {
	display:block;
	float: right;
	margin-top: 10px;
	margin-bottom: 10px;
	margin-left: 10px;
}


Add the 'display' attribute.
0

#4 User is offline   gulfesolutions 

  • W.R. Private
  • Group: Members
  • Posts: 16
  • Joined: 01-June 11

Posted 29 June 2011 - 07:12 PM

change you browser...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users