Solved

Vertical spacing

Posted on 2012-03-23
4
164 Views
Last Modified: 2012-03-23
Please look at http://www.villageairportvan.com/about.htm

Notice at the bottom the 20 pixel high space. Please view source. Note the height of the table is 3 pixels. I have tried everything I can think of & it insists on making it 20 pixels high.

Why?
0
Comment
Question by:Richard Korts
  • 3
4 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 37759570
It's the white space entity you have in there,  . It is being rendered in whatever the default font-size is for the table. Add style="font-size:.4em" and the white space will take up less room. Adjust as necessary.
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 37759582
Actually, removing the white space entities ( ) completely seems to work best.
0
 

Author Closing Comment

by:Richard Korts
ID: 37759593
.2em works perfectly.

I never knew that   would have a default "height"; very odd.
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 37759597
It's treated like any other character you might put in a table cell. It inherits the line height from the table unless otherwise specified.

Thanks for the points.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Login area of a page 4 32
How can I   ajax html table  rows? 20 63
html5 auto send email 7 22
HTML Relative path 9 29
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now