/    Sign up×
Community /Pin to ProfileBookmark

importing between divs

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 ….

to post a comment
CSS

8 Comments(s)

Copy linkTweet thisAlerts:
@karl584authorMar 17.2010 — 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
Copy linkTweet thisAlerts:
@FangMar 17.2010 — Give the div width and height to constrain it.
Copy linkTweet thisAlerts:
@karl584authorMar 17.2010 — i dont no why but the width and height doesn't constrain him!
Copy linkTweet thisAlerts:
@FangMar 17.2010 — What is the css?
Copy linkTweet thisAlerts:
@rnd_meMar 18.2010 — i dont no why but the width and height doesn't constrain him![/QUOTE]

try this:

position: relative, fixed, or absolute.

overflow: auto, scroll, or hidden.

width: in px, ems, or with a fixed-width parent wrapper: %.
Copy linkTweet thisAlerts:
@karl584authorMar 18.2010 — The problematic part is the "menuu" area. I still can&#228;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&#37;;

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;

}
Copy linkTweet thisAlerts:
@FangMar 18.2010 — height & width are set to [I]auto[/I], #menuu will expand to fit all the inserted content.

Restrict height & width with absolute units.
Copy linkTweet thisAlerts:
@rnd_meMar 18.2010 — 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...
×

Success!

Help @karl584 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...