ASP page

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

I must be doing something wrong...

Using VS2005...

Just started to play with web pages...

I drop a label onto the page in Design mode, but I cannot drag it where I
want to... Why ? Is there some property I must change ?
 
Simple, that's not how web pages work. Web pages are not windows forms and
you can't drag elements wherever you want. You have to craft the layout
first. If you look at the layout of a typical web site, it's a series of
carefully crafted tables to provide the layout for the elements that go
within them. HTML is a markup language, meaning it describes content. It is
not a layout language, which describes positioning of content. Before you
play with web pages, you may want to dig into a few sites or books on common
design techniques as you're going to save yourself an immense amount of
headache as there are lots of rules and tricks to get it done right.
 
This is the default for a web page.

A web page uses a flow logic where each element is placed one after the
other.

You can change this in tools options (in this case, the designer will add
the appropriate styling attributes to set the location for this control) but
keep in mind in this case, that you'll loose the layout calculation done
automatically by the browser based on the current window size/screen
resolution.

Try google.com and see how the search box stay centered as you change the
width of your browser window...
 
Back
Top