Click to See Complete Forum and Search --> : importing between divs
karl584
03-17-2010, 09:01 AM
How is it possible to make *.php file open in layer. Before i used frames and it was like this <frame src="calendar.php" name="vasakframe" scrolling="No" noresize="noresize" id="vasakframe" title="vasakframe" /> But now when using css layers ....
karl584
03-17-2010, 09:38 AM
i found it!
<div class="leftmenu">
<?php include("menu.php"); ?>
</div>
Still have the problem that it dosen't fit. It is showing over the whole page
Give the div width and height to constrain it.
karl584
03-17-2010, 12:52 PM
i dont no why but the width and height doesn't constrain him!
rnd me
03-17-2010, 08:27 PM
i dont no why but the width and height doesn't constrain him!
try this:
position: relative, fixed, or absolute.
overflow: auto, scroll, or hidden.
width: in px, ems, or with a fixed-width parent wrapper: %.
karl584
03-18-2010, 12:36 PM
The problematic part is the "menuu" area. I still canät make it fit the content inside the menuu layer
body {
margin : 0;
padding : 0;
background-color : #ffffff;
color : #000000;
}
p, ul, ol, li {
font : 10pt Arial,geneva,helvetica;
}
h1 {
font : bold 14pt Arial, Helvetica, geneva;
}
h2 {
font : bold 12pt Arial, Helvetica, geneva;
}
#header {
position : fixed;
width : 100%;
height : 10%;
top : 0;
right : 0;
bottom : auto;
left : 0;
border-bottom : 2px solid #cccccc;
}
#menuu {
position : fixed;
height : auto;
top : 20%;
left : 10;
width : auto;
margin : 0px 0px 0px 0px;
color : #000000;
padding : 0px;
overflow : hidden;
}
#main {
position : fixed;
top : 10%;
bottom : 10px;
margin : 0px 0px 0px 270px;
width : auto;
height : auto;
padding-left : 5px;
padding-right : 12px;
color : #000000;
border-left : 0px solid #cccccc;
overflow : auto;
}
#content h1, #content h2 {
color : #cc0000;
}
height & width are set to auto, #menuu will expand to fit all the inserted content.
Restrict height & width with absolute units.
rnd me
03-18-2010, 05:05 PM
i can't see how auto would work with fixed. fixed pos elements don't behave like they are in a container; they "float" above everything else. Therefore, i doubt that auto or percentages can be used to set dimensions.
i'm not a css expert, so perhaps i am wrong. but i don't think i am...