css clarification: height property
Posted: Sat Aug 20, 2005 5:20 am
Recently I have been facing a tough time with CSS and making the pages compliant with other browsers.
Some times, it gets more difficult than the PHP itself may be not I am used to so much advanced CSS.
alright, here is the problem.
1. I have got a mainDiv which displays the main content. wot I want the mainDiv to do is:
a. there should be a minimum height set so that even if there is less content or no content it should not look so odd and this setting should be consistent with all browsers
c. I want the mainDiv to grow depending on the content without scrolling; if the content is going to so huge then the mainDiv should expand with no problems. the borders of the div should not break(border:1px dashed #000000)
d. I want this to be xhtml compliant; dreamweaver gives a warning saying since min-height is supported only in two browsers; also gives a warning that dashed property for border is not compliant with IE 5.
2. I am mostly using % for height and width since I thought it should be compatible with smaller monitors.
what you guys are using???
I respect your answers more than the tutorials.
Some times, it gets more difficult than the PHP itself may be not I am used to so much advanced CSS.
alright, here is the problem.
1. I have got a mainDiv which displays the main content. wot I want the mainDiv to do is:
a. there should be a minimum height set so that even if there is less content or no content it should not look so odd and this setting should be consistent with all browsers
c. I want the mainDiv to grow depending on the content without scrolling; if the content is going to so huge then the mainDiv should expand with no problems. the borders of the div should not break(border:1px dashed #000000)
d. I want this to be xhtml compliant; dreamweaver gives a warning saying since min-height is supported only in two browsers; also gives a warning that dashed property for border is not compliant with IE 5.
2. I am mostly using % for height and width since I thought it should be compatible with smaller monitors.
what you guys are using???
I respect your answers more than the tutorials.
