Hey Scott,

It sounds like your #midShadowChan div has floated elements inside of it.

#midShadowChan {
    overflow: hidden;
}

if you set the overflow property of #midShadowChan to "hidden" then it will automatically size it's height to fit whatever content it contains.

See if this fixes your issue.

-- Brandtley


On 10/19/2010 1:46 PM, scott1964 wrote:
Hello

I have two CSS issues that seem like simple fixes, but seeing as these
are problems I've never had to deal with before, I'm lost on even
where to begin ... maybe these are doctype issues ... or computer
voodoo issues ...

First, I have a main, body text DIV (#bodyMain) and a contact text DIV
(#contactCell) that both sit inside a container DIV called
#midShadowChan ... I'd like this #midShadowChan container div to
expand to whatever size necessary to contain whatever info sits in the
#bodyMain DIV, which is my main content container. There will be
different amounts of stuff in this DIV on each page. Anyway, when I
try to "leave open" the "height" property, the #midShadowChan
disappears off the screen.  On the other hand if I hard-code a value
in there ... say 900px, it works fine. I can't do that though, because
as I stated earlier, there will be differing amount of content in that
DIV depending on the page.

Two screen shots are in order to exemplify this:

With no height property encoded: 
http://www.savagepixels.com/drDale/img/cssIssue_Image1.jpg

With a height property of 900px encoded: 
http://www.savagepixels.com/drDale/img/cssIssue_Image2.jpg


Second, and this should be simple ... I have in my stylesheet a rule
to color my headings green in the #contactCell DIV over to the left of
the screen ... it's the area with the contact info and hours of
operation in it ... this rule is working fine in my Dreamweaver
authoring environment but not when I preview it ... which is weird. I
notated where this occurs in that second screenshot link above.

Any ideas on what I did wrong?

Thanks to anybody who cares to help.
| scott


--
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to