[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

Masterpage and CSS problem

Asked by TheInnovator in Cascading Style Sheets (CSS), Miscellaneous Web Development, Programming for ASP.NET

Tags: css,asp.net

I created a page using CSS that comes out fine in a browser but when I try to incorporate it into masterpages, I'm experiencing some problems.  In the code  below, I have the html and css which works fine.  And below that I have my masterpage code and the contentplaceholder that uses the masterpage.  

When I bring them both in the browser, it looks different.  The masterpage one really looks different.

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
body {
 background-color:eeeeee;
 margin: auto auto;
 padding: 0px
}
 
#wrapper {
 width:800px;
 margin: 0 auto;
 border:3px dotted red;
 position:relative;
 vertical-align: middle
}
 
#header {
 width:760px;
 margin: 10px auto;
 border: 1px dashed blue;
 text-align:center;
 background-image: url(Nathanael/1122071244.jpg);
 background-repeat: no-repeat;
 height: 123px
}
 
#LNAV {
 width:180px;
 border:1px solid #333333;
 margin-left: 20px;
 float:left
}
 
#CONTENT {
  width: 550px;
  border: 2px solid brown;
  float:right;
  margin-right:20px;
  margin-bottom: 5px
}
 
#footer {
 clear:both;
 width:760px;
 text-align:center;
 border:1px dashed orange;
 margin: 5px auto
}
 
 
<HTML>
<HEAD>
   <TITLE></TITLE>
   <link  REL="StyleSheet" TYPE="text/css" HREF="sampleStyle.css">
</HEAD>
<BODY>
<DIV ID="wrapper">
<DIV ID="HEADER">HEADER</DIV>
<DIV ID="LNAV">LEFT NAVIGATOR</DIV>
<DIV ID="CONTENT">CONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENT
CONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENTCONTENT CONTENT CONTENT
</DIV>
<DIV ID="FOOTER">FOOTER</DIV>
</DIV>
</BODY>
</HTML>
 
 
<!-- Masterpage -->
 
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="iwebarea.master.cs" Inherits="iwebarea" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>IWEBAREA L.L.C</title>
    <link href="iwebareaStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    
<DIV ID="wrapper">
    <DIV ID="HEADER">THIS HEADER IS SUPPOSED TO BE CENTERED</DIV>
        <DIV ID="LNAV">LEFT NAVIGATOR
         <ul>
         <li>NAV 1</li>
         <li>NAV 2</li>
         <li>NAV 3</li>
         <li>NAV 4</li>         
         </ul>
        </DIV>
          <div id="content">
              <asp:contentplaceholder id="pageContent" runat="server">
              </asp:contentplaceholder>
          </div>
          
        <DIV ID="FOOTER">This is the FOOTER</DIV>
</DIV>
 
</body>
</html>
 
 
<!--- ContentPlace Holder -->
<%@ Page Language="C#" MasterPageFile="~/iwebarea.master" AutoEventWireup="true" CodeFile="INDEX.aspx.cs" Inherits="INDEX" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="pageContent" Runat="Server">
Content AFVASF ASFSA SAF SAASF SAFASF ASF ASFS SAF SAFS SAF SAF SAFSAF SAF SAF ASFF SF SAFSAF SAF
ASFASF ASFSAFSA FASFAS FASF SAFASFASFSAFSAFASFSAFASFAS SFSA FSAFSAFSA FSAFSAFSAF SAFSAF ASFSAFASF 
ASFASFSAF ASF ASF ASFSA F SAFAS FASF SAFSA ASF ASF SAF SAF SAF ASF ASF SAF SAF SAFSAFSAFSAFASF 
</asp:Content>
[+][-]01/12/08 05:10 PM, ID: 20646028Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Cascading Style Sheets (CSS), Miscellaneous Web Development, Programming for ASP.NET
Tags: css,asp.net
Sign Up Now!
Solution Provided By: TheInnovator
Participating Experts: 2
Solution Grade: B
 
[+][-]01/12/08 05:00 PM, ID: 20645998Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/16/08 03:54 AM, ID: 20670939Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 / EE_QW_2_20070628