I found a solution - my code was fine (still did not need the float:left) but my doctype declaration was wrong... I corrected that to transitional and it is fine in both...
taking out the float in content had no affect (as you said...) putting overflow:auto did nothing in FF and in IE it kept the height at 75% and put in scrollbars (before it was expanding the div to fit...)
That is meant to give it a minimum height... when I take the height out - then it has not height - which I think goes back to the same problem... I want the stuff in the container div to give it its height...
Here is what the code looks like:
<div id="container">
<div class="content">
<table>... has no css</table>
</div>
</div>
#container {
margin-left:auto;
margin-right:auto;
width:95%;
height:75%;
opacity:.75;
filter:alpha(opacity=75);
border:1px solid #ffffff;
}...
I am having an issue where I have a table in a div... When the table grows longer than the div the div does not expand in FF... works fine in IE - what do I need to do to have the div expand with the table?
I have no ruby experience - can anyone give me some guidance:
I have a loop where I am outputting a row of a table i.e.
<% for lef in @lefs %>
<tr>
<td></td>
</tr>
<%end%>
I want to have an if-else in there where I can change the class of the td. How would I go about that?
Here is my issue - image a table with 2 rows - the first one is colspan = 2, the second one is two cells... now the table is centered in the browser: width 95%, height 95%...
I want to do this with divs and it needs to show well in IE and FF... any guidance? I can get it to show fine in one -...
So there is no way to have an inline element with a width?? That does not make sense....
the code is just:
#content {
display:inline;
width: 300px;
.....
}
It's just not an option... working in an environment (too convoluted to get into) where it is not an option... wish it was - would make A LOT of things easier...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.