Forum Moderators: not2easy
If so you can set your element to:
.element {
height: 600px;
}
This should force it to at least 600px height. If you add more content than fits within the table it should expand to allow for the additional objects.
Let me know if I have misunderstood, because I have mucked around with similar positioning issues extensively.
If you add more content than fits within the table it should expand to allow for the additional objects.
In IE, yes. In compliant browsers, no.
Compliant browsers (correctly) interpret height as an absolute setting and will not expand such an element should content spill over. Instead, they allow the content to flow out of the element while keeping the element height at exactly what you set.
So to accomplish this cross browser you need to use min-height for compliant browsers and height for IE. Of course, IE/Mac gets height implementation right, so the IE value needs to be hidden from that browser. Here's the basic code for one way to do this...
YOURSELECTOR {
min-height: 600px;
}
/*start iemac hide \*/
* html YOURSELECTOR {
height:600px;
}
/*end iemac hide*/
cEM
Huh?
Here is a quick lesson on syntax:
CSS styles:
p {
margin: 0;
}
p.red {
color: #ff0000;
}
HTML code:
<p>Hi, I'm a paragraph with no margin.</p>
<p.red>Hi, I'm a paragraph with no margin and red text.</p>
See how it works? First you have the HTML element (the <p>) then the user-defined class name (red here), the 'p.red' inherits from 'p'.
So <body> is an HTML element, and unless you also made a class called 'body' (bad idea) there should be no period before it.
Here is how I would do it:
CSS:
body {
font-face: some font names;
font-size: 100%;
...more stuff...
}
body.special {
...your special background stuff...
}
HTML:
<body.special>
...your page
...
</body>
Take care,
Emperor
PS - for this you should really us and id instead of a class, so change the period to a # and make sure you only have one instance of body#special.