Re: Master pages - organising layout - contentplaceholder confusion



I'd say the "short story" explains what -- not to -- put into a
ContentPlaeHolder and that would be anything except the head, body or form
elements. Just think of content pages as if they were #included as the same
principles apply.


<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/



"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx> wrote in
message news:ur5gMvjhGHA.4252@xxxxxxxxxxxxxxxxxxxxxxx
The master page has content holders <asp:ContentHolder>. The page itself
has <asp:Content>. What you decide to put in the content tags is your own
decision. I have seen people put tables directly or even use Panels, which
render as <SPAN> tags. This example, amitedly older, uses a table:
http://msdn2.microsoft.com/en-us/library/zhhddkxy.aspx

Admitedly an older article, but it should still work.

The DIV, to me, is the most useful if you are using CSS, which you should
be as it allows you to change things without major editing. If you want to
organize with tables, instead, it is an option, but it locks up your
display and forces a complete redesign to change things. If you want to
see the value of DIVs with CSS, check out:
http://www.csszengarden.com/

Look at the HTML and CSS file separately and you will see the entire
layout is done with CSS. The downside is you may end up with a mixed bag,
as your master page is probably built with tables and your content with
CSS, which can be confusing. :-)

I generally design my sites with PhotoShop (or another graphics program -
Expression Graphic Designer, in beta, is free for now; Paint.NET is also
free, but has fewer options and is difficult for me as a design tool.) I
then lay out a complete page, including common elements, using CSS (static
version). I then apply the common elements to a master page (DWT in non
ASP.NET 2.0 sites) and the rest to content areas. It works rather nicely.

You have to decide how much time you wish to invest in learning these
skills.

Short story: Put what you want in the content tag, but the DIV is a good
container object, esp. if you use CSS.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
"kd" <kdfake@xxxxxxxx> wrote in message
news:447f972d$0$12313$ec3e2dad@xxxxxxxxxxxxxxxxxxxxxxxxx
Thanks!

What else can i use besides DIV?




--
--------------------------------- --- -- -
Posted with NewsLeecher v3.5 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -





.



Relevant Pages

  • Re: CSS Positioning in FP2003
    ... Start by using CSS for your styles. ... If a table works for your design, ... > |>> The right side isn't its own div. ... download Netscape and look at your site. ...
    (microsoft.public.frontpage.programming)
  • Re: Why shouldnt I use Frontpage? >> drifting OT to CSS
    ... My full page div is ... and your CSS is so convoluted I don't know what all's going ... because of the number of screens and resolutions out there in ... hbbqrffw = Heavy Border, Blockquote Replacement, Fixed Font, White ...
    (alt.html)
  • Re: IE/Firefox XHTML Strict
    ... The http headers may reveal that the content-type of the css is not type/css. ... Here is the HTML: ... You have a 5 level deep nested divs and every div is styled: so, it become extremely difficult to figure out exactly what you are actually coding for. ...
    (alt.html)
  • Re: CSS Positioning in FP2003
    ... That's why you will find that unless the user indicates some level of understanding of html/css and cross browser design, ... It is not necessary to use tables as a layout tool ... | in most cases now that CSS positioning is as well supported as it is. ... |>> You need to set up a "shell" div to contain everything. ...
    (microsoft.public.frontpage.programming)
  • Re: Advice required for cascading vertical menu.
    ... want/need XHTML. ... center in the body, wrapper text-align: left and finally min-width for the wrapper for the sake of Mozilla which has been known to drop half the div off the screen. ... CSS and Javascript in external files. ...
    (uk.net.web.authoring)