Forum Moderators: not2easy

Message Too Old, No Replies

IE6 Errors --- complete newbie with this sort of thing

         

malcolmcroucher

1:54 pm on Nov 8, 2008 (gmt 0)

10+ Year Member



Hi ,

Ive been using css on firefox for a while now and never had a problem ........ until i opened my site on IE6. And the div does not work .

the image is hovering over the text .

heres the div


DIV.selHolder { float: left; width:245px; border: 3px solid #ccc; margin: 10px; padding: 5px;
}

and in the html its just <div="selHolder"> with text a heading and some images inside it .

essiw

3:20 pm on Nov 9, 2008 (gmt 0)

10+ Year Member



can you give us some more information? like if there is something on the right side of the <div> (like another <div>) or why you want it to float left?, also is the bug there in IE7?

[edited by: eelixduppy at 6:24 am (utc) on Nov. 12, 2008]
[edit reason] disabled smileys [/edit]

malcolmcroucher

7:22 am on Nov 13, 2008 (gmt 0)

10+ Year Member



<div class="selHolder">
<?

$min=263;
$max=285;

$x=rand($min,$max);

$q = "SELECT * FROM activity WHERE activityid='$x'";

if ($r = mysql_query($q)) {

//loop results here
while ($row = mysql_fetch_assoc($r)) {

$id=$row["id"];
$name=$row["name"];
$ashort=$row["ashort"];
$heading1=$row["heading1"];
$image1=$row["image1"];
$image1alt=$row["image1alt"];
$link=$row["link"];
$currency=$row["currency"];
$linktitle=$row["linktitle"];
$linkurl=$row["linkurl"];
$highprice=$row["s1price"];
$lowprice=$row["s2price"];
}
}

<? echo "<h2 class='Middle' > <a href='./stuff/",$linkurl,".php' title='",$linktitle,"'> " ,$name, "</a></h2>";?>
<br>
<p><?=$ashort?> </p>
<? echo "<img src='./pics/",$image1,".jpg' alt='",$image1alt,"' style='1px solid #000' width='240' height='150' align='right'/>" ;?>
<? echo "<a href='./../stuff/",$linkurl,".php' title='",$linktitle,"'>",$link," </a> "; ?>
<? echo "<br> Price :<b> ",$currency," </b> ",$lowprice," to <b> ",$currency," </B> ",$highprice," per person ";
?><form action='./stuff/book.php' method='get'>
<input type ='hidden' name='id' value=",$id," />
<input type='submit' name='submit' value='Book Now' /></form>
</div>

ok this is what i got in the div .

The images seems to be overlaying everything , im gonna try z index now. It calls a random number which then pulls data from a database and dis[plays it.

malcolmcroucher

7:56 am on Nov 13, 2008 (gmt 0)

10+ Year Member



so i added some horizontal rules ... but its the link is still out .

div.selHolder hr {display: block; clear: left; margin: -0.66em 0;
visibility: hidden; }

and its not comming back as hidden ? its visible ?

malcolmcroucher

8:26 am on Nov 13, 2008 (gmt 0)

10+ Year Member



okay i had to end up using about 10 <br> so the link would be fine . so its working in FF , IE6 and IE7 .

swa66

3:22 pm on Nov 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I doubt there is enough html and css to reproduce the problem you have. Please remember not everybody is a fluent interpreter of php, a short ssample html and css that still exhibits your problem is more likely to get responses that are going to help you.

I'd make sure my css and generated html validate.