I am currently working on my website which features a CSS menu with my website logo, a text box, and a dropdown. Additionally, I have created a login form using a table like the one shown below.
<p> </p><table width="40%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#d5e8f9" class="mnuheader" >
<div align="center"><font size="5"><strong>Login
Members</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#e5ecf9" class="mnubody"><form name="form1" method="post" action="">
<p> </p>
<p align="center">Your Email
<input name="email" type="text" id="email">
</p>
<p align="center"> Password:
<input name="pwd" type="password" id="pwd">
</p>
<p align="center">
<input type="submit" name="Submit" value="Login">
</p>
<p align="center"><a href="register.php">Register</a> | <a href="forgot.php">Forgot</a></p>
</form></td>
</tr>
</table>
The issue I am facing is that the table appears either under or on top of my CSS menu. In Google Chrome, it shows up on top while in Opera it shows up under. I am looking for a way to make the table and the rest of the webpage appear below the CSS menu without using <br /> tags. Is there any alternative solution?
You can find a Jsfiddle link here. In my Jsfiddle, I have added HTML comments to indicate different sections including where I used <br /> tags. Hopefully, this can help others encountering a similar issue.
To observe the issue yourself, remove the <br /> tags from the HTML code and run the code.