2 replies [Last post]
acrossfrommarty
acrossfrommarty's picture
Offline
newbie
Ohio
Last seen: 10 years 40 weeks ago
Ohio
Timezone: GMT-5
Joined: 2011-12-30
Posts: 3
Points: 4

Below is how the div looks in my CSS

.centercontent
}
min-width:1000px;
}

googling the answer I came across this solution:

* html div#division {
width: expression( document.body.clientWidth < 334 ? "333px" : "auto" ); /* set min-width for IE */
 
div#division
{
min-width: 333px; /* sets min-width value for all standards-compliant browsers */
}

I am not sure how to implement this in either my CSS and/or .html page. My first guess was to change the word "division" to "centercontent" in my design.css but that just seems to make centercontent invalid so that no style appears. Any insight?
Thanx

acrossfrommarty
acrossfrommarty's picture
Offline
newbie
Ohio
Last seen: 10 years 40 weeks ago
Ohio
Timezone: GMT-5
Joined: 2011-12-30
Posts: 3
Points: 4

I figured it out

That answer above was from like 2007 for IE 6. I had the html markup written incorrectly. It should have been:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

acrossfrommarty
acrossfrommarty's picture
Offline
newbie
Ohio
Last seen: 10 years 40 weeks ago
Ohio
Timezone: GMT-5
Joined: 2011-12-30
Posts: 3
Points: 4

I figured it out

That answer above was from like 2007 for IE 6. I had the html markup written incorrectly. It should have been:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">