tgrk35
12-06-2005, 12:51 PM
Yet another newb question :(.
Sorry.
http://www.summel.net/cobalt/admin/index.php?section=category&subsection=add
If you view that in Firefox, it displays perfectly. If you view that in IE, it has this HUGE gap between the <hr> and the basic info and attributes boxes.
Here's the CSS:
hr.standard
{
border: 0;
height: 0;
border-bottom: 1px solid #000;
width: 100%;
clear: both;
text-align: left;
margin: 0;
margin-bottom: 5px;
And here's the XHTML markup for that entire right column:
// BASIC INFO BOX
echo "<div class=\"standard_box\" id=\"basic_info\" style=\"width: 375px; float: left; margin-right: 5px; margin-top: 0;\">";
echo "<h3><img src=\"../images/cobalt_categories_basicinfo.png\" alt=\"Basic Information\" /></h3>";
echo "<label for=\"name\">Name (max 30 char)</label>";
echo "<input type=\"text\" id=\"name\" name=\"name\" size=\"25\" maxlength=\"30\" />";
echo "<br />";
echo "<label for=\"description\">Description (max 255 char)</label>";
echo "<input type=\"text\" id=\"description\" name=\"description\" size=\"40\" maxlength=\"255\" />";
echo "</div>";
echo "</div>";
// ATTRIBUTES BOX
echo "<div class=\"standard_box\" id=\"attributes\" style=\"width: 149px; float: left; margin-bottom: 5px; margin-top: 0;\">";
$parent_cat_query = "SELECT * FROM `cobalt_categories` ORDER BY `name` ASC";
$parent_cat_result = mysql_query($parent_cat_query);
// ROW COUNT + 1
$new_id_query = mysql_query("SELECT * FROM `cobalt_categories`;");
$new_id = mysql_num_rows($new_id_query) + 1;
echo "<h3><img src=\"../images/cobalt_categories_attributes.png\" alt=\"Attributes\" /></h3>";
echo "<h4>ID#: " . $new_id . " - " . date("m.d.y", time() - 3600) . "</h4>";
echo "<select id=\"parent\" name=\"parent\">";
echo "<option>Parent Category...</option>";
while ($cat = mysql_fetch_array($parent_cat_result))
{
echo "<option value=\"" . stripslashes($cat['id']) . "\">";
echo(stripslashes($cat['name']));
echo "</option>";
}
echo "</select>";
echo "<br />";
echo "<h4>Active</h4>";
echo "<input id=\"active\" name=\"active\" type=\"checkbox\" checked=\"checked\" style=\"border: 0;\" />";
echo "</div>";
echo "<div style=\"text-align: right; margin-right: 1px; margin-bottom: 0;\">";
echo "<input type=\"submit\" value=\"submit\" /> ";
echo "<input type=\"reset\" value=\"reset\" />";
echo "</div>";
I've looked at the hr.standard class and it doesn't look like there's any extra margin in there or anything :(.
Any ideas?
Thanks guys as always,
Will
Sorry.
http://www.summel.net/cobalt/admin/index.php?section=category&subsection=add
If you view that in Firefox, it displays perfectly. If you view that in IE, it has this HUGE gap between the <hr> and the basic info and attributes boxes.
Here's the CSS:
hr.standard
{
border: 0;
height: 0;
border-bottom: 1px solid #000;
width: 100%;
clear: both;
text-align: left;
margin: 0;
margin-bottom: 5px;
And here's the XHTML markup for that entire right column:
// BASIC INFO BOX
echo "<div class=\"standard_box\" id=\"basic_info\" style=\"width: 375px; float: left; margin-right: 5px; margin-top: 0;\">";
echo "<h3><img src=\"../images/cobalt_categories_basicinfo.png\" alt=\"Basic Information\" /></h3>";
echo "<label for=\"name\">Name (max 30 char)</label>";
echo "<input type=\"text\" id=\"name\" name=\"name\" size=\"25\" maxlength=\"30\" />";
echo "<br />";
echo "<label for=\"description\">Description (max 255 char)</label>";
echo "<input type=\"text\" id=\"description\" name=\"description\" size=\"40\" maxlength=\"255\" />";
echo "</div>";
echo "</div>";
// ATTRIBUTES BOX
echo "<div class=\"standard_box\" id=\"attributes\" style=\"width: 149px; float: left; margin-bottom: 5px; margin-top: 0;\">";
$parent_cat_query = "SELECT * FROM `cobalt_categories` ORDER BY `name` ASC";
$parent_cat_result = mysql_query($parent_cat_query);
// ROW COUNT + 1
$new_id_query = mysql_query("SELECT * FROM `cobalt_categories`;");
$new_id = mysql_num_rows($new_id_query) + 1;
echo "<h3><img src=\"../images/cobalt_categories_attributes.png\" alt=\"Attributes\" /></h3>";
echo "<h4>ID#: " . $new_id . " - " . date("m.d.y", time() - 3600) . "</h4>";
echo "<select id=\"parent\" name=\"parent\">";
echo "<option>Parent Category...</option>";
while ($cat = mysql_fetch_array($parent_cat_result))
{
echo "<option value=\"" . stripslashes($cat['id']) . "\">";
echo(stripslashes($cat['name']));
echo "</option>";
}
echo "</select>";
echo "<br />";
echo "<h4>Active</h4>";
echo "<input id=\"active\" name=\"active\" type=\"checkbox\" checked=\"checked\" style=\"border: 0;\" />";
echo "</div>";
echo "<div style=\"text-align: right; margin-right: 1px; margin-bottom: 0;\">";
echo "<input type=\"submit\" value=\"submit\" /> ";
echo "<input type=\"reset\" value=\"reset\" />";
echo "</div>";
I've looked at the hr.standard class and it doesn't look like there's any extra margin in there or anything :(.
Any ideas?
Thanks guys as always,
Will