Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2119 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

IE7 Img Problem

Thread title: IE7 Img Problem
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
02-28-2008, 01:45 AM
#1
CoryMathews is offline CoryMathews
Status: I'm new around here
Join date: Feb 2008
Location:
Expertise:
Software:
 
Posts: 17
iTrader: 0 / 0%
 

CoryMathews is on a distinguished road

  Old  IE7 Img Problem

I have a wierd ie7 bug. Its easier to see what im talking about instead of trying to say it. Take a look here. It works in IE6, Opera, FF, and Safari. I have kind of narrowed it down a bit. The height of the date area determines the part of the image that is shown. Heres the html for the area

PHP Code:
<li>
  <
span>
    <
div class="guide">
      <
div id="guide1">
        <
h7>0</h7>
      </
div>
      <
h6>Soon to Come</h6>
    </
div>
    <
p>
      <
a href="http://www.osguide.net/hdl.php?p=36" target="_blank">
        <
h2>1. FileZilla 3.0.7.1</h2>
      </
a>
      <
img src="http://www.osguide.net/images/software/filezilla.jpg" width="34px" height="34px" alt="FileZilla" align="left" />
      <
b>Added2008-01-14 &nbsp;&nbsp;|&nbsp;&nbspLast Update2008-02-20</b>
      <
br /><em>Windows</em> &raquo; <em>Linux</em> &raquo; <em>Mac</em> &raquo; <em>Internet</em>
    </
p>
    <
p><br />FileZilla Client...<br /></p>
    <
p><br />
      <
strong>Clicks</strong>: 21 &nbsp;|&nbsp
      <
strong>License</strong>: GPL
    
</p>
  </
span>
</
li
and the css for this section

Code:
.programList ul {list-style:none; display:block; font-size:10px;}
.programList li {border-bottom:1px solid #f2f2f2; background-color:#DFDFDF; font-size:10px; color:#666; text-decoration:none;}
.programList h2{ font-size:14px; color:#666; text-decoration: none; font-weight:bold; padding:7px 0 3px 0; }
.programList img{ padding:0 2px; background-color:#DFDFDF; border:2px solid #DFDFDF; height:34px; width:34px; float:left;}
.programList a {font-size:10px; color:#666666; text-decoration:none;}
.programList em {font-size:12px; color:#666;}
.programList span{ outline:none; background-color:#DFDFDF; text-decoration:none; display:block; padding:0px 15px 10px 15px; border-bottom:1px solid #CCCCCC; color:#999; font-size:12px;}
.programList span p {margin-left:69px; display:block;}
.programList span b {font-size:10px; color:#999999; font-weight:normal; position:relative; line-height:1.75;}
/*.programList span b img {border:0;}*/
.programList span:hover { background-color:#EEEEEE; border-bottom:1px solid #BBB;color:#444;text-decoration:none;}
.programList span:hover h2 { color:#0099CC; background-color:#EEEEEE; }
.programList span:hover a {color:#0099CC; background-color:#EEE; }
.programList span:hover img { background-color:#EEEEEE; border:2px solid #EEEEEE; min-height:34px; height:34px; width:34px; }
.programList span:hover em {color:#FF9900;}
.programList span:hover b {font-size:10px; font-weight:normal; color:#0099CC; line-height:1.75; }
.guide { width:69px; text-align:center; display:block; float:left; padding:15px 0 15px 0; }
.guide h7 { display:block; font-size:24px; color:#FF9900;}
.guide h6 { display:block; cursor:hand; font-size:12px; margin-top:5px; color:#666;}

Any ideas what could be causing this?

02-28-2008, 03:40 AM
#2
Awesome is offline Awesome
Awesome's Avatar
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
 
Posts: 3,440
iTrader: 26 / 93%
 

Awesome is on a distinguished road

  Old

You know there is no such thing as an h7 tag right?

02-28-2008, 04:14 AM
#3
VimF is offline VimF
VimF's Avatar
Status: Junior Member
Join date: Jan 2008
Location: on CSS
Expertise:
Software:
 
Posts: 63
iTrader: 0 / 0%
 

VimF is on a distinguished road

  Old

hmm... I'm a bit surprised that the code even works in IE6.

02-28-2008, 05:17 AM
#4
Szandor is offline Szandor
Status: Junior Member
Join date: Jan 2008
Location: Växjö, Sweden
Expertise:
Software:
 
Posts: 45
iTrader: 0 / 0%
 

Szandor is on a distinguished road

  Old

First of all, make sure you specify the correct encoding in the head. That could mess up a whole bunch of stuff. Secondly, get to work on your code - it has a grand total of 141 HTML and 13 parsing errors in it (using Total Validator) and since XML can be quite unforgiving, you should at least clean up the most blatant ones, such as unclosed tags and tags in uppercase.

You have also set the height and width of your image in the tag. This should always be avoided and set through CSS, but apart from that you have also made a critical error. The value of the height and width shouldn't have any unit to it. So, instead of "34px" it should only say "34". This might solve your problem, but I still urge you to clean up your code.

02-28-2008, 08:15 AM
#5
mikeroq is offline mikeroq
mikeroq's Avatar
Status: Member
Join date: Feb 2006
Location: Ponca City, OK
Expertise: xHTML/CSS/PHP/Computer Tech
Software: Photoshop, Notepad++, Winamp
 
Posts: 332
iTrader: 5 / 100%
 

mikeroq is an unknown quantity at this point

Send a message via AIM to mikeroq Send a message via MSN to mikeroq Send a message via Yahoo to mikeroq

  Old


The value of the height and width shouldn't have any unit to it
Wrong

You can either set percent or pixel value for the height and width attribute.

02-28-2008, 03:52 PM
#6
CoryMathews is offline CoryMathews
Status: I'm new around here
Join date: Feb 2008
Location:
Expertise:
Software:
 
Posts: 17
iTrader: 0 / 0%
 

CoryMathews is on a distinguished road

  Old

Humm, i had only taken the time to validate my css, i never even looked at the html validation yet. I didnt realize it was so.. bad lol. I will have to clean it up.

02-28-2008, 11:25 PM
#7
Soul_Cliche is offline Soul_Cliche
Status: Junior Member
Join date: Apr 2007
Location:
Expertise:
Software:
 
Posts: 51
iTrader: 0 / 0%
 

Soul_Cliche is on a distinguished road

  Old

to a post a bit above mine. it is invalid to not specify a unit to hight or width. this can screw up your browser and it could set a default and could possibly do the exact opposite of what you want, or cause even more problems.

02-28-2008, 11:27 PM
#8
Wildhoney is offline Wildhoney
Wildhoney's Avatar
Status: Request a custom title
Join date: Feb 2006
Location: Nottingham
Expertise:
Software:
 
Posts: 1,648
iTrader: 18 / 95%
 

Wildhoney is on a distinguished road

Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney

  Old

In the world of XML, nobody will be wrong!

<h1452>Swivel on this!</h1452>

03-01-2008, 08:45 AM
#9
Szandor is offline Szandor
Status: Junior Member
Join date: Jan 2008
Location: Växjö, Sweden
Expertise:
Software:
 
Posts: 45
iTrader: 0 / 0%
 

Szandor is on a distinguished road

  Old

Originally Posted by Mike Roq View Post
Wrong

You can either set percent or pixel value for the height and width attribute.
Yes, but if you define it in pixels you can't write "px" after the value.

03-01-2008, 08:49 AM
#10
Szandor is offline Szandor
Status: Junior Member
Join date: Jan 2008
Location: Växjö, Sweden
Expertise:
Software:
 
Posts: 45
iTrader: 0 / 0%
 

Szandor is on a distinguished road

  Old

Oh, and the errors have dropped by quite a bit! You have managed to loose a list element somewhere though, but apart from that your website is coming out fine. I take it some of the bugs have disappeared too?

Closed Thread  
Page 1 of 2 1 2 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed