Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE Div height printing problem 1

Status
Not open for further replies.

acent

Technical User
Feb 17, 2006
247
US
Greetings,

I have tried to find a solution to this on both this forum and my good buddy google, but haven't found the solution yet.

I have a rounded corder div setup
Code:
<div class="white_black1"></div>
<div class="white_black2"></div>
<div class="white_black3"></div>
<div class="white_black5" style="border-bottom: 1px solid black;"></div>
and the CSS
Code:
.white_black1, .white_black2, .white_black3, .white_black5, .white_blackc {
  height: 1px;
  background-color: #FFFFFF;
  border-left: 1px solid black;
  border-right: 1px solid black;
  overflow: hidden;
}
.white_black1 {
  margin: 0 1px;
}
.white_black2 {
  margin: 0 2px;
}
.white_black3 {
  margin: 0 3px;
}
.white_black5 {
  background-color: #000000;
  margin: 0 5px;
}
#content .white_blackc {
  padding-left: 20px;
  padding-right: 20px;
}
.white_blackc {
  height: auto;
  padding-left: 5px;
  padding-right: 5px;
  overflow: visible;
}
Printing in FF is a carbon copy of the screen. IE however, does not correctly size the height of the DIV. They are much taller. The screen looks identical in FF and IE. At this point, I, and the boss, only care about IE7 as that is what the users have.

My doctype is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "and I am working with .NET 2.0.
Any ideas?

"If it's stupid but works, it isn't stupid."
-Murphy's Military Laws
 
Perhaps I've missed something, but how on earth does the code you've posted give anything remotely resembling rounded corners?

Also, you are declaring rules for a class 'white_blackc' and ID 'content' which never appear the markup you've given us.

Are you giving us the whole picture here, or just some cut-down test harness with half the bits missing?

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top