What's behind the code-building HTML definition list? I am trying to prepare the program HTML below.
& lt; Dl style = "overflow: hidden; font-size: small;" & Gt; & Lt; Dt style = "float: left; width: 200px; clear: both; text-align: right; margin-left: 15px;" & Gt; Apple: & lt; / Dt & gt; & Lt; Dd style = "float: left; width: 90px; margin: 0px px 8px;" & Gt; Fruit & lt; Br> Red & lt; Br> & Lt; / Dd> & Lt; / DL & gt;
You can pass element to the creator tag: < Pre> HtmlGenericControl DL = New HtmlGenericControl ("dl"); Dl.Attributes.Add ("style", "overflow: hidden; font-size: small;"); Page.Controls.Add (DL); HtmlGenericControl.dt = New HtmlGenericControl ("dt"); Dt.Attributes.Add ("Style", "Float: Left; Width: 200px; etc"); Dt.InnerText = "Apple:"; Dl.Controls.Add (DT);
Comments
Post a Comment