I have the following code in a MVC User Control (the field names have been changed to protect the innocent):
<%=ViewData.Model.foo%>
<%=ViewData.Model.Bar%>
<%=ViewData.Model.Widget%>
<%=ViewData.Model.Thingy%>
<%=ViewData.Model.Address %>
<%=ViewData.Model.AlternateAddress %>
<%=ViewData.Model.CrossStreets %>
<%=ViewData.Model.SchoolName %>
These are to be displayed in a list beneath a header on the page that calls this control.
Given that I blow at CSS, how do I apply tags to the header and these fields so that everything lines up properly?
Many thanks,
KevDog
Update: The goal is to have the fields in the user control underneath and aligned left beneath the labels in the header. My first problem is adding a class to the ViewData items above. Do they go inside of other tags or are the attributes applied inside the tag itself? I've tried the latter and it doesn't seem the correct approach.