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 Neredbojias on 03/23/06 23:12

With neither quill nor qualm, affiliateian@gmail.com quothed:

> 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.
>
> 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;
> font-size : 14pt;
> color : black;
>
> This happens with all different table types. Even tables which do not
> have a CSS id. What can be causing this?

The headings, of course. Headings have vertical whitespace. The can
usually be styled with the css "margin" and "padding" attributes.

eg:

<h1 style="margin:0">My Nose</h1>

> Is it normal? Any ideas?
>
>

--
Neredbojias
Contrary to popular belief, it is believable.

 

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

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