| | |
background-color wraps in IE
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
hey guys..
i have a problem on IE7. following css causing this. the problem is that wrapper div when its height is less than viewable area of the browser, browser doesn't apply background color. only applied to main div.
i fixed this giving same background color html but same code is working on another website www.biranket.com
anyone knows why it is happening ?
i have a problem on IE7. following css causing this. the problem is that wrapper div when its height is less than viewable area of the browser, browser doesn't apply background color. only applied to main div.
css Syntax (Toggle Plain Text)
body { background-color: #363636; color: #FFFFFF; font-family: tahoma,sans-serif; font-size: 70%; height: 100%; line-height: 1.2em; margin: 0; padding: 0; text-align: left; width: 100%; }
i fixed this giving same background color html but same code is working on another website www.biranket.com
css Syntax (Toggle Plain Text)
html { /* Fix for background issue in IE */ background-color: #363636; height: 100%; width: 100%; } body { background-color: #363636; color: #FFFFFF; font-family: tahoma,sans-serif; font-size: 70%; height: 100%; line-height: 1.2em; margin: 0; padding: 0; text-align: left; width: 100%; }
anyone knows why it is happening ?
Do a favour, leave me alone
0
#3 Oct 11th, 2009
yes they are there.. if you realized the html has no white space at all which is generated by c# code. same code used on www.biranket.com but i don't have this problem there.
Do a favour, leave me alone
0
#6 Oct 11th, 2009
Try this:
[for strict mode!]
html, body
{
background-color: #363636;
color: #FFFFFF;
font-family: tahoma,sans-serif;
font-size: 70%;
height: 100%;
line-height: 1.2em;
margin: 0;
padding: 0;
text-align: left;
width: 100%;
}•
•
Join Date: May 2009
Posts: 21
Reputation:
Solved Threads: 2
0
#7 Oct 12th, 2009
In my opinion you could use a separate file of css dedicated to IE, Most designers do this things because of IE's bringing the problem all the time when it comes to appearance.
0
#9 Oct 12th, 2009
•
•
•
•
Try this:
[for strict mode!]html, body { background-color: #363636; color: #FFFFFF; font-family: tahoma,sans-serif; font-size: 70%; height: 100%; line-height: 1.2em; margin: 0; padding: 0; text-align: left; width: 100%; }
that works if you see my first post above. i have did the same.
but there you will get issue with font-size which will 70% for body from 70% given to HTML
Do a favour, leave me alone
0
#10 Oct 12th, 2009
•
•
•
•
that works if you see my first post above. i have did the same.
but there you will get issue with font-size which will 70% for body from 70% given to HTML
You group select and you divide particulars when needed.
So we will split that body of statements in two groups so we drop properties not needed for html to assign only to element that will need them.
HTML and CSS Syntax (Toggle Plain Text)
html, body { background-color: #363636; color: #FFFFFF; margin: 0; padding: 0; width: 100%; height: 100%; } body { font-size: 70%; font-family: tahoma,sans-serif; line-height: 1.2em; text-align: left; }
Last edited by Troy III; Oct 12th, 2009 at 3:15 pm.
![]() |
Similar Threads
- iframe background color - pls help (HTML and CSS)
- how to place media page requests on background color (HTML and CSS)
- HTML 3.2 table background color (HTML and CSS)
- How Vb.NET Textbox background color change when TabStop come? (VB.NET)
- VS 2005 ListViews not holding background color (C#)
- help with setting background color!!! (Java)
Other Threads in the HTML and CSS Forum
- Previous Thread: mobile complaint website
- Next Thread: z-index with images
| Thread Tools | Search this Thread |






