Why am I unable to click on and type in the text input in the following? And what is the best way to fix this?
<body>
<div class="centralCollumn">
<div class="NewsTitle">Forum, Ask Questions or give advice</div>
<div class="NewsHeadBreak"></div>
<div class="NewsPara">
<form class="commentForum">
Leave a comment or question: <input type="text" name="comment" class="comment" ></input>
</form>
</div>
</div>
</body>
Here's my CSS:
.centralCollumn {
position: absolute;
top: 18%;
left: 10%;
width: 90%;
height: 100%;
text-align: center;
z-index: -1;
background-color: #ecf1f3;
}
</input>isn’t valid, but it should work anyways. Could you make a jsFiddle that demonstrates the problem, please?z-index: -1puts it behind its parent, making it impossible to interact with anything on it. You can still see it since the parent’s background is transparent, though. Why do you need thez-index: -1?