Gents;
Among other issues I've been trying to resolve this issue for several weeks now. In several of my forms for a particular site I have submit buttons that I wish to have centered in the area where they appear. I have approached this with an attribute of "center".
I've included snippets of the html output below showing how I am defining classes and the definition of those classes appears below that.
Can someone please take a look at my code and definitions and hopefully advise why my buttons are most always appearing left justified? BTW -the .main class contains "text-align: left;" but that should be overridden by the spans. Am I correct?
Thanks for any/all recommendations/suggestions.
<div class="main">
<h4>Please Login</h4>
<div class="prompt30">
<fieldset><legend>Please login</legend>
<form name="login" action="xxx.php?s=1&t=1" method="post">
<span class="bold">Username:</span><br />
<input name="userName" type="text" value="" /><br />
<span class="bold">Password:</span><br />
<input name="passWord" type="password" /><br /><br />
<span class="eMsg"> </span><br /><br />
<span class="center">
<input class="submit" name="btn1" type="submit"
value="login" />
<input class="submit" name="btn1" type="submit" value="forgot password" />
<input class="submit" name="btn1" type="submit" value="subscribe!" />
</span>
</form>
</fieldset>
</div>
</div>
/* Force Font Bold */
.bold {
font-weight: bold;
}
/* Force Alignment Centered */
.center {
text-align: center;
}
.prompt30 {
text-align: left;
width: 30em;
margin-left: auto;
margin-right: auto;
}
.red {
color: #ff0000;
font-weight: bold;
}
.eMsg {
color: #ff0000;
font-weight: bold;
text-align: center;
}
Among other issues I've been trying to resolve this issue for several weeks now. In several of my forms for a particular site I have submit buttons that I wish to have centered in the area where they appear. I have approached this with an attribute of "center".
I've included snippets of the html output below showing how I am defining classes and the definition of those classes appears below that.
Can someone please take a look at my code and definitions and hopefully advise why my buttons are most always appearing left justified? BTW -the .main class contains "text-align: left;" but that should be overridden by the spans. Am I correct?
Thanks for any/all recommendations/suggestions.
<div class="main">
<h4>Please Login</h4>
<div class="prompt30">
<fieldset><legend>Please login</legend>
<form name="login" action="xxx.php?s=1&t=1" method="post">
<span class="bold">Username:</span><br />
<input name="userName" type="text" value="" /><br />
<span class="bold">Password:</span><br />
<input name="passWord" type="password" /><br /><br />
<span class="eMsg"> </span><br /><br />
<span class="center">
<input class="submit" name="btn1" type="submit"
value="login" />
<input class="submit" name="btn1" type="submit" value="forgot password" />
<input class="submit" name="btn1" type="submit" value="subscribe!" />
</span>
</form>
</fieldset>
</div>
</div>
/* Force Font Bold */
.bold {
font-weight: bold;
}
/* Force Alignment Centered */
.center {
text-align: center;
}
.prompt30 {
text-align: left;
width: 30em;
margin-left: auto;
margin-right: auto;
}
.red {
color: #ff0000;
font-weight: bold;
}
.eMsg {
color: #ff0000;
font-weight: bold;
text-align: center;
}