By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,739 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,739 IT Pros & Developers. It's quick & easy.

height, min-height ie7

P: n/a
Background:
I have a page with some divs containing text. The divs need to be a
minimum height of 100px. When the text inside a div overflows the div
should grow (down the page) as needed. Text should be centered...

Problems
1. height vs min-height across browsers...
I was able to get a partial solution using child selectors to get
aroud the min-height problem in <=IE6, latest firefox, NN and Opera
but not in IE7. Can someone help me with the CSS?

2. text-align:center...
Works in IE browsers but does not center the text on my page when
displayed in FF, NN and Opera... should I be using align:center as a
table attribute?
Here's a sample page: http://www12.asphost4free.com/emailceloftis/
Feb 4 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
In article
<69**********************************@v67g2000hse. googlegroups.co
m>,
hzgt9b <ce******@gmail.comwrote:
Here's a sample page: http://www12.asphost4free.com/emailceloftis/
Read

<http://validator.w3.org/check?verbos...%2F%2Fwww12.as
phost4free.com%2Femailceloftis%2F>

--
dorayme
Feb 4 '08 #2

P: n/a
On Feb 4, 3:19*pm, dorayme <doraymeRidT...@optusnet.com.auwrote:
In article
<690803b3-cb4b-4547-864a-d2bb53893...@v67g2000hse.googlegroups.co
m>,

*hzgt9b <celof...@gmail.comwrote:
Here's a sample page:http://www12.asphost4free.com/emailceloftis/

Read

<http://validator.w3.org/check?verbos...%2F%2Fwww12.as
phost4free.com%2Femailceloftis%2F>

--
dorayme
Ok, I cleaned up my errors - note that the remaining (10) errors out
of my control as they are inserted automatically by my host.
Feb 4 '08 #3

P: n/a
On Feb 4, 4:51*pm, hzgt9b <celof...@gmail.comwrote:
On Feb 4, 3:19*pm, dorayme <doraymeRidT...@optusnet.com.auwrote:
In article
<690803b3-cb4b-4547-864a-d2bb53893...@v67g2000hse.googlegroups.co
m>,
*hzgt9b <celof...@gmail.comwrote:
Here's a sample page:http://www12.asphost4free.com/emailceloftis/
Read
<http://validator.w3.org/check?verbos...%2F%2Fwww12.as
phost4free.com%2Femailceloftis%2F>
--
dorayme

Ok, I cleaned up my errors - note that the remaining (10) errors out
of my control as they are inserted automatically by my host.
Got it - I played around with a couple of hacks ("*", "!important" +
child selectors) until I got this to work...
Here's what I came up with:
http://www12.asphost4free.com/emailceloftis/test.html
Feb 4 '08 #4

P: n/a
In article
<69**********************************@d4g2000prg.g ooglegroups.com
>,
hzgt9b <ce******@gmail.comwrote:
On Feb 4, 4:51*pm, hzgt9b <celof...@gmail.comwrote:
On Feb 4, 3:19*pm, dorayme <doraymeRidT...@optusnet.com.auwrote:
In article
<690803b3-cb4b-4547-864a-d2bb53893...@v67g2000hse.googlegroups.co
m>,
*hzgt9b <celof...@gmail.comwrote:
Here's a sample page:http://www12.asphost4free.com/emailceloftis/
Read
<http://validator.w3.org/check?verbos...%2F%2Fwww12.as
phost4free.com%2Femailceloftis%2F>
--
dorayme
Ok, I cleaned up my errors - note that the remaining (10) errors out
of my control as they are inserted automatically by my host.

Got it - I played around with a couple of hacks ("*", "!important" +
child selectors) until I got this to work...
Here's what I came up with:
http://www12.asphost4free.com/emailceloftis/test.html
No time to look deeply at this but there is a lot about centering
all over the show.

I know there is something up at:

<http://netweaver.com.au/alt/shrinkTo...teringShrinkTo
Fit.html>

You might find this informative in some way.

Take a look at something more comprehensive:

http://dorward.me.uk/www/centre/

Just by the way, it is customary t ask here, no intrusive
rudeness meant, are you laying out tabular data?

--
dorayme
Feb 5 '08 #5

P: n/a
On Feb 4, 8:39*pm, dorayme <doraymeRidT...@optusnet.com.auwrote:
In article
<6953e8e6-8623-4d4d-98e6-5a06d95eb...@d4g2000prg.googlegroups.com


,
*hzgt9b <celof...@gmail.comwrote:
On Feb 4, 4:51*pm, hzgt9b <celof...@gmail.comwrote:
On Feb 4, 3:19*pm, dorayme <doraymeRidT...@optusnet.com.auwrote:
In article
<690803b3-cb4b-4547-864a-d2bb53893...@v67g2000hse.googlegroups.co
m>,
*hzgt9b <celof...@gmail.comwrote:
Here's a sample page:http://www12.asphost4free.com/emailceloftis/
Read
<http://validator.w3.org/check?verbos...%2F%2Fwww12.as
phost4free.com%2Femailceloftis%2F>
--
dorayme
Ok, I cleaned up my errors - note that the remaining (10) errors out
of my control as they are inserted automatically by my host.
Got it - I played around with a couple of hacks ("*", "!important" +
child selectors) until I got this to work...
Here's what I came up with:
* * *http://www12.asphost4free.com/emailceloftis/test.html

No time to look deeply at this but there is a lot about centering
all over the show.

I know there is something up at:

<http://netweaver.com.au/alt/shrinkTo...teringShrinkTo
Fit.html>

You might find this informative in some way.

Take a look at something more comprehensive:

http://dorward.me.uk/www/centre/

Just by the way, it is customary t ask here, no intrusive
rudeness meant, are you laying out tabular data?

--
dorayme- Hide quoted text -

- Show quoted text -
Thanks for the links - always good to review this info...
Not tabular data - dynamic instruction/question/response text for
training quizes - text comes from XML or database...
Feb 5 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.