| | |
rendering problems in IE7
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2004
Posts: 91
Reputation:
Solved Threads: 0
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:
The XHTML:
I have also attached a screen shot highlighting the problem.
The CSS:
css Syntax (Toggle Plain Text)
#messagebox { background: #cfcb3b url(gradient_msgbox.gif) repeat-x top left; font-size: 12px; font-weight: bold; text-align: center; border: 1px solid #999999; border-top: 0; border-bottom: 0; padding: 10px 6px 6px 10px; } #messagebox_container { position: absolute; left: 350px; top: 0px; } #messagebox_rdbtm { background-image: url(msgbox_lbtm.gif); background-position: bottom left; background-repeat: no-repeat; height:10px; width:auto; padding-right: 20px; } #messagebox_rdbtm > img { width:10px; height:10px; position:absolute; bottom:0; right:0; } #messagebox_rdborder { background: #cfcb3b; margin:0px 10px 0px 10px; border-bottom:1px solid #999999; height: 9px; min-height: 9px; width:100%; display: block; }
The XHTML:
html Syntax (Toggle Plain Text)
<div id="messagebox_container"> <div id="messagebox"> <img src="newpmicon.gif" alt="New Private Message" /> 1 New private message. <div style="font-size: 10px;font-weight:normal;">Close</div> </div> <div id="messagebox_rdbtm"> <div id="messagebox_rdborder"></div> <img src="msgbox_rbtm.gif" alt="Rounded Corner" /> </div> </div>
I have also attached a screen shot highlighting the problem.
My Site: Animation Talk is the best place to discuss animation.
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.
- 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
![]() |
Similar Threads
- Slowness in replying to threads? (DaniWeb Community Feedback)
- RAM timing (Motherboards, CPUs and RAM)
- Site design problem (HTML and CSS)
- Background question (JavaScript / DHTML / AJAX)
- Shuffled DaniWeb Home (DaniWeb Community Feedback)
- wierd email problem (Windows NT / 2000 / XP)
- System freezes and registry problems (Windows NT / 2000 / XP)
- Please check my HIT log (Viruses, Spyware and other Nasties)
- Re: Windows XP 64-bit issues (Windows NT / 2000 / XP)
- Please review my newest website (Website Reviews)
Other Threads in the HTML and CSS Forum
- Previous Thread: Faux Column
- Next Thread: Image didnt not appear
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






