/    Sign up×
Community /Pin to ProfileBookmark

overflow:inherit;

what the heck is the difference between it and overflow:visible;? I always though it was supposed to stretch the div, but apparently not. I was using min-height to line stuff up even when the content is small, but ie does not support min-height, so I just assumed stretch the div with the content with overflow and use height. Only in ns/moz it doesnt stretch… what a stinker. Guess Ill have to think up a new alternative… wait I think I figured it out… nope nevermind. Trial and error. [url]http://www.quasi-ke.servebeer.com/layout/index.aspx[/url]
well it works when the content is bigger then the div with min-height, and it works always on opera and mozilla… just not ie. Maybe a hack is in order hear unless someone else has an idea. I might just crack our the ownes hack and use height for ie only because that worked like a charm.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@pyroJan 13.2004 — inherit means it will take on the same value as it's parent: http://www.w3.org/TR/REC-CSS2/cascade.html#value-def-inherit
Copy linkTweet thisAlerts:
@PeOfEoauthorJan 13.2004 — <i>
</i>div.contentshell { /* ie can see me */
position:relative;
width:auto;
min-width:120px;
margin-left:163px;
margin-top:70px;
height:380px;
overflow:inherit;
right:10px;
margin-bottom:0px;
border:1px solid #3399ff;
border-top-width:0px;
background-color:white;
}
head:first-child+body div.contentshell { /* ie cant see me, owens hack */
position:relative;
width:auto;
min-width:120px;
margin-left:163px;
height:0%;
margin-top:70px;
min-height:348px;
right:10px;
margin-bottom:0px;
border:1px solid #3399ff;
border-top-width:0px;
background-color:white;
}

I am just so cleaver :p, I needed to put in a new value for height right, because it has to change an attribute value, cos the attribute doesnt go away. So I though gee, what stretches? A %!, so I plugged in 0% so as not to change the height above the min-height I set or the content. Go me... ?
×

Success!

Help @PeOfEo 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.3,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...