473,382 Members | 1,252 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,382 software developers and data experts.

CSS & pane trouble

Hey!

ASP.NET 2.0

I have a webpage which is based on a nested master page. The problem is that
I've applied a theme to the webpage but the CSS settings isn't applied to
the panes.... As you will see in the link, a label market "rightpane" is
placed to the left. It should have been on the right, and have a different
color.

My goal is to create a 3 column layout with panes on the left- and rightside

This works if I use div instead of pane, but from my understanding it's
better to use pane than div because of browser compatibility. I mean the
webserver discover what browser the client is using and then convert to pane
into div which that browser understand.. I other words using panes can avoid
using CSS hacks to make look good.. Do you agree with that? Please if I'm
wrong then tell me it...

Any idea why my CSS isn't applied to the page?

http://home.online.no/~au-holme/pub/...mn-trouble.PNG

My webpage:
<%@ Page Language="C#" MasterPageFile="~/MasterPages/ContentMaster.master"
AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent"
Runat="Server">
<asp:Label ID="Label1" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label2" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label3" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label4" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label5" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label6" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label7" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label8" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label9" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label10" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label11" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label12" runat="server" Text="label control in
Default2.aspx"></asp:Label>
</asp:Content>

This is the master page the webpage is based on:
<%@ Master Language="C#" MasterPageFile="~/MasterPages/MainMaster.master"
AutoEventWireup="true" CodeFile="ContentMaster.master.cs" Inherits="Content"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="MainPlaceHolder"
Runat="Server">
<asp:Panel ID="leftpane" runat="server">
<asp:Label ID="Label1" runat="server" Text="leftpane"></asp:Label>
</asp:Panel>
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
<asp:Panel ID="rightpane" runat="server">
<asp:Label ID="Label3" runat="server" Text="rightpane"></asp:Label>
</asp:Panel>
</asp:Content>

The CSS settings I'm trying to apply:
#leftpane
{
width:200px;
left:0;
background-color:Blue;
position:absolute;
top:124px;
}
#rightpane
{
width:200px;
right:0;
background-color:Olive;
position:absolute;
top:124px;
}
#MainContent
{
left:205px;
right:205px;
/*margin-left:205px;*/
/*position:absolute;*/
}
Sep 20 '06 #1
3 1612
In my post I mention the word "pane" it should instead be "Panel"
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:eR**************@TK2MSFTNGP04.phx.gbl...
Hey!

ASP.NET 2.0

I have a webpage which is based on a nested master page. The problem is
that I've applied a theme to the webpage but the CSS settings isn't
applied to the panes.... As you will see in the link, a label market
"rightpane" is placed to the left. It should have been on the right, and
have a different color.

My goal is to create a 3 column layout with panes on the left- and
rightside

This works if I use div instead of pane, but from my understanding it's
better to use pane than div because of browser compatibility. I mean the
webserver discover what browser the client is using and then convert to
pane into div which that browser understand.. I other words using panes
can avoid using CSS hacks to make look good.. Do you agree with that?
Please if I'm wrong then tell me it...

Any idea why my CSS isn't applied to the page?

http://home.online.no/~au-holme/pub/...mn-trouble.PNG

My webpage:
<%@ Page Language="C#" MasterPageFile="~/MasterPages/ContentMaster.master"
AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent"
Runat="Server">
<asp:Label ID="Label1" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label2" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label3" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label4" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label5" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label6" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label7" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label8" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label9" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label10" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label11" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label12" runat="server" Text="label control in
Default2.aspx"></asp:Label>
</asp:Content>

This is the master page the webpage is based on:
<%@ Master Language="C#" MasterPageFile="~/MasterPages/MainMaster.master"
AutoEventWireup="true" CodeFile="ContentMaster.master.cs"
Inherits="Content" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainPlaceHolder"
Runat="Server">
<asp:Panel ID="leftpane" runat="server">
<asp:Label ID="Label1" runat="server" Text="leftpane"></asp:Label>
</asp:Panel>
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
<asp:Panel ID="rightpane" runat="server">
<asp:Label ID="Label3" runat="server" Text="rightpane"></asp:Label>
</asp:Panel>
</asp:Content>

The CSS settings I'm trying to apply:
#leftpane
{
width:200px;
left:0;
background-color:Blue;
position:absolute;
top:124px;
}
#rightpane
{
width:200px;
right:0;
background-color:Olive;
position:absolute;
top:124px;
}
#MainContent
{
left:205px;
right:205px;
/*margin-left:205px;*/
/*position:absolute;*/
}


Sep 20 '06 #2
I had to put the ContentPlaceHolder inside a div/panel
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:eR**************@TK2MSFTNGP04.phx.gbl...
Hey!

ASP.NET 2.0

I have a webpage which is based on a nested master page. The problem is
that I've applied a theme to the webpage but the CSS settings isn't
applied to the panes.... As you will see in the link, a label market
"rightpane" is placed to the left. It should have been on the right, and
have a different color.

My goal is to create a 3 column layout with panes on the left- and
rightside

This works if I use div instead of pane, but from my understanding it's
better to use pane than div because of browser compatibility. I mean the
webserver discover what browser the client is using and then convert to
pane into div which that browser understand.. I other words using panes
can avoid using CSS hacks to make look good.. Do you agree with that?
Please if I'm wrong then tell me it...

Any idea why my CSS isn't applied to the page?

http://home.online.no/~au-holme/pub/...mn-trouble.PNG

My webpage:
<%@ Page Language="C#" MasterPageFile="~/MasterPages/ContentMaster.master"
AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent"
Runat="Server">
<asp:Label ID="Label1" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label2" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label3" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label4" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label5" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label6" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label7" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label8" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label9" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label10" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label11" runat="server" Text="label control in
Default2.aspx"></asp:Label>
<asp:Label ID="Label12" runat="server" Text="label control in
Default2.aspx"></asp:Label>
</asp:Content>

This is the master page the webpage is based on:
<%@ Master Language="C#" MasterPageFile="~/MasterPages/MainMaster.master"
AutoEventWireup="true" CodeFile="ContentMaster.master.cs"
Inherits="Content" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainPlaceHolder"
Runat="Server">
<asp:Panel ID="leftpane" runat="server">
<asp:Label ID="Label1" runat="server" Text="leftpane"></asp:Label>
</asp:Panel>
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
<asp:Panel ID="rightpane" runat="server">
<asp:Label ID="Label3" runat="server" Text="rightpane"></asp:Label>
</asp:Panel>
</asp:Content>

The CSS settings I'm trying to apply:
#leftpane
{
width:200px;
left:0;
background-color:Blue;
position:absolute;
top:124px;
}
#rightpane
{
width:200px;
right:0;
background-color:Olive;
position:absolute;
top:124px;
}
#MainContent
{
left:205px;
right:205px;
/*margin-left:205px;*/
/*position:absolute;*/
}


Sep 20 '06 #3
Hi Jeff,

Would you mind posting the code solution? I am having a similar
problem in that the .css file seems to be ignored, only the themes
..skin file is applied to my aspx page. I tried the solution you
described, but get errors such as:
Error 1 Validation (ASP.Net): Content is not supported outside 'script'
or 'asp:content' regions.

Regards,
Stacy

Sep 26 '06 #4

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

Similar topics

0
by: Don Leckie | last post by:
Hi, I'm upgrading our software from JDK 1.3.1_03 to JDK 1.4.2_07 and I'm having trouble with ComponentOrientation.RIGHT_TO_LEFT working correctly in a JScrollPane. One of my windows has a...
0
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a...
4
by: C Williams | last post by:
Hi, Is there a way to insert an image from the research pane into the document? The insert button appears to work only for text--is there a way around this? Thanks! -Casey
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
3
by: Lance | last post by:
I've noticed that controls that are contained in MDI child forms fail to raise MouseLeave events if the MDI child form's MdiParent property is set to Nothing (after it was set to an existing MDI...
0
by: dbuchanan | last post by:
Hello, The actions pane locks up after selecting a listbox. I have tried all kinds of things and have narrowed it down to this. If I click in the listbox the action pane locks up. Neither a...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
7
by: HxRLxY | last post by:
I posted a different question (Help with non-static/static problem) which was answered. I changed my inner class to a static nested class, but now I cannot create an object using that class and add...
5
Chrisjc
by: Chrisjc | last post by:
Good afternoon, I am seeking some php configuration help. Here is the run down I am running Windows server 2003 and IIS V6.0 I have never had issues before until now. I have Symantec Antivirus 11.0...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.