/    Sign up×
Community /Pin to ProfileBookmark

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?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 05.2004 — 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. [URL=http://www.w3schools.com/css/default.asp]W3 Schools[/URL]
Copy linkTweet thisAlerts:
@myrrhauthorMay 05.2004 — Thank you, Fang, that helped. And thanks for the advice - I'll try CSS.
×

Success!

Help @myrrh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...