Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-26-2012, 11:38 PM   PM User | #1
maelenhanced
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
maelenhanced is an unknown quantity at this point
Problem with CSS in IE 7/8

I am currently working an a small website. It looks fine in IE 9, but in IE 7/8 the css isn't working. Im looking for some help in trying to get it to work.

Good:
http://imageshack.us/photo/my-images/43/goodlb.png/

Bad:
http://imageshack.us/photo/my-images/716/badel.png/

CSS:
Code:
/*-------------------tag styling--------------------*/

body { font-size: 24px;
      color: #003399;
	  background-color: #66CCFF;
	}

header { padding: 10px;
      }
	  
nav { width: 150px;
     text-align: left;
	 float: left;
	 margin: 20px 0px;
	 padding: 20px 10px;
	 border: 1px solid black;
	}
	
nav a { display: block;
      text-decoration: none;
	  color: #003399;
	  padding: 5px 0px;
     }
	
footer { clear: left;
       text-align: center;
	   font-size: 20px;
	   padding: 10px 10px;
      }
	  
h3 { font-size: 28px;
   }
	
	
/*-------------------id styling---------------------*/

#wrapper { width: 960px;
           margin-left: auto;
		   margin-right: auto;
		   background-color: #FFE6B2;
		 }
		 
#logo { font-size: 42px;
        text-align: center;
	  }
	  
#content { width: 700px;
		  float: left;
		  margin: 20px 15px;
		  padding: 20px 15px;
		  border: 1px solid black;
		 }
		  
	  
	  
/*-------------------class styling------------------*/

.indent { text-indent: 25px;
        }
		
.center { text-align: center;
         }
maelenhanced is offline   Reply With Quote
Old 09-28-2012, 04:52 PM   PM User | #2
Candygirl
Regular Coder

 
Join Date: Apr 2008
Location: Switzerland
Posts: 177
Thanks: 2
Thanked 54 Times in 54 Posts
Candygirl is on a distinguished road
Hello,

Apparently you use html5 tags that are not natively supported by IE8 (header, nav,...). That could be a reason. You can use some script to get them working on older browsers or you can use older html tags.
__________________
As you've seen, English is not my mother language. Please help me to improve it :)
Candygirl is offline   Reply With Quote
Old 09-29-2012, 04:10 AM   PM User | #3
maelenhanced
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
maelenhanced is an unknown quantity at this point
Thank you! That did the trick.
maelenhanced is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:28 AM.


Advertisement
Log in to turn off these ads.