1 reply [Last post]
PradeepKr
PradeepKr's picture
User offline. Last seen 1 year 24 weeks ago. Offline
newbie
Timezone: GMT+5.5
Joined: 2010-08-13
Posts: 5
Points: 7

CSS (Cascading Style Sheete) font-size property does not work properly in Internet Explorer (IE) if spcified in this way,

font-size: small or font-size: normal

In mozilla firefox it works fine.

Workaround:

Use em to specify the font size e.g.,

body {font-size: 0.75em;}

Refer this for more on font-size property in IE.

PradeepKr
PradeepKr's picture
User offline. Last seen 1 year 24 weeks ago. Offline
newbie
Timezone: GMT+5.5
Joined: 2010-08-13
Posts: 5
Points: 7

Button tag inside anchor not working in IE

HTML button tag might not work as expected when put inside anchor tags.

<a href="http://www.google.com"><button type="button">Click Me to go to Google</button></a>

I works well in Mozilla Firefox but in Internet Explorer (IE) nothing happens on clicking it.

Workaround:

Put some javascript event inside onclick event handler. Redirect (or open a new window) in javascript to required URL.
 <a href="http://www.google.com"><button type="button" onclick="window.open('http://www.google.com')">Click Me to go to Google</button></a>

It should work in Mozilla Firefox as well as Internet Explorer (IE).

For more info, refer button tag inside anchor not working