DIV's Position (Relative/Absolute)

Posted by Naeem2049 under ASP.NET on 2/22/2011 | Points: 10 | Views : 7436 | Status : [Member] | Replies : 9
Hi all,

I have been used DIV's instead of tables in my Application.... Firstly i have set all DIV's position (Relative) only few controls are little bit out from there positions....

Than i decided to change all DIV's position as (Absolute)... It will work fine on my local machine but when we upload this application on server all controls in DIV's are out from there positions and Totally the GUI will changed but still it work fine on my local machine using DIV's position(Absolute)...

Question is this why all controls are out from there positions when we upload this application on server...????

Which position of DIV's will better for used....?????

Please Help me in this Issue....

Thanks

NAEEM




Responses

Posted by: Prabhakar on: 2/22/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi naeem


Absolute is right choice to set all DIV'S potions .

Best Regard's
Prabhakar

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 2/22/2011 [Member] Starter | Points: 25

Up
0
Down

Hi Prabhakar,

Now i used DIV's position (Absolute) but it will changed the complete GUI controls positions when i upload my application at server...

It will Looking good at my local machine.. but the problem comes on uploading it...

Regards
NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/22/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
I think this can be a problem because of different screen resolution. But still I prefer to use HTML table and arrange all my controls into that. It always works.

Thanks and Regards
Madhu

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/22/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

You can use absolute position, but best option is as madhu suggested go with the tables to put your controls over there...

Thanks
Karthik
www.f5Debug.net

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 2/23/2011 [Member] Starter | Points: 25

Up
0
Down

Hi,

I have no good idea to use tables structure instead of DIV's structure.....

So, Please send me some helpful links to understand the basic format of using tables in my application....

Thanks

NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/23/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Check this link.. in the code provided it has the table inside which they have placed the controls.

http://www.dotnetjohn.com/articles.aspx?articleid=33

Thanks
Karthik
www.f5Debug.net

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/23/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Nice article Karthi :)

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/23/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Thanks!!!

Thanks
Karthik
www.f5Debug.net

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 2/24/2011 [Member] Starter | Points: 25

Up
0
Down

Hi Karthik ,

Nice Table Structure..... In this link Code-behind file is in VB can this is available in asp.net (C#)....

But it's Very helpful n nice article.....

Thanks alot...

Regards
NAEEM



Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response