Recently I was trying out HTML tags in android. When I tried to use the <h3> tag, it automatically creates a line space after it and before the next line. In HTML one can remove it by making padding and margin set with 0px. Can anyone tell me how can I remove this space in an android app?
Recently I was trying out HTML tags in android. When I tried to use
Share
The default rendering of
h3has top and bottom margins, and you can remove the bottom margin easily in CSS:I don’t see anything Android-specific here, but just to be sure I tested this on Android, and it works as expected.
If the next element after the heading is a
pelement, then that element has a top margin by default. To remove it, you would add(Does not work in rather old versions of IE, but I wouldn’t care.)