473,729 Members | 2,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.maste r. In this I have 3 div's that
I've named

SubMaster_LeftP anel
SubMaster_Cente rPanel ***** contains ContentPlaceHol der
SubMaster_Right Panel

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_Right Panel 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 1475
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.n etwrote in message
news:ee******** ******@TK2MSFTN GP02.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.maste r. In this I have 3
div's that I've named

SubMaster_LeftP anel
SubMaster_Cente rPanel ***** contains ContentPlaceHol der
SubMaster_Right Panel

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_Right Panel 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********@com munity.nospamwr ote in message
news:uB******** ******@TK2MSFTN GP03.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.n etwrote in message
news:ee******** ******@TK2MSFTN GP02.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.maste r. In this I have 3
div's that I've named

SubMaster_Left Panel
SubMaster_Cent erPanel ***** contains ContentPlaceHol der
SubMaster_Righ tPanel

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_Right Panel 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.n etwrote in message
news:eQ******** ******@TK2MSFTN GP04.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********@com munity.nospamwr ote in message
news:uB******** ******@TK2MSFTN GP03.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.n etwrote in message
news:ee******* *******@TK2MSFT NGP02.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.maste r. In this I have 3
div's that I've named

SubMaster_Lef tPanel
SubMaster_Cen terPanel ***** contains ContentPlaceHol der
SubMaster_Rig htPanel

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_Right Panel 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********@com munity.nospamwr ote in message
news:%2******** ********@TK2MSF TNGP02.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.n etwrote in message
news:eQ******** ******@TK2MSFTN GP04.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********@com munity.nospamwr ote in message
news:uB******* *******@TK2MSFT NGP03.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.n etwrote in message
news:ee****** ********@TK2MSF TNGP02.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.maste r. In this I have 3
div's that I've named

SubMaster_Le ftPanel
SubMaster_Ce nterPanel ***** contains ContentPlaceHol der
SubMaster_Ri ghtPanel

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
CenterPane l I host the ContentPlace holder control for content.

The problem I'm having is it works out well but SubMaster_Right Panel 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
2749
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 complex FO that contains nested tables. There are a few places where my breaks are not being rendered, although other ones work fine. I've made an FO that can reproduce this behavior. It is: <?xml version="1.0" encoding="UTF-8"?>
4
2468
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 nested master page between the content page and the top level master? For example, assume the very top level master is called CompanyWide.master. And the nested master page is called DepartmentA.master, which inherits from CompanyWide master. ...
2
2467
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 and want to be able to populate the ContentPlaceholders of the inner-most masterpage at run-time.
3
1702
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 consequence that also each content page cannot be used in design mode. It is impossible to design hundrets of pages in source mode without design
1
2055
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 effect. I saw this approach, I think, on a MSDN web site or blog: Config.vb Class where culture is set from profile value
2
5372
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 http://weblogs.asp.net/scottgu/archive/2007/07/09/vs-2008-nested-master-page-support.aspx ) .. I have a 'Main' master and added a 'Sub' master (based on 'Main') and finally added a 'Home' content page (based on 'Sub'). However rather than the expected Content Placeholder control the content page has a comment
1
1179
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 the master pages content place holders. How can I solve this?
4
1597
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: Walkthrough" on Master pages listed VS 2008 and Framework 3.5 as pre- requisites. If I do an "Add New Item" selecting "Master Page", the "Use MasterPage" check box is grayed out, so it won't let me create it in VS 2005. Is there a way to "trick it"? ...
1
2059
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 DesignTime master is a single level master page incorporating both the content of the MasterPage and the SubMaster, so that I can get around the fact that you can't see content pages in Design mode if they use nested masters.
0
8917
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9281
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8148
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2163
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.