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 12-08-2009, 05:19 PM   PM User | #1
nickHiebert
Regular Coder

 
Join Date: Oct 2009
Location: London, ON
Posts: 111
Thanks: 4
Thanked 0 Times in 0 Posts
nickHiebert is an unknown quantity at this point
header h1 image not displaying properly in IE 6/7.

Here is my site:
Code:
http://nickhiebert.com/
CSS for IE6:

Code:
#header h1 {
	height: 30px; 
	line-height: 30px;
	vertical-align:text-top;
	text-indent: 0;
}
CSS for IE7:

Code:
#header h1 {
	height: 92px;
	width: 304px;
	margin-right: 300px;
	margin-bottom: -89px;
	line-height: 18px; 
}

Another thing that may be triggering the problem in the HTML. If i put my title in such as my name like: <div id="header">
<h1><a href="http://nickhiebert.com/">Nick Hiebert<img src="images/logo.png" alt="header h1"/></a></h1> it just makes a bigger space (on the bottom between the banner and the nav) To note: also that the header h1 img is clickable for my home page.

Code:
<div id="header">
        	<h1><a href="http://nickhiebert.com/"><img src="images/logo.png" alt="header h1"/></a></h1>
nickHiebert is offline   Reply With Quote
Old 12-08-2009, 05:33 PM   PM User | #2
nickHiebert
Regular Coder

 
Join Date: Oct 2009
Location: London, ON
Posts: 111
Thanks: 4
Thanked 0 Times in 0 Posts
nickHiebert is an unknown quantity at this point
IE 6:


IE 7:
nickHiebert is offline   Reply With Quote
Old 12-08-2009, 05:54 PM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello nickHiebert,
I've never liked conditional comments and 99.999% they are unnecessary.

I only have IE8 placed into IE7mode using developer tools to view this in but removing this bit from css/styleie7.css, quoted in red below, makes it display correctly -
Code:
/*CSS File for Internet Explorer 7*/
/*Header*/
#header h1 {
	height: 92px;
	width: 304px;
	margin-right: 300px;
	margin-bottom: -89px;
	line-height: 18px; 
}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

Last edited by Excavator; 12-08-2009 at 07:44 PM.. Reason: spleling error
Excavator is offline   Reply With Quote
Old 12-08-2009, 07:11 PM   PM User | #4
nickHiebert
Regular Coder

 
Join Date: Oct 2009
Location: London, ON
Posts: 111
Thanks: 4
Thanked 0 Times in 0 Posts
nickHiebert is an unknown quantity at this point
Thanks that worked.
nickHiebert is offline   Reply With Quote
Reply

Bookmarks

Tags
css, header h1, ie6, ie7, internet explorer

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 11:57 PM.


Advertisement
Log in to turn off these ads.