/    Sign up×
Community /Pin to ProfileBookmark

using the height property?

Hi,

I have a bit of a problem. What i am after is the if the conten inside the box does not fill up the space of 540px then to sit at that. Otherwise to expand as neccessary: –

I have this :-

[CODE]
#outer{
position:absolute;
height:540px;
min-height:540px;
margin:12px;
width:700px;
left:50%;
margin-left:-350px;
border:1px solid #0BB978;
}

html>body #outer {
height:auto; /*for mozilla as IE treats height as min-height anyway*/
}
[/CODE]

but it doesn’t seem to grow bigger than what it is meant to. I have a div at the very bottom of the page which has clear:both in.

Thanks
k0r54

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@BonRougeNov 29.2005 — #outer {
min-height:540px;
}
* html #outer {
height:540px;
}
Copy linkTweet thisAlerts:
@k0r54authorNov 29.2005 — do i have to define the position type or have the clear both? because it is not working?
Copy linkTweet thisAlerts:
@k0r54authorNov 30.2005 — problem solved: -

I used the code from BonRouge and add to keep the clear in and a div to put all the content in.

Thanks bonrouge

k0r54
×

Success!

Help @k0r54 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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