I set up a Desmos page to explore this property dynamically (shown below). It is an inevitable result from the multiplication of common bases implies add exponents property: Not when exponentials are vertically stretched. Doesn’t stretching a curve by definition change its curvature? You can vertically stretch any exponential function as much as you want, and the shape of the curve will never change!īut that doesn’t make any sense.
Vertical stretch software#
I use Desmos in this post, but this can be reproduced on any graphing software with sliders. This post shares a cool transformations activity using dynamic graphing software–a perfect set-up for a mind-bending algebra or precalculus student lesson in the coming year. If that’s too awkward to change with the way you have it set up then just account for the space the top nav takes in the flow with some padding on an adjacent element.OK, this post’s title is only half true, but transforming exponentials can lead to counter-intuitive results.
Vertical stretch code#
If you want specific help with your code then we’d probably need to see the site to have something to play around with properly.Īs others have said above the nav itself can be in the flow to take up room but just make the dropdowns absolute. However it looks from your example that you only have one background that needs to be 100% and as Dresdens example above shows you should be able to do that relatively easily using the basic principal as mentioned earlier. That will allow you to do clever things like this. There is another way to make multiple background and that is to use an absolute overlay method to provide background colours only as mentioned in this example. It’s a catch 22 situation and effectively you can only ever have 1 100% height element on the page and that is the first element on the page only (and contains all content) and it will be min-height:100% and basing its height from html,body.Įverything must be done on his one element only which is why the faux column approach is easiest when you want multiple equal columns.įor IE8+ you could use the display:table properties to make height:100% expand but this won’t work in IE7 and under so is seldom used.
![vertical stretch vertical stretch](https://www.geogebra.org/resource/caj7AQHx/uvCmqv0AZMUtsW8S/material-caj7AQHx.png)
The height just defaults to auto (effectively content height). Neither can you nest min-height:100% elements because you can’t base a percentage min-height on a parent that doesn’t have a defined height. You cannot nest elements of 100% height inside each other because that means the inner elements can never grow as they are limited to the initial height of the parent and will just overflow as you found out. Read the CSS FAQ on 100% height (see my sig) as it will help you to understand when you can use it and more to the point why you can’t use it most of the time. Is that clearer? Thank you guys for your replies! So basically, what I’m trying to do is to get #pagewidth to stretch to be as tall as the page, not just the window (which is how it is now), so that it is present around all the content in #maincontent.įor example, this is what happens now when the content exceeds the size of the browser window: I’m aware that using absolute positioning takes a div out of the flow of the rest of the content, but I can’t really find another way around the issue. That is, I don’t want the page to move or change at all when I mouse over the nav bar and the drop-down part appears. The absolute positioning is the only way I could find to keep the rest of the content from floating around the drop-down parts of the menu. Ok, sorry, I wasn’t completely clear about all this.įirstly, the reason I’m using absolute positioning is because I have a horizontal menu bar above the #maincontent div that uses float (because it has drop-down components). Padding:0 border-style: solid border-color:#000 that means that the size of #maincontent doesn’t affect its parent #pagewidth.Īnyway, may have miscalculated some numbers for the exact dimensions of your page, but i think this is what you were trying to achieve:
![vertical stretch vertical stretch](https://thecollegepanda.com/sat-function-transformations-definitive-guide/stretched-vertically.png)
#2) you used position:absolute on #maincontent this takes your element out of the normal flow.
![vertical stretch vertical stretch](https://mathbitsnotebook.com/Algebra2/FunctionGraphs/seqGraph2a.jpg)
#1) you have some conflicting rules, but that not what really holding you back How can I get that div to stretch to fill 100% of the page?Īm afraid you are misinterpreting a few concepts in your code and may have to rethink what you are trying to do. (I also tried just doing “min-height: 100% height: auto ” in the #pagewidth div instead of in “html>body #pagewidth”. As you can see, I’ve tried using min-height: 100%, height: 100%, but #pagewidth does not stretch when the content exceeds the capacity of the browser window - it pretty much stops where the window stops. So the #pagewidth div is supposed to form a kind of frame around the #maincontent div. Hi, I’m designing a site that has multiple divs within in each other, and I’m trying to get a div to stretch the length of the content that’s in a div within in.