943,957 Members | Top Members by Rank

Ad:
Aug 12th, 2007
0

rendering problems in IE7

Expand Post »
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:
css Syntax (Toggle Plain Text)
  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:
html Syntax (Toggle Plain Text)
  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
Click image for larger version

Name:	style2_problem.jpg
Views:	38
Size:	44.3 KB
ID:	3893  
Similar Threads
Reputation Points: 46
Solved Threads: 0
Junior Poster in Training
Antonbomb22 is offline Offline
91 posts
since Jun 2004
Aug 13th, 2007
0

Re: rendering problems in IE7

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.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Faux Column
Next Thread in HTML and CSS Forum Timeline: Image didnt not appear





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC