473,382 Members | 1,651 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

some (undesired) white space in Firefox but not IE

Hi there,

Please take a look at:

bluecelery.amandadevries.com/index.html

as well as the CSS and tell me why there is a white space in the table
in Firefox (that looks like a white horizontal line running through the
entire layout) which isn't present in IE (which, by the way, is the way
I want it to be).

Ignore the pixelated images (if that's how they show up for you), among
other things.

Thanks,
Amanda

Nov 6 '06 #1
3 12522
am*******@gmail.com wrote:
Hi there,

Please take a look at:

bluecelery.amandadevries.com/index.html

as well as the CSS and tell me why there is a white space in the table
in Firefox (that looks like a white horizontal line running through the
entire layout) which isn't present in IE (which, by the way, is the way
I want it to be).

Ignore the pixelated images (if that's how they show up for you), among
other things.

Thanks,
Amanda
Your HTML has 7 errors. Among them is a closing </divwithout a
corresponding open <div>.

Your CSS has 2 errors. Both of them relate to specifying a margin of
1.5empx. It must be either 1.5em or 1.5px. You can't combine em and px
into a single unit.

You should not be using tables unless you are presenting data in a
tabular form. Don't use tables to create boxes or margins.

Finally, your HTML is quite difficult to read, scattered back and forth
across the screen. For finding a bug, it's impossible to read.

Fix the errors. Use CSS and not tables to format the page. Reformat
the HTML. Then, if you still have a problem, ask again.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
Nov 7 '06 #2
On 2006-11-06, am*******@gmail.com <am*******@gmail.comwrote:
Hi there,

Please take a look at:

bluecelery.amandadevries.com/index.html

as well as the CSS and tell me why there is a white space in the table
in Firefox (that looks like a white horizontal line running through the
entire layout) which isn't present in IE (which, by the way, is the way
I want it to be).
add

td.logo img { vertical-align: bottom; }

to your stylesheet.

Or

td.logo img { display: block; }

should work as well.

What you have there is an inline image in a table cell. Inline images
sit on the text baseline, and FF has left a bit of space below the
baseline for descenders (tails on letters like y, g, q).

Even though you've set the height of the cell to 200px, FF won't make
the cell shorter than it thinks it needs to be.

So we either tell it not to sit on the baseline, but right at the bottom
(vertical-align: bottom), or not to be inline (display: block).

As the other poster mentioned, you should fix your validation errors,
especially the unmatched </divand the "empx" sizes in the CSS.

Get this tool for a start: http://tidy.sourceforge.net, although it
didn't seem to spot "empx".
Nov 7 '06 #3
wow, thank you so much.

I knew I would get scolded about the other stuff, and I'm in the midst
of learning CSS for layout, but in the meantime, bills have to be paid,
hence the table.

I'm still working out the site, and do plan to validate once everything
is complete.

Thanks again for your help,
amanda

Ben C wrote:
On 2006-11-06, am*******@gmail.com <am*******@gmail.comwrote:
Hi there,

Please take a look at:

bluecelery.amandadevries.com/index.html

as well as the CSS and tell me why there is a white space in the table
in Firefox (that looks like a white horizontal line running through the
entire layout) which isn't present in IE (which, by the way, is the way
I want it to be).

add

td.logo img { vertical-align: bottom; }

to your stylesheet.

Or

td.logo img { display: block; }

should work as well.

What you have there is an inline image in a table cell. Inline images
sit on the text baseline, and FF has left a bit of space below the
baseline for descenders (tails on letters like y, g, q).

Even though you've set the height of the cell to 200px, FF won't make
the cell shorter than it thinks it needs to be.

So we either tell it not to sit on the baseline, but right at the bottom
(vertical-align: bottom), or not to be inline (display: block).

As the other poster mentioned, you should fix your validation errors,
especially the unmatched </divand the "empx" sizes in the CSS.

Get this tool for a start: http://tidy.sourceforge.net, although it
didn't seem to spot "empx".
Nov 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark Moore | last post by:
I'm trying to layout a couple text input fields and their corresponding labels without using a table. When I was trying to debug my understanding of CSS, I was *very* surprised to see that span's...
5
by: Michael Shell | last post by:
Greetings, Consider the XHTML document attached at the end of this post. When viewed under Firefox 1.0.5 on Linux, highlighting and pasting (into a text editor) the <pre> tag listing will...
4
by: lidija | last post by:
Hi everybody, My problem is following: in the HTML source I have an <XML> tag, containing an XML document. I am trying to read this XML and save it, but I have problem saving it in the same form...
38
by: Xah Lee | last post by:
sometimes i wish to add white space in <p> as to achived effects similar to tab. what should i do? using empty image seems the sure way but rather complicated. (and dosen't change size with...
2
by: cosmo_canuck | last post by:
Hi all! I'm a web designer who's valiantly struggling, with occasional moments of triumph, to build my first fully CSS site. Hope that you can answer a couple of quick newbie questions. Page:...
2
by: shagy | last post by:
Hi, I'm having a problem with a <select><option> which has white space in values... When I post the data I only get the first word (up to the white space). "Testing white space" becomes...
22
by: Brent | last post by:
I want to paste a lengthly text document into a web page and have it retain all of whitespace and line breaks. I first tried the <pretag but that didn't work because it doesn't wrap the text. I...
3
by: skyleestar | last post by:
We've tried looking for a discussion on this but haven't found any fixes yet that seem to work. When you go to our website, www.MillbrookTack.com, in FireFox there is unwanted white space above...
8
by: PunchBackJack | last post by:
Im having trouble getting this site to show correctly in IE (big surprise). I have a div element (side bar) inside another div element that simply takes the size of the largest element inside as the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.