Click here to Skip to main content
14,743,899 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I am unable to move label i 2008,because it has no option of position :absolute;please anybody having any idea regarding this.

thanks in advanced

1 solution

If you know how to use cascading style sheets in your web form then , define a css class in you css file :
    position: absolute;
    top: 200px;
    left: 200px;

Then set your asp:label's CssClass to float

Hope it helps.
Abhinav S 19-Dec-11 1:24am
Should help. 5.
Amir Mahfoozi 19-Dec-11 1:35am
Thank you abhinav :)
chinta123 20-Dec-11 1:32am
i couldn't understand .can u explain properly..?

Amir Mahfoozi 20-Dec-11 1:43am
Read this page and if you didn't understand after that tell me to describe more :
chinta123 20-Dec-11 1:48am
i got my answer. visit ..:)
Amir Mahfoozi 20-Dec-11 1:57am
It's the same as my answer except that I showed you a way you have to do in large projects.
You can not set style of enormous number of labels in large projects and think what happens if you want to change all of them.
So you should define a style sheet class and use its classes in all of your pages. Then if you have to change one style you should only change one file and all of your files in your project will get changed too. Good Luck :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900