How do I change the top: and left: StyleSheet locations on a <div>?

  • Thread starter Thread starter Steve Kershaw
  • Start date Start date
S

Steve Kershaw

Hello,
I need to dynamically change the location of a <div> from C# code. How
can I do this. the <div> is set to runat="server" so I can see the id
of the <div> but I don't see a way to change the top: and left:
parameters.

Thanks

Steve
 
You can set the style property:

theControl.Attributes.Add("style", "left:20px;top:20px;");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top