Link to home
Start Free TrialLog in
Avatar of vielkacarolina1239
vielkacarolina1239Flag for United States of America

asked on

how to set the (css) display property to inline for an asp.net ContentPlaceHolder?

Hello,

The ContentPlaceHolder emits a a div as html. I would like to set the display property to inline. Is there a way I can do this?


Thansk,
Avatar of vielkacarolina1239
vielkacarolina1239
Flag of United States of America image

ASKER

Sorry, got confused with the object. I am not interested in the ContentPlaceHolder. This works fine and does not emit a div. The object I am interested in is a TreeView. The TreeView  emits a div and I would like to set the display to inline.

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of Mrunal
Mrunal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Actually, the control itself allows you to create a class for the control, simply give the control property CssClass a name, then you can use regular CSS to control layout.  More info here; http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k%28SYSTEM.WEB.UI.WEBCONTROLS.WEBCONTROL.CSSCLASS%29%3bk%28SYSTEM.WEB.UI.WEBCONTROLS.TREEVIEW%29%3bk%28VS.PROPERTIES%29%3bk%28TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV4.0%22%29&rd=true
Great, thanks,