rendering problems in IE7

Reply

Join Date: Jun 2004
Posts: 91
Reputation: Antonbomb22 is on a distinguished road 
Solved Threads: 0
Antonbomb22 Antonbomb22 is offline Offline
Junior Poster in Training

rendering problems in IE7

 
0
  #1
Aug 12th, 2007
IE7 seems to be incorrectly rendering this filler for rounded corners on this content box in my layout. Safari 3(Windows) and FF 2 render it correctly. I am unsure if it is because I am absolute positioning this content or not. The filler is not expanding to 100% in IE7.

The CSS:
  1. #messagebox {
  2. background: #cfcb3b url(gradient_msgbox.gif) repeat-x top left;
  3. font-size: 12px;
  4. font-weight: bold;
  5. text-align: center;
  6. border: 1px solid #999999;
  7. border-top: 0;
  8. border-bottom: 0;
  9. padding: 10px 6px 6px 10px;
  10. }
  11. #messagebox_container {
  12. position: absolute;
  13. left: 350px;
  14. top: 0px;
  15. }
  16. #messagebox_rdbtm {
  17. background-image: url(msgbox_lbtm.gif);
  18. background-position: bottom left;
  19. background-repeat: no-repeat;
  20. height:10px;
  21. width:auto;
  22. padding-right: 20px;
  23. }
  24. #messagebox_rdbtm > img {
  25. width:10px;
  26. height:10px;
  27. position:absolute;
  28. bottom:0;
  29. right:0;
  30. }
  31. #messagebox_rdborder {
  32. background: #cfcb3b;
  33. margin:0px 10px 0px 10px;
  34. border-bottom:1px solid #999999;
  35. height: 9px;
  36. min-height: 9px;
  37. width:100%;
  38. display: block;
  39. }

The XHTML:
  1. <div id="messagebox_container">
  2. <div id="messagebox">
  3. <img src="newpmicon.gif" alt="New Private Message" />
  4. 1 New private message.
  5. <div style="font-size: 10px;font-weight:normal;">Close</div>
  6. </div>
  7. <div id="messagebox_rdbtm">
  8. <div id="messagebox_rdborder"></div>
  9. <img src="msgbox_rbtm.gif" alt="Rounded Corner" />
  10. </div>
  11. </div>

I have also attached a screen shot highlighting the problem.
Attached Thumbnails
style2_problem.jpg  
My Site: Animation Talk is the best place to discuss animation.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: rendering problems in IE7

 
0
  #2
Aug 13th, 2007
Maybe the difference between Mozilla and IE is messing up your positioning:

- Mozilla browsers (NS and FF) put the margin, border, and padding outside the box-object's defined position and size.

- IE crams them all inside the box-object's defined position and size.

- This includes the body tag.

So you can't do both of these on the same box object if you want all browsers to render your page correctly:

1. Define the size or position of the box object.

2. Put margins, borders, or padding on the box object.

To make this work, you need to nest several box objects. Some of the box objects have defined positions or sizes, while others have margins, borders, and padding.

Also be aware that a browser using a different screen resolution is going to render your page strangely.
Last edited by MidiMagic; Aug 13th, 2007 at 12:47 am.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC