/    Sign up×
Community /Pin to ProfileBookmark

what is the easiest way to force pages to be a certain length if the content does not require for it to be that long (all content is in divs of course) but also allow it to be longer if there is enough content?

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@CodyTheGrateApr 12.2007 — It sounds like you are having the same problem I was just having.

Look over this: http://www.webdeveloper.com/forum/showthread.php?t=144509

It might be what you're looking for.
Copy linkTweet thisAlerts:
@discoraxApr 12.2007 — This issue is particularly tricky because the different browsers behave differently. I've run accross this problem many times and I've had to use a different solution for each one depending on what the client wanted. The link above is good, but like I said, there are many alternatives. Do you have an example to show us? If so I may have a cross browser solution...or maybe not ?
Copy linkTweet thisAlerts:
@eucharisteo7authorApr 13.2007 — well the page I'm working on now can be viewed at http://people.cedarville.edu/Student/scotriethmiller/
Copy linkTweet thisAlerts:
@CentauriApr 14.2007 — Just specify a minumum height on div#body (by the way, that is [B]NOT[/B] a good name for the div, as it could interfere with body tag - #content would be a better name). As IE6 doen't understand minimum height, it needs to be fed the figure as height.
[CODE]div#body {margin-left: 135px; width: 400px; padding: 10px; [COLOR="Red"]min-height:400px[/COLOR];}
[COLOR="Red"]* html div#body {height:400px;[/COLOR]}[/CODE]


Cheers

Graeme
Copy linkTweet thisAlerts:
@eucharisteo7authorApr 16.2007 — I think that did it, thanks!
×

Success!

Help @eucharisteo7 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.18,
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,
)...