Click here to Skip to main content
14,668,844 members
Rate this:
Please Sign up or sign in to 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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100