Web page absolute positioning

N

Neil B

How do you set a web page to absolute positioning??? I can't find it in the
page properties. VS 2005 Express had it in the Layout menu tab. Where is the
equivalent of this in VS 2008 Pro???

Thanks, Neil
 
M

Mr. Arnold

Neil B said:
How do you set a web page to absolute positioning??? I can't find it in
the
page properties. VS 2005 Express had it in the Layout menu tab. Where is
the
equivalent of this in VS 2008 Pro???

When you have the page displayed for design in the IDE, there is a *form*
tag down at the bottom, you click it to get to the form, you drag the form
rectangle down to fit the size that you need, right-click in an open area,
Property, Styles, and Position. You should be able to figure it out from
there.
 
N

Neil B

Thanks for the insight. That got me started in the right direction.

It was not the page (form) that I want to have absolute positioning, it's
the controls within the page.

Following your lead I could not find the position property for controls,
however, if you select the control and go to format | position | absolute you
can set the control positioning to absolute.

More importantly you can set the option in the HTML Designer to create
control from the toolbox with the absolute position property. To do this you
go the Tools | Options | HTML Designer (left side tab) | CSS Styling | Change
position to absolute ....

I thought this would do it all but allas not so. Two problems remain:

1 - Some of the controls don't allow absolute positioning. Specifically they
are Label, Check Box, HyperLink, Table. Any idea why????

2 - In order to use the layout controls such as align left, make same width,
etc you have to select the group of control. This should be done with the
mouse and the Ctl key held down. But it doesn't work. you can only select one
control at a time. Any idea why this doen't work???

Thanks, Neil
 
M

Mr. Arnold

Neil B said:
Thanks for the insight. That got me started in the right direction.

It was not the page (form) that I want to have absolute positioning, it's
the controls within the page.

Following your lead I could not find the position property for controls,
however, if you select the control and go to format | position | absolute
you
can set the control positioning to absolute.

More importantly you can set the option in the HTML Designer to create
control from the toolbox with the absolute position property. To do this
you
go the Tools | Options | HTML Designer (left side tab) | CSS Styling |
Change
position to absolute ....

I thought this would do it all but allas not so. Two problems remain:

1 - Some of the controls don't allow absolute positioning. Specifically
they
are Label, Check Box, HyperLink, Table. Any idea why????

2 - In order to use the layout controls such as align left, make same
width,
etc you have to select the group of control. This should be done with the
mouse and the Ctl key held down. But it doesn't work. you can only select
one
control at a time. Any idea why this doen't work???

I don't know man I just started working VS 2008 myself.

You might want to post to MS.public.dotnet.framework.aspnet or
webform.controls.
 
N

Neil B

In case anyone is interested I finally found the answer to the problems.
Microsoft dropped support for multiple selection in VS 2008. Also they
strategically don't support absolute addressing as the direction for page
layout. Absolute addressing is included in VS 2008 but it's not as rich as
previous versions. Below is a blog regarding what's missing in VS 2008:
http://www.tyssendesign.com.au/articles/css/absolute-positioning-pitfalls/

Also check out ASP.Net forum on what's being done about this issue (you'll
have to wait for VS10) at: http://forums.asp.net/t/1170907.aspx

A lot of unhappy developers out there. You can include me in that list.

Thanks for you help,
Neil
 

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

Top