Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2005, 03:50 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to fred_brie
Default firefox Vs IE

  Im working on a mock up of a future website i would like to build. I mostly work with firefox. My problem is that there is a difference between IE and Firefox in the display of my nav menu on the left side of my page. You can view my page at:

http://pages.videotron.com/ccmrc291/test_01.html

Firefox 1.0 display it like i want it, while IE add a white stripe between each of my menu image. I dont know why.

Somebody can give me a hint????
 
Old February 22nd, 2005, 04:12 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I think it is the line breaks after the <td> element is opened.

You're also working in quirks mode in IE, this is because of the presence of the XML declaration. If you ditch the XML declaration, you'll be in standards mode, and I think this problem goes away.

Otherwise you can remove the whitespace between the <td> and the cell content (as well as between the end of the content and the closing </td> tag), and your problem is solved.

You could also use <div> tags instead of tables. I would suggest[list], since they are more correct for this usage from a semantic standpoint, but IE also suffers from whitespace bugs with list elements. These bugs are easier to solve (at least from my experience) in standards mode. I've had the best luck with <div> elements.

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design





Similar Threads
Thread Thread Starter Forum Replies Last Post
how with firefox akkad Javascript How-To 4 December 28th, 2006 11:45 AM
Firefox 1.5 enjoysolutions BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 March 13th, 2006 10:34 AM
firefox / IE flipo Beginning PHP 7 November 8th, 2005 12:38 PM
Firefox brucen BOOK: Accessible XHTML and CSS Web Sites: Problem Design Solution 0 October 26th, 2005 12:38 PM
Firefox Hunter Linux 1 February 22nd, 2005 12:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.