473,394 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

unwanted padding/margin in ie6...help!!!

hi guys,

bit of a strange one. when using the holly hack to address the well-documented "expanding box" problem in ie6, i encounter an undesired side-affect - all my unordered list items exhibit a phantom 4px pad (right & bottom only).

i've attached some sample code to illustrate (in this case with images although it applies to text also).

any clues? :(

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. <style type="text/css">
  7. /*<![CDATA[*/
  8. .wrap {
  9.     float:left;
  10.     position:relative;
  11.     width:800px;
  12.     background-color:#FF0000;
  13. }
  14. .wrap UL {
  15.     float:left;
  16.     position:relative;
  17.     list-style-type:none;
  18.     padding:0;
  19.     margin:0;
  20.     display: block;
  21. }
  22. .wrap UL LI {
  23.     float:left; position:relative;
  24. }
  25. /*]]>*/ 
  26. </style>
  27.  
  28. <!--[if IE]>
  29. <style type="text/css">
  30.   body {word-wrap: break-word;}
  31. </style>
  32. <![endif]-->
  33.  
  34. </head>
  35.  
  36. <body>
  37. <div class="wrap">
  38.   <ul>
  39.     <li style="background-color:#00FF00"><img src="images/example.jpg" width="176" height="75" /></li>
  40.     <li><img src="images/example.jpg" width="176" height="75" /></li>
  41.   </ul></div>
  42. </body>
  43. </html>
Jun 27 '07 #1
0 1554

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Andrew Thompson | last post by:
I am developing a Periodic Table of the Elements as<DIV>s ..(chuckle - just kidding!) a <TABLE> at http://www.physci.org/test/chem/, or rather, the table itself is.....
2
by: Lukasz Grabun | last post by:
There's a page http://www.dwarfscorner.com It looks as nice as I could design it; I like it, I think. There's just one thing I can't get along with: the vertical allignment of h2 in grey and...
5
by: Tom | last post by:
I am having a problem where an extra gap (whitespace, padding) appears in a table cell where I don't want it. The data fed in the table is via dynamic HTML, so the amount in the middle cell may...
11
by: sllrphoto | last post by:
A veteran of early html, I've modified my blog template and made it look rather clean (albeit rather plain) when viewed with IE. Ironically, I'm a big Firefox fan, but when viewed in FF, my blog...
2
by: Syl | last post by:
Hi - I have createed a two column page with a form that displays in each column. The right side column is not displaying properly - it seems as though the *left* colmun is mkaing the right...
3
by: Daz | last post by:
Hi everyone. I have just been making a JavaScript chat applet, which should open in a new child window. It does all of this fine, and works within Firefox beatifully. However, IE thinks it's...
2
by: Pikados | last post by:
This is driving me insane, and I can't seem to fix it. I am getting an 8px padding on the top and left of any and all HTML docs I make. Example:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.