I'm hoping someone can point me in the right direction. I added a form to my page where I already have a navigation bar. The form and the navigation bar are styled and positioned with CSS only. My problem is that now my form will not act right.
The labels are no longer in the right position, some of the <li> elements still have numbers next to them, etc.. I believe I need to clear a div or something but I'm still new to styling with CSS.
Any assistance at all would help.
My style sheet is below:
* {
margin : 0;
}
html, body {
height : 100%;
background-color : #000;
}
.content, p {
color : white;
font-family : "Lucida Sans";
font-size : medium;
}
.header {
height : 90px;
padding : 0 0 0 0;
background-image : url(.../Header.jpg);
background-repeat : no-repeat;
background-position : top;
}
.wrapper {
min-height : 100%;
height : auto !important ;
height : 100%;
margin : 0 auto -4em;
}
fieldset {
position : relative;
float : left;
clear : both;
width : 100%;
margin : 0 0 -1em 0;
padding : 0 0 1em 0;
border : 1px solid #bfbab0;
background-color : #f2efe9;
background-image : url(.../formbk.png);
background-repeat : repeat-x;
}
legend {
padding : 0;
color : #000000;
font-weight : bold;
}
legend span {
position : absolute;
left : 0.74em;
top : 0;
margin-top : 0.5em;
font-size : 135%;
}
fieldset ol.reg {
color:black
padding : 3.5em 1em 0 1em;
list-style : none;
}
fieldset li.reg2 {
float : left;
clear : left;
width : 100%;
padding-bottom : 1em;
}
fieldset.submit {
float : none;
width : auto;
border-style : none;
padding-top : 1.5em;
padding-left : 12em;
background-color : #ffffff;
background-image : none;
}
label {
display : block;
float : left;
width : 10em;
margin-right : 1em;
text-align : right;
}
fieldset.alt {
background-color : #e6e3dd;
}
#nav {
list-style-type : none;
margin : 0;
padding : 0;
background : #a3349f url(nav_bg.jpg) repeat-x 0% 0%;
float : left;
width : 100%;
border : 1px solid #82187e;
border-width : 1px 0;
}
#nav li {
display : inline;
padding : 0;
margin : 0;
}
#nav a:link, #nav a:visited {
color : #fff;
background : #943592;
padding : 10px 20px 4px 5px;
float : left;
width : auto;
border-right : 1px solid #82187e;
text-decoration : none;
font : bold 1em/1em Arial, Helvetica, sans-serif;
text-transform : uppercase;
}
#nav li:first-child a {
border-left : 1px solid #82187e;
}
#nav a:hover, #nav a:focus {
color : #000;
background : #ff00ff;
}
#home #nav-home a, #about #nav-about a, #archive #nav-archive a, #lab #nav-lab a, #reviews #nav-reviews a, #contact #nav-contact a {
background : #5e09d9;
color : #fff;
}
#home #nav-home a:hover, #about #nav-about a:hover, #archive #nav-archive a:hover, #lab #nav-lab a:hover, #reviews #nav-reviews a:hover, #contact #nav-contact a:hover {
background : #5e09d9;
}
#nav a:active {
background : #5e09d9;
color : #fff;
}