Hello,
I've been playing around with some CSS in an attempt to grow my knowledge. Now, I've drafted up a design on paper and the idea was to have a login box on the right hand side. A sub menu in the middle and a fairly large title banner.
So I started with the menu and managed to position that to where I wanted it - that seemed to be straight forward so I decided to add next my logon. This is where I ran into trouble. I want to have a Username <field> then a <br> following by a Password <field>
So all in all, it should look like this
Username: <inputbox>
Password: <inputbox>
then a login button.
but that failed.
Here's the CSS.
<style type="text/css">
.{}
div#menuheader
{
width:100%;
background-color:#545454;
height:180px;
}
div#menuTitle
{
color:white;
font-size:50px;
}
span#menu
{
position:relative; /* position used for firefox */
height:30px;
margin-top:40px;
margin-left:60%;
}
span#menu .menuitem
{
/*background-color:00ffff;*/
color:white;
padding-left:2.5px;
padding-right:2.5px;
}
.menuitem .text
{
text-align:center;
margin-left:auto;
margin-right:auto;
font-size: 15px;
}
div#login
{
border-style:solid;
border-width:2px;
color:white;
height:90px;
}
div#infopanel
{
font-size: 15px;
padding-top:10px;
padding-bottom:5px;
}
</style>
and here's the html
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="menuheader">
<div id="menuTitle">Welcome to the portal</div>
<div id="login">
<form>
<div class="infopanel">Username: <input type="text" name="pwd" size="35"/></div>
<div class="infopanel">Password: <input type="password" name="pwd" size="35"/></div>
</form>
</div>
<span id="menu">
<span class="menuitem"><span class="text">Menu item 1</span></span>
<span class="menuitem"><span class="text">Menu item 2</span></span>
<span class="menuitem"><span class="text">Menu item 3</span></span>
</span>
</span>
</body>
</html>
what am I doing wrong?