Stevo22
01-24-2008, 08:17 AM
Ok, this is really crapping me off!
The page validates, the css validates ok with a couple of warnings about color, the form works, but I just can't style it the way I want.
I simply want all the form elements & text to be centred under each other on the page - but this is what it looks like (see attached)
I'm part way there, but I'm unsure how to set the width of the email input box and the submit button doesn't even look like a button!
I know it's my code, and I've mucked about with it for a couple of hours and I give up! - I don't know enough. Please help point me in the right direction.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Feedback</title>
<link rel="stylesheet" type="text/css"
href="../css_stylesheets/kunst_basic.css">
</head>
<body>
<div id="sitewrap">
<div id="leftstripe"></div>
<div id="leftcontent">
<span class="mainpic"><img src="/images/kunst_web_logo.jpg" alt="KUNST Picture"></span>
<div id="kunstaretext">
<h2>KUNST are:</h2>
<div class="dotline"></div>
<p class="verd medium tantext">Munkii</p>
<p class="verd small whitetext">(Matt Spencer)</p>
<p class="verd small italic whitetext">Vocals and Lyrics</p>
<div class="dotline"></div>
<p class="verd medium tantext">Sideshow</p>
<p class="verd small whitetext">(Tony Matticoli)</p>
<p class="verd small italic whitetext">Lead Guitar</p>
<div class="dotline"></div>
<p class="verd medium tantext">Wah Wah</p>
<p class="verd small whitetext">(Chris Godsell)</p>
<p class="verd small italic whitetext">Guitar (wah wah)</p>
<div class="dotline"></div>
<p class="verd medium tantext">Stevo</p>
<p class="verd small whitetext">(Steve Kelepouris)</p>
<p class="verd small italic whitetext">Bass Guitar</p>
<div class="dotline"></div>
<p class="verd medium tantext">Maddog</p>
<p class="verd small whitetext">(Mark Kelepouris)</p>
<p class="verd small italic whitetext">Drums</p>
<div class="dotline"></div>
</div>
</div><!-- end leftcontent -->
<div id="mainheader">
<div id="menuwrap">
<!--<img class="cleff" src="/images/blocktest.jpg" alt="" height="88" width="80">-->
<ul class="menu">
<li><a href="../index.php">Home</a></li>
<li><a href="/pages/ourmusic">Our Music</a></li>
<li><a href="/pages/jammplan">Jamm Plan</a></li>
<li><a href="/pages/pics">Pictures</a></li>
<li><a href="/pages/otherstuff">Other Stuff</a></li>
<li><a href="/pages/feedback">Feedback</a></li>
</ul>
</div><!-- end menuwrap -->
<div id="centreband"></div>
<h3><span id="quotestart">“</span></h3>
<h3><span id="quoteend">”</span></h3>
<h1><span id="mainquotetext">
We don’t have any particular racial, political or religious
<br>affiliations - We just play the music as we feel it!</span></h1>
</div><!-- end header -->
<!-- feedback page content-->
<div id="pagecontent">
<form method="post" action="../php_scripts/sendmailtest.php">
<fieldset>
<legend></legend>
<p class="verd medium greytext center">Please <span class="bold">enter your email address</span> so we can reply to your message:</p>
<input class="verd medium greytext" name="email" type="text" tabindex="1">
<p class="verd medium greytext center">Your message:</p>
<textarea class="verd medium greytext" name="message" rows="40" cols="41" tabindex="2"></textarea><br>
<input class="buttons" type="submit" name="submitButtonName" value="Send Message" tabindex="3">
</fieldset>
</form>
</div>
<div id="rightcontent">
</div><!-- end rightcontent -->
<div id="rightstripe"></div>
</div> <!-- end sitewrap -->
</body>
</html>
* {
border : 0;
padding : 0;
margin : 0;
}
html, body {
background-color : #2b2b2b;
margin : 0;
padding : 0;
height : 100%;
border : 0;
}
p {
margin : 0;
}
#sitewrap {
margin : 0 auto;
position : relative;
width : 910px;
height : 100%;
min-height : 100%;
overflow : hidden;
}
#leftstripe {
background-image : url("../images/left_stripe.jpg");
background-repeat : repeat;
display : inline;
position : relative;
width : 20px;
height : 100%;
float : left;
}
#leftcontent {
background-color : #000058;
display : inline;
position : relative;
width : 144px;
height : 100%;
float : left;
}
#mainheader {
background-color : orange;
display : inline;
position : relative;
width : 582px;
height : 181px;
float : left;
}
#pagecontent {
background-color : orange;
display : inline;
position : absolute;
top : 181px;
left : 164px;
width : 582px;
height : 100%;
min-height : 100%;
}
#centreband {
background-color : #e29606;
display : inline;
position : absolute;
top : 90px;
width : 582px;
height : 90px;
float : left;
border-top : 1px solid #dc9000;
border-bottom : 1px solid #dc9000;
}
#rightcontent {
background-color : #000058;
display : inline;
position : relative;
width : 144px;
height : 100%;
float : left;
}
#rightstripe {
background-image : url("../images/right_stripe.jpg");
background-repeat : repeat;
display : inline;
position : relative;
width : 20px;
height : 100%;
float : left;
}
.clear {
clear : both;
}
.mainpic {
background-image : none;
display : block;
position : relative;
width : 144px;
height : 181px;
float : left;
border-bottom : 1px solid black;
}
#mainquotetext {
display : block;
position : absolute;
top : 111px;
left : 52px;
width : 502px;
float : left;
}
#kunstaretext {
display : block;
position : relative;
top : 10px;
left : 10px;
float : left;
}
p {
color : black;
font-family : Verdana;
text-align : left;
}
.verd {
font-family : Verdana;
}
.treb {
font-family : "Trebuchet MS";
}
h1 {
color : #484848;
font-size : 18px;
font-family : "Trebuchet MS";
font-style : italic;
font-weight : bold;
line-height : 24px;
background-color : transparent;
text-align : left;
}
h2 {
color : white;
font-size : 12px;
font-family : Verdana;
font-style : normal;
font-weight : bold;
line-height : 14px;
background-color : transparent;
text-align : left;
}
h3 {
color : orange;
font-size : 90px;
font-family : "Times New Roman", Times;
font-style : italic;
font-weight : bold;
text-align : left;
}
#quotestart {
position : absolute;
top : 80px;
left : 5px;
float : left;
}
#quoteend {
position : absolute;
top : 113px;
left : 465px;
float : right;
}
.italic {
font-style : italic;
}
.bold {
font-weight : bold;
}
.small {
font-size : 10px;
line-height : 13px;
}
.medium {
font-size : 12px;
font-style : normal;
line-height : 16px;
}
.greytext {
color : #252525;
font-family : Verdana;
}
.tantext {
color : #f0e68c;
}
.whitetext {
color : white;
}
.center {
text-align : center;
}
.dotline {
margin-top : 6px;
margin-bottom : 4px;
position : relative;
width : 124px;
height : 1px;
border-top : 1px dotted orange;
}
#menuwrap {
position : relative;
width : 582px;
height : 88px;
}
ul {
list-style-type : none;
width : 100%;
}
li {
float : left;
}
.menu a {
color : white;
font : bold 10px Verdana, Arial;
text-decoration : none;
background : black;
text-align : center;
display : block;
padding-top : 2px;
position : relative;
top : 29px;
left : 15px;
width : 82px;
height : 16px;
float : left;
border-style : solid;
border-width : 1px 5px;
border-color : orange;
}
.menu a:hover {
color : white;
background : #b2001a;
border-style : solid;
border-width : 1px 5px;
border-color : white;
}
fieldset {
text-align : center;
display : block;
margin-right : auto;
margin-left : auto;
position : relative;
width : 560px;
height : 100%;
}
textarea {
font-size : 12px;
font-family : Verdana;
font-style : normal;
font-weight : normal;
line-height : 16px;
background-color : white;
display : block;
margin : 4px auto;
padding : 6px;
position : relative;
width : 420px;
height : 260px;
border : 1px inset silver;
}
.buttons {
text-align : center;
display : block;
}
The page validates, the css validates ok with a couple of warnings about color, the form works, but I just can't style it the way I want.
I simply want all the form elements & text to be centred under each other on the page - but this is what it looks like (see attached)
I'm part way there, but I'm unsure how to set the width of the email input box and the submit button doesn't even look like a button!
I know it's my code, and I've mucked about with it for a couple of hours and I give up! - I don't know enough. Please help point me in the right direction.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Feedback</title>
<link rel="stylesheet" type="text/css"
href="../css_stylesheets/kunst_basic.css">
</head>
<body>
<div id="sitewrap">
<div id="leftstripe"></div>
<div id="leftcontent">
<span class="mainpic"><img src="/images/kunst_web_logo.jpg" alt="KUNST Picture"></span>
<div id="kunstaretext">
<h2>KUNST are:</h2>
<div class="dotline"></div>
<p class="verd medium tantext">Munkii</p>
<p class="verd small whitetext">(Matt Spencer)</p>
<p class="verd small italic whitetext">Vocals and Lyrics</p>
<div class="dotline"></div>
<p class="verd medium tantext">Sideshow</p>
<p class="verd small whitetext">(Tony Matticoli)</p>
<p class="verd small italic whitetext">Lead Guitar</p>
<div class="dotline"></div>
<p class="verd medium tantext">Wah Wah</p>
<p class="verd small whitetext">(Chris Godsell)</p>
<p class="verd small italic whitetext">Guitar (wah wah)</p>
<div class="dotline"></div>
<p class="verd medium tantext">Stevo</p>
<p class="verd small whitetext">(Steve Kelepouris)</p>
<p class="verd small italic whitetext">Bass Guitar</p>
<div class="dotline"></div>
<p class="verd medium tantext">Maddog</p>
<p class="verd small whitetext">(Mark Kelepouris)</p>
<p class="verd small italic whitetext">Drums</p>
<div class="dotline"></div>
</div>
</div><!-- end leftcontent -->
<div id="mainheader">
<div id="menuwrap">
<!--<img class="cleff" src="/images/blocktest.jpg" alt="" height="88" width="80">-->
<ul class="menu">
<li><a href="../index.php">Home</a></li>
<li><a href="/pages/ourmusic">Our Music</a></li>
<li><a href="/pages/jammplan">Jamm Plan</a></li>
<li><a href="/pages/pics">Pictures</a></li>
<li><a href="/pages/otherstuff">Other Stuff</a></li>
<li><a href="/pages/feedback">Feedback</a></li>
</ul>
</div><!-- end menuwrap -->
<div id="centreband"></div>
<h3><span id="quotestart">“</span></h3>
<h3><span id="quoteend">”</span></h3>
<h1><span id="mainquotetext">
We don’t have any particular racial, political or religious
<br>affiliations - We just play the music as we feel it!</span></h1>
</div><!-- end header -->
<!-- feedback page content-->
<div id="pagecontent">
<form method="post" action="../php_scripts/sendmailtest.php">
<fieldset>
<legend></legend>
<p class="verd medium greytext center">Please <span class="bold">enter your email address</span> so we can reply to your message:</p>
<input class="verd medium greytext" name="email" type="text" tabindex="1">
<p class="verd medium greytext center">Your message:</p>
<textarea class="verd medium greytext" name="message" rows="40" cols="41" tabindex="2"></textarea><br>
<input class="buttons" type="submit" name="submitButtonName" value="Send Message" tabindex="3">
</fieldset>
</form>
</div>
<div id="rightcontent">
</div><!-- end rightcontent -->
<div id="rightstripe"></div>
</div> <!-- end sitewrap -->
</body>
</html>
* {
border : 0;
padding : 0;
margin : 0;
}
html, body {
background-color : #2b2b2b;
margin : 0;
padding : 0;
height : 100%;
border : 0;
}
p {
margin : 0;
}
#sitewrap {
margin : 0 auto;
position : relative;
width : 910px;
height : 100%;
min-height : 100%;
overflow : hidden;
}
#leftstripe {
background-image : url("../images/left_stripe.jpg");
background-repeat : repeat;
display : inline;
position : relative;
width : 20px;
height : 100%;
float : left;
}
#leftcontent {
background-color : #000058;
display : inline;
position : relative;
width : 144px;
height : 100%;
float : left;
}
#mainheader {
background-color : orange;
display : inline;
position : relative;
width : 582px;
height : 181px;
float : left;
}
#pagecontent {
background-color : orange;
display : inline;
position : absolute;
top : 181px;
left : 164px;
width : 582px;
height : 100%;
min-height : 100%;
}
#centreband {
background-color : #e29606;
display : inline;
position : absolute;
top : 90px;
width : 582px;
height : 90px;
float : left;
border-top : 1px solid #dc9000;
border-bottom : 1px solid #dc9000;
}
#rightcontent {
background-color : #000058;
display : inline;
position : relative;
width : 144px;
height : 100%;
float : left;
}
#rightstripe {
background-image : url("../images/right_stripe.jpg");
background-repeat : repeat;
display : inline;
position : relative;
width : 20px;
height : 100%;
float : left;
}
.clear {
clear : both;
}
.mainpic {
background-image : none;
display : block;
position : relative;
width : 144px;
height : 181px;
float : left;
border-bottom : 1px solid black;
}
#mainquotetext {
display : block;
position : absolute;
top : 111px;
left : 52px;
width : 502px;
float : left;
}
#kunstaretext {
display : block;
position : relative;
top : 10px;
left : 10px;
float : left;
}
p {
color : black;
font-family : Verdana;
text-align : left;
}
.verd {
font-family : Verdana;
}
.treb {
font-family : "Trebuchet MS";
}
h1 {
color : #484848;
font-size : 18px;
font-family : "Trebuchet MS";
font-style : italic;
font-weight : bold;
line-height : 24px;
background-color : transparent;
text-align : left;
}
h2 {
color : white;
font-size : 12px;
font-family : Verdana;
font-style : normal;
font-weight : bold;
line-height : 14px;
background-color : transparent;
text-align : left;
}
h3 {
color : orange;
font-size : 90px;
font-family : "Times New Roman", Times;
font-style : italic;
font-weight : bold;
text-align : left;
}
#quotestart {
position : absolute;
top : 80px;
left : 5px;
float : left;
}
#quoteend {
position : absolute;
top : 113px;
left : 465px;
float : right;
}
.italic {
font-style : italic;
}
.bold {
font-weight : bold;
}
.small {
font-size : 10px;
line-height : 13px;
}
.medium {
font-size : 12px;
font-style : normal;
line-height : 16px;
}
.greytext {
color : #252525;
font-family : Verdana;
}
.tantext {
color : #f0e68c;
}
.whitetext {
color : white;
}
.center {
text-align : center;
}
.dotline {
margin-top : 6px;
margin-bottom : 4px;
position : relative;
width : 124px;
height : 1px;
border-top : 1px dotted orange;
}
#menuwrap {
position : relative;
width : 582px;
height : 88px;
}
ul {
list-style-type : none;
width : 100%;
}
li {
float : left;
}
.menu a {
color : white;
font : bold 10px Verdana, Arial;
text-decoration : none;
background : black;
text-align : center;
display : block;
padding-top : 2px;
position : relative;
top : 29px;
left : 15px;
width : 82px;
height : 16px;
float : left;
border-style : solid;
border-width : 1px 5px;
border-color : orange;
}
.menu a:hover {
color : white;
background : #b2001a;
border-style : solid;
border-width : 1px 5px;
border-color : white;
}
fieldset {
text-align : center;
display : block;
margin-right : auto;
margin-left : auto;
position : relative;
width : 560px;
height : 100%;
}
textarea {
font-size : 12px;
font-family : Verdana;
font-style : normal;
font-weight : normal;
line-height : 16px;
background-color : white;
display : block;
margin : 4px auto;
padding : 6px;
position : relative;
width : 420px;
height : 260px;
border : 1px inset silver;
}
.buttons {
text-align : center;
display : block;
}