dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Cell Height With Headline Tag

  1. #1
    Join Date
    May 2004
    Location
    Sinking Spring, OH, USA
    Posts
    40

    Cell Height With Headline Tag

    I want to use an <h4> tag within a table, but when I try it it puts in more vertical space between the headline and the text in the cell/row below than looks good. It appears that the <h4> tag is forcing a minimum height in its cell/row that is more than I want. Any way to shrink the cell/row down vertically around the headline?

    I've read other threads in this forum that say to use CSS instead of tables. As someone who is just learning HTML, is learning CSS much harder than HTML?

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Try: <h4 style="margin:0;">qwerty</h4>

    Use CSS for layout, not tables. CSS is a little harder than HTML to learn but in the long term you will benefit from using it. W3 Schools

  3. #3
    Join Date
    May 2004
    Location
    Sinking Spring, OH, USA
    Posts
    40
    Thank you, Fang, that helped. And thanks for the advice - I'll try CSS.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles