Hi,

Size of HTML <hx> tags differs in Ie and Firefox. For example <h2> is displayed bigger in IE whilst it is smaller in Firefox. How can i solve this problem?

Thanks

Recommended Answers

All 4 Replies

You need to override the default styles applied by different browsers, as these differ from one browser to the next.

This can be done using CSS. E.g.

h1 (
[INDENT]margin: 0; padding: 8px 10px;
font-family: arial, sans-serif; font-size: 18px;[/INDENT]
)

Thank you. It is better now.

Using px replaces one trouble with another. The page now becomes monitor-resolution-sensitive.

Use pt instead.

It is also good to know MidiMagic. Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.