Jump to content

Firefox/Safari CSS problem


smujesse

Recommended Posts

I am trying to come up with a script that pulls info out of a database and displays it in a grid-like layout using div's. I have it working in IE just fine, but in Safari/Firefox it only lists the items down the left side of the page (100% width div's) as if the browser is ignoring the CSS. Any idea what to do to make this work?

 

 

 

Here is the code:

 

PHP:

<?php
$k=0;
$getinfo = mysql_query("SELECT * from table");
      while($info = mysql_fetch_array($getinfo))
       {
	  echo ("<div class='infoclass'><a href='page.php?id=$info[id]'>$info[item]</a></div>");
	  $k++;
	  }
?>

CSS:

.infoclass {
width:64px;
height:64px;
float:left;
clear:none;
margin:1px;
padding:2px;
border:solid 1px #E10505;
}

 

 

 

 

Link to comment
Share on other sites

Update: I fiddled around with this all night last night and apparently this does not work in IE anymore. It worked in IE earlier this week though I'm not sure what changed. (I work on a Mac at home and always discover IE compatibility issues at work)

 

In short, I get the biggest headaches with CSS. I am just trying to come up with a script that will pull info out of a database and display it in 64x64 boxes in a 8x8 grid. I also want to have it so those boxes can be ordered by dragging and dropping with AJAX similar to when you edit your "top 8 friends" in MySpace.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.