FCC Survey Form Sample

FCC Survey Form Sample
0

#1

Hi,
In FCC sample survey form, there is a class defined in html as “rowTab” but there is no mention of it in the CSS tab. Can anyone explain to me why it is even used? TIA


#2

I don’t think it does anything. I think they just named it that. To the person who wrote it, it’s more descriptive than calling it a ‘div’.


#3

.rowTab itself is not styled but .labels and .rightTab push off of it with margin.

It creates a nice little independent module for each type of question. Styling each type of question can be done independent of surrounding questions and then inserted just about anywhere without worry that the styling would need to be tweaked to work in the new position.

If you put a style of outline:solid red 1px; on the .rowTab class you’ll see that they stack up quite predictably with no need to consider the contents.


#4

Got it. Thanks a lot.