473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Nested Master pages question

D
Hi,

I've been toying around with master pages and am trying to set up your
standard banner across the top and 3 areas below that, left content, center
content and right content.

I have the banner part being the top level master page and the left content
be nested master page named subMaster.master. In this I have 3 div's that
I've named

SubMaster_LeftPanel
SubMaster_CenterPanel ***** contains ContentPlaceHolder
SubMaster_RightPanel

These are just div's now and don't contain actual panels btw.

I wish to have the LeftPanel contain a treeview for navigation and the right
panel be used for misc alerts or banner advertising. The CenterPanel I host
the ContentPlace holder control for content.

The problem I'm having is it works out well but SubMaster_RightPanel is
always wrapped around to the next line.

Instead of

Top Banner Top Banner Top Banner
-------------------------------------
Left | Center | Right

I have

Top Banner Top Banner Top Banner
-------------------------------------
Left | Center
Right

(if that makes sense).

All widths are thru a CSS using, 10%, 80% and 10% respectively. I can change
them to be alot less and this problem still persists so this doesn't appear
to be overlapping.

Any ideas and or solutions?

Thanks alot for your time.

Sep 5 '06 #1
4 1459
hi,
i'd suggest posting a HTML equivalent of what you are trying to achieve. it
seems to be a HTML / CSS / Layout problem rather than master pages.
are the divs floated left, or absolutely positioned? in my opinion you'd
need either of these to get a 3 column layout.

the reason they don't wrap is because DIVs are block elements, which by
default take up a whole line.

try this page: http://www.positioniseverything.net/...l.stretch.html

does this help?
tim
"D" <Da**@nothing.netwrote in message
news:ee**************@TK2MSFTNGP02.phx.gbl...
Hi,

I've been toying around with master pages and am trying to set up your
standard banner across the top and 3 areas below that, left content,
center content and right content.

I have the banner part being the top level master page and the left
content be nested master page named subMaster.master. In this I have 3
div's that I've named

SubMaster_LeftPanel
SubMaster_CenterPanel ***** contains ContentPlaceHolder
SubMaster_RightPanel

These are just div's now and don't contain actual panels btw.

I wish to have the LeftPanel contain a treeview for navigation and the
right panel be used for misc alerts or banner advertising. The CenterPanel
I host the ContentPlace holder control for content.

The problem I'm having is it works out well but SubMaster_RightPanel is
always wrapped around to the next line.

Instead of

Top Banner Top Banner Top Banner
-------------------------------------
Left | Center | Right

I have

Top Banner Top Banner Top Banner
-------------------------------------
Left | Center
Right

(if that makes sense).

All widths are thru a CSS using, 10%, 80% and 10% respectively. I can
change them to be alot less and this problem still persists so this
doesn't appear to be overlapping.

Any ideas and or solutions?

Thanks alot for your time.

Sep 6 '06 #2
D
Yes that helps quite a bit thank you. I was looking at it last night and
looking at the html the page generated when it was created and saw that it
wasnt a matter of the placeholders but something with the div's. I haven't
fixed it yet but I now know I need to read up a little more about how divs
work and positioning.

thanks alot.
"Tim_Mac" <ti********@community.nospamwrote in message
news:uB**************@TK2MSFTNGP03.phx.gbl...
hi,
i'd suggest posting a HTML equivalent of what you are trying to achieve.
it seems to be a HTML / CSS / Layout problem rather than master pages.
are the divs floated left, or absolutely positioned? in my opinion you'd
need either of these to get a 3 column layout.

the reason they don't wrap is because DIVs are block elements, which by
default take up a whole line.

try this page: http://www.positioniseverything.net/...l.stretch.html

does this help?
tim
"D" <Da**@nothing.netwrote in message
news:ee**************@TK2MSFTNGP02.phx.gbl...
>Hi,

I've been toying around with master pages and am trying to set up your
standard banner across the top and 3 areas below that, left content,
center content and right content.

I have the banner part being the top level master page and the left
content be nested master page named subMaster.master. In this I have 3
div's that I've named

SubMaster_LeftPanel
SubMaster_CenterPanel ***** contains ContentPlaceHolder
SubMaster_RightPanel

These are just div's now and don't contain actual panels btw.

I wish to have the LeftPanel contain a treeview for navigation and the
right panel be used for misc alerts or banner advertising. The
CenterPanel I host the ContentPlace holder control for content.

The problem I'm having is it works out well but SubMaster_RightPanel is
always wrapped around to the next line.

Instead of

Top Banner Top Banner Top Banner
-------------------------------------
Left | Center | Right

I have

Top Banner Top Banner Top Banner
-------------------------------------
Left | Center
Right

(if that makes sense).

All widths are thru a CSS using, 10%, 80% and 10% respectively. I can
change them to be alot less and this problem still persists so this
doesn't appear to be overlapping.

Any ideas and or solutions?

Thanks alot for your time.


Sep 6 '06 #3
hi D,
unfortunately tables are still the most sure-fire absolutely-cross-browser
method of getting a 3 column layout.
many web sites may not need to be concerned with the likes of Netscape 4.6
etc but i just thought you'd like to be aware of the lack of proper CSS
support in older browsers. IE 5 and 6 also has many CSS layout bugs that
make life difficult, CSS coders often use hacks in their stylesheets to work
around these problems.

whatever CSS/Div approach you use, some older browsers will screw it up and
just spit out the divs vertically, or on top of each other.

good luck
tim
"D" <Da**@nothing.netwrote in message
news:eQ**************@TK2MSFTNGP04.phx.gbl...
Yes that helps quite a bit thank you. I was looking at it last night and
looking at the html the page generated when it was created and saw that it
wasnt a matter of the placeholders but something with the div's. I haven't
fixed it yet but I now know I need to read up a little more about how divs
work and positioning.

thanks alot.
"Tim_Mac" <ti********@community.nospamwrote in message
news:uB**************@TK2MSFTNGP03.phx.gbl...
>hi,
i'd suggest posting a HTML equivalent of what you are trying to achieve.
it seems to be a HTML / CSS / Layout problem rather than master pages.
are the divs floated left, or absolutely positioned? in my opinion you'd
need either of these to get a 3 column layout.

the reason they don't wrap is because DIVs are block elements, which by
default take up a whole line.

try this page: http://www.positioniseverything.net/...l.stretch.html

does this help?
tim
"D" <Da**@nothing.netwrote in message
news:ee**************@TK2MSFTNGP02.phx.gbl...
>>Hi,

I've been toying around with master pages and am trying to set up your
standard banner across the top and 3 areas below that, left content,
center content and right content.

I have the banner part being the top level master page and the left
content be nested master page named subMaster.master. In this I have 3
div's that I've named

SubMaster_LeftPanel
SubMaster_CenterPanel ***** contains ContentPlaceHolder
SubMaster_RightPanel

These are just div's now and don't contain actual panels btw.

I wish to have the LeftPanel contain a treeview for navigation and the
right panel be used for misc alerts or banner advertising. The
CenterPanel I host the ContentPlace holder control for content.

The problem I'm having is it works out well but SubMaster_RightPanel is
always wrapped around to the next line.

Instead of

Top Banner Top Banner Top Banner
-------------------------------------
Left | Center | Right

I have

Top Banner Top Banner Top Banner
-------------------------------------
Left | Center
Right

(if that makes sense).

All widths are thru a CSS using, 10%, 80% and 10% respectively. I can
change them to be alot less and this problem still persists so this
doesn't appear to be overlapping.

Any ideas and or solutions?

Thanks alot for your time.



Sep 6 '06 #4
D
I'm going to play around with it for a little more then maybe go back to
tables if it doesn't work for me.

Thanks for the advice
"Tim_Mac" <ti********@community.nospamwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
hi D,
unfortunately tables are still the most sure-fire absolutely-cross-browser
method of getting a 3 column layout.
many web sites may not need to be concerned with the likes of Netscape 4.6
etc but i just thought you'd like to be aware of the lack of proper CSS
support in older browsers. IE 5 and 6 also has many CSS layout bugs that
make life difficult, CSS coders often use hacks in their stylesheets to
work around these problems.

whatever CSS/Div approach you use, some older browsers will screw it up
and just spit out the divs vertically, or on top of each other.

good luck
tim
"D" <Da**@nothing.netwrote in message
news:eQ**************@TK2MSFTNGP04.phx.gbl...
>Yes that helps quite a bit thank you. I was looking at it last night and
looking at the html the page generated when it was created and saw that
it wasnt a matter of the placeholders but something with the div's. I
haven't fixed it yet but I now know I need to read up a little more about
how divs work and positioning.

thanks alot.
"Tim_Mac" <ti********@community.nospamwrote in message
news:uB**************@TK2MSFTNGP03.phx.gbl...
>>hi,
i'd suggest posting a HTML equivalent of what you are trying to achieve.
it seems to be a HTML / CSS / Layout problem rather than master pages.
are the divs floated left, or absolutely positioned? in my opinion
you'd need either of these to get a 3 column layout.

the reason they don't wrap is because DIVs are block elements, which by
default take up a whole line.

try this page: http://www.positioniseverything.net/...l.stretch.html

does this help?
tim
"D" <Da**@nothing.netwrote in message
news:ee**************@TK2MSFTNGP02.phx.gbl...
Hi,

I've been toying around with master pages and am trying to set up your
standard banner across the top and 3 areas below that, left content,
center content and right content.

I have the banner part being the top level master page and the left
content be nested master page named subMaster.master. In this I have 3
div's that I've named

SubMaster_LeftPanel
SubMaster_CenterPanel ***** contains ContentPlaceHolder
SubMaster_RightPanel

These are just div's now and don't contain actual panels btw.

I wish to have the LeftPanel contain a treeview for navigation and the
right panel be used for misc alerts or banner advertising. The
CenterPanel I host the ContentPlace holder control for content.

The problem I'm having is it works out well but SubMaster_RightPanel is
always wrapped around to the next line.

Instead of

Top Banner Top Banner Top Banner
-------------------------------------
Left | Center | Right

I have

Top Banner Top Banner Top Banner
-------------------------------------
Left | Center
Right

(if that makes sense).

All widths are thru a CSS using, 10%, 80% and 10% respectively. I can
change them to be alot less and this problem still persists so this
doesn't appear to be overlapping.

Any ideas and or solutions?

Thanks alot for your time.





Sep 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joseph Ferris | last post by:
Hello, I am having an issue with page breaking that I hope someone will be able to help me with. Still a relative "newbie", and I thought this might be a good place to find some help. I have a...
4
by: Steve Franks | last post by:
I have this cool nested master page scenario working great. However what is the correct way to be able to access a strongly typed property at the top level master from a content page that has a...
2
by: iturner100 | last post by:
Hi, I've been struggling with this one for a couple of hours without much joy. Basically, I've got a set of nested masterpages (3 as it happens). I'm dynamically generating a new page in code...
3
by: Rolf Welskes | last post by:
Hello, for a large web site project we would like to use nested Master Pages. Unfortunely VS2005 is not able to show pages in design mode when nested Master pages are used. This has the...
1
by: shapper | last post by:
Hello, I am creating a web site with Nested Master pages. I also need to have a class where the culture is set. When the culture is changed by the user the page refreshes and the change takes...
2
by: John | last post by:
Hi, I'm having trouble with nested master pages (and creating the same behaviour as Scott Guthrie's blog post...
1
by: shapper | last post by:
Hello, I am using ASP.NET 3.5 and VS 2008 to create 2 level Nested Master pages. I am adding the controls and the content place holders at runtime. However now my child pages do not recognize...
4
by: daveh551 | last post by:
I've seen reference to Nested Master Pages in some of the documentation, but I haven't been successful in creating one in VS 2005 (Framework 2.0). I just did a search on it, and "How To:...
1
by: daveh551 | last post by:
Okay, another problem I'm having with nested master pages on VS 2005. I've got a MasterPage,master, as SubMaster.master, and a DesignTime.master, and a content page, default.aspx. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.