MadFly wrote:Below is the code of the contact form, after I have edited it a little bit. All those is there to re-align the text areas of the Name, Email and Homepage.
Oh, my. This is definitely not how you want to do it.
For the pure alignment of labels and inputs, you can actually go with the original plugin_contactform.tpl. All you need to edit in the i3theme's style.css is this:
Code: Select all
#commentform label {
font-weight: bold;
color:#666;
font-size: 100%;
padding-left: 5px;
}
to
Code: Select all
#commentform label {
font-weight: bold;
color:#666;
font-size: 100%;
float: left;
width: 100px;
}
and you're done. I strongly recomment not to use the deprecated font tag for the ... well, at all, actually. Instead, you should use a <span class="mandatory">*</span> and <span class="optional">(optional)</span> instead and format them using the s9y.css like this:
Code: Select all
.mandatory, .optional { color: red; }
You got the point right where to insert those, though. But I strongly suggest not to use for formatting purposes, that's just not what it's supposed to to
YL