Hi can some one tell me whats the wrong in the below code?
Trying to make always visible DIV.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<title>Always Visible Div</title>
<style type="text/css">
.alwaysVisible {
position: fixed;
left: 10px;
top: 180px;
}
</style>
</head>
<body>
<div class="alwaysVisible">
Top Left
</div>
<div style="height: 2000px; text-align: center; vertical-align: middle;" >
<p>
Always visible sample</p>
</div>
</body>
</html>
Thank you
Your code works fine in chrome and firefox, I found the issue in IE9, on some googling found that having doctype works, can you try putting
This will make IE to run in quirks mode and there by fixing your issue.