[TYPO3] Problem with mailform layout in Typo3v4

Simon Browning simon at stwdesign.com
Sat Apr 22 00:14:24 CEST 2006


I just encountered that myself.

I threw the following into my stylesheet, which lines it up nicely and 
gives a width of 150px for the labels.  I'm not sure if the label tag is 
used anywhere else, in which case this may need to be modified a little 
further.

.csc-mailform-field {
text-align:left;
margin-bottom:2px;
}

.csc-mailform-submit {
text-align:right;
}

label {float: left;
width:150px;}

Simon


JoH wrote:
>>I have just played around with a mailform in Typo3 v. 4 and it doesnt
>>place the form in a table like it used to.
>>
>>Is this on purpose or a bug?
> 
> 
> It's on purpose, since people thought it would be good to remove the table
> based stuff due to accesibility rules.
> But you can have it back if you like, since the old behaviour is still there
> in CSS-styled-content but overriden via a condition that checks the
> compatibility version.
> 
> Simply go to the template analyzer, check the TS-Setup of CSS-styled-content
> and find the part _outside_ this condition, where the Mailform is styled the
> old school way.
> Copy and paste this part into your setup and don't forget to empty the
> original setup before.
> 
> tt_content.mailform >
> tt_content.mailform {
>     # Place the old stuff here
> }
> 
> Joey
> 



More information about the TYPO3-english mailing list