You are here: Re: Why is heading tag increasing cell height? « HTML « IT news, forums, messages
Re: Why is heading tag increasing cell height?

Posted by Beauregard T. Shagnasty on 03/23/06 23:34

affiliateian@gmail.com wrote:

> I am using a table with 2 rows and 1 column. The top row is the
> heading for a short title (1 line of text) and the 2nd row is for
> paragraph text. When I add any heading tags, <h1>, <h2> etc... to row
> 1, the cell height of row 1 gets increased as if 1 or 2 <br> tags has
> been added.

Please look into not using tables for layout.

> Started to notice this after I began using CSS to help streamline my
> website. My CSS settings for headings are simple like so:
>
> font-family : Verdana, Arial, Helvetica, sans-serif;

http://xs4all.nl/~sbpoley/webmatters/verdana.html

> font-size : 14pt;

That's smaller than my default size for content text. Consider setting
the body text to 100% (points are for print media), and setting the font
size for your headings at some percentage larger than 100.

body { font-size: 100%; }
h1 { font-size: 140%; }
h2 { font-size: 125%; }
..legalese { font-size: 85%; }

--
-bts
-Warning: I brake for lawn deer

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация