Hey Leute, ich steig einfach nicht durch^^
Erstemal zum Aufbaue meiner seite:
Links oben Logo,
Darunter die Navigaion
Oben rechts LogIn
Darunter der Content
Die Seite soll immer 100% haben, wenn nun aber der Inhalt einer Seite zu groß wird, soll nur das Content - "Fenster" in meinem Fall ein UserControl(asp.net) scrollen.
Klappt auch soweit, allerdings gibt es 2 Bugs:
1) Ich arbeite über dem Content mit margin, da das Content-Fenster aber 100% hat it es immer größer höher als es sein soll. (auch nicht zu beheben mit padding oder magrin - 160px)
2) das Content-Fenster hat einen Hintergrund (nach unten hin gekachelt), wenn etwas so lang ist, dass es über diese höhe hinaus geht, schneidet es den Hintergrung einfach ab.
Ich hoffe es was einigermaßen Verständlich und Ihr könnt mir helfen, hier mal der Quellcode:
<style type="text/css">
.styleHideShow
{
display: none;
}
.body
{
margin: 0;
padding: 0;
height: 100%;
background-image: url('./Images/Main/HG-kachelbar.png');
}
.wrapper
{
width: 100%;
margin: 0px auto auto 0px;
min-height: 100%;
height:auto !important;
background-image: url('./Images/Main/HG-kachelbar.png');
}
.footer
{
position:fixed;
margin:auto auto 0px 0px;
bottom: 0px;
}
</style>
<body class="body">
<form id="form1" runat="server">
<div class="wrapper" style="position: fixed"></div>
<div style="float: left;">
<div style="width: 200px; height: 200px; float: left; margin: 0px auto auto
10px; position: fixed; background-image: url('./Images/Main/HG-
kachelbar.png'); ">
<div style="margin-left: 40px; position: fixed;">
<asp:Image ID="Image2" Width="180" Height="180"
ImageUrl="~/Images/Main/Logo2.png" runat="server" />
</div>
<div style="width: 200px; height: auto; float: left; position: fixed;
margin-top: 200px; margin-left: 20px;">
<asp:ContentPlaceHolder ID="cphLogIn" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div style="float: left; margin-bottom: auto; margin-left: 300px; margin-
right: 0px; margin-top: 0px;">
<div style="width: 916px; height: 100% !important; display: block;
min-height: 100%; position:absolute; ">
<div style="width: 916px; height: 100% !important; min-height:
100%; display: block; background-repeat:repeat-y; padding-top:
160px; padding-bottom:-160px; background-image: url
('./Images/Main/mittelteil-mitte.png');">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ContentPlaceHolder id="cphContent" runat="server" >
</asp:ContentPlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
<div style="position: fixed; height: 150px; background-image: url
('./Images/Main/HG-kachelbar.png');">
<div style="margin: 40px 0px 0px 500px;">
<asp:ContentPlaceHolder ID="cphNavigation" runat="server">
</asp:ContentPlaceHolder>
</div>
<div style="width: 916px; height: 25px; background-repeat:no-
repeat; background-image: url('./Images/Main/mittelteil-top.png')">
</div>
</div>
</div>
</div>
<div class="footer" style="width: 100%; height: 35px; ">
<asp:ContentPlaceHolder id="cphFooter" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
Erstemal zum Aufbaue meiner seite:
Links oben Logo,
Darunter die Navigaion
Oben rechts LogIn
Darunter der Content
Die Seite soll immer 100% haben, wenn nun aber der Inhalt einer Seite zu groß wird, soll nur das Content - "Fenster" in meinem Fall ein UserControl(asp.net) scrollen.
Klappt auch soweit, allerdings gibt es 2 Bugs:
1) Ich arbeite über dem Content mit margin, da das Content-Fenster aber 100% hat it es immer größer höher als es sein soll. (auch nicht zu beheben mit padding oder magrin - 160px)
2) das Content-Fenster hat einen Hintergrund (nach unten hin gekachelt), wenn etwas so lang ist, dass es über diese höhe hinaus geht, schneidet es den Hintergrung einfach ab.
Ich hoffe es was einigermaßen Verständlich und Ihr könnt mir helfen, hier mal der Quellcode:
<style type="text/css">
.styleHideShow
{
display: none;
}
.body
{
margin: 0;
padding: 0;
height: 100%;
background-image: url('./Images/Main/HG-kachelbar.png');
}
.wrapper
{
width: 100%;
margin: 0px auto auto 0px;
min-height: 100%;
height:auto !important;
background-image: url('./Images/Main/HG-kachelbar.png');
}
.footer
{
position:fixed;
margin:auto auto 0px 0px;
bottom: 0px;
}
</style>
<body class="body">
<form id="form1" runat="server">
<div class="wrapper" style="position: fixed"></div>
<div style="float: left;">
<div style="width: 200px; height: 200px; float: left; margin: 0px auto auto
10px; position: fixed; background-image: url('./Images/Main/HG-
kachelbar.png'); ">
<div style="margin-left: 40px; position: fixed;">
<asp:Image ID="Image2" Width="180" Height="180"
ImageUrl="~/Images/Main/Logo2.png" runat="server" />
</div>
<div style="width: 200px; height: auto; float: left; position: fixed;
margin-top: 200px; margin-left: 20px;">
<asp:ContentPlaceHolder ID="cphLogIn" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div style="float: left; margin-bottom: auto; margin-left: 300px; margin-
right: 0px; margin-top: 0px;">
<div style="width: 916px; height: 100% !important; display: block;
min-height: 100%; position:absolute; ">
<div style="width: 916px; height: 100% !important; min-height:
100%; display: block; background-repeat:repeat-y; padding-top:
160px; padding-bottom:-160px; background-image: url
('./Images/Main/mittelteil-mitte.png');">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ContentPlaceHolder id="cphContent" runat="server" >
</asp:ContentPlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
<div style="position: fixed; height: 150px; background-image: url
('./Images/Main/HG-kachelbar.png');">
<div style="margin: 40px 0px 0px 500px;">
<asp:ContentPlaceHolder ID="cphNavigation" runat="server">
</asp:ContentPlaceHolder>
</div>
<div style="width: 916px; height: 25px; background-repeat:no-
repeat; background-image: url('./Images/Main/mittelteil-top.png')">
</div>
</div>
</div>
</div>
<div class="footer" style="width: 100%; height: 35px; ">
<asp:ContentPlaceHolder id="cphFooter" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
Comment