I have both download pdf and a return to top button on a page of my site. They work perfectly in every browser except Internet Explorer. The strange thing is, if I use simply text, it works in IE. What's the deal??? Can anybody help me? My code is as follows:

CSS

.return_to_top{
float:inherit;
margin: auto;
padding-bottom:5px;
}

HTML for the button:

<div class="return_to_top"><a href="#wrapper"><input type="button" value="Return To Top" /></a></div>

HTML for the text:

<div class="return_to_top"><a href="#wrapper">return to top</a></div>

Recommended Answers

All 2 Replies

The button will fire preventing the <a>-tag to fire.
If you want a button look: use CSS to create one and use this as a class in the <a>-tag
Hope this helps
Michael

Instead of button just use A tag and stylize that like a button through CSS. Thats the best way here.

regards

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.