473,782 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Div problems visible in Firefox

1 New Member
Hi there
I am a real newbie to CSS so please excuse any daft questions! I am trying to create a page with a header that contains a small square logo in top left corner with 2 longer divs to the rigt side of this extending across the top of the page, one above the other but not extending below the bottom of the logo. Hope that makes sense.
Problem is:
Displays fine in Safari (I am using a Mac) but the layout is a real mess in Firefox. Not tried it on a Windows box with IE yet as having read some posts here it seems FF is the yardstick to test these things so clearly I have messed up somewhere!
Any help will be greatly appreciated as it has been driving me nuts. I have tested the code compliance and not got any errors.
The HTML for this is here.It is a PHP file. I have dumped out a lot of the PHP stuff. The main display bit is near the bottom


Thanks
Mark

*****
<?php require_once('C onnections/pbConn.php'); ?>
<?php
if (!function_exis ts("GetSQLValue String")) {
function GetSQLValueStri ng($theValue, $theType, $theDefinedValu e = "", $theNotDefinedV alue = "")
{
$theValue = get_magic_quote s_gpc() ? stripslashes($t heValue) : $theValue;

$theValue = function_exists ("mysql_real_es cape_string") ? mysql_real_esca pe_string($theV alue) : mysql_escape_st ring($theValue) ;

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValu e) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theV alue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValu e : $theNotDefinedV alue;
break;
}
return $theValue;
}
}

$maxRows_rstKen nels = 10;
$pageNum_rstKen nels = 0;
if (isset($_GET['pageNum_rstKen nels'])) {
$pageNum_rstKen nels = $_GET['pageNum_rstKen nels'];
}
$startRow_rstKe nnels = $pageNum_rstKen nels * $maxRows_rstKen nels;

$colname_rstKen nels = "-1";
if (isset($_GET['CountyId'])) {
$colname_rstKen nels = (get_magic_quot es_gpc()) ? $_GET['CountyId'] : addslashes($_GE T['CountyId']);
}
mysql_select_db ($database_pbCo nn, $pbConn);
$query_rstKenne ls = sprintf("SELECT * FROM Kennels WHERE CountyId = %s ORDER BY Town ASC", $colname_rstKen nels);
$query_limit_rs tKennels = sprintf("%s LIMIT %d, %d", $query_rstKenne ls, $startRow_rstKe nnels, $maxRows_rstKen nels);
$rstKennels = mysql_query($qu ery_limit_rstKe nnels, $pbConn) or die(mysql_error ());
$row_rstKennels = mysql_fetch_ass oc($rstKennels) ;

if (isset($_GET['totalRows_rstK ennels'])) {
$totalRows_rstK ennels = $_GET['totalRows_rstK ennels'];
} else {
$all_rstKennels = mysql_query($qu ery_rstKennels) ;
$totalRows_rstK ennels = mysql_num_rows( $all_rstKennels );
}
$totalPages_rst Kennels = ceil($totalRows _rstKennels/$maxRows_rstKen nels)-1;
?><HTML>
<HEAD>
<TITLE>01_hom e</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<LINK rel="stylesheet " href="Default.C SS" type="text/css">
</HEAD>


<div id="page">

<div id="header">

<div id="logo">
<IMG SRC="images/logo.png" ALT="PetBooker logo">
</div>

<div id="titlebox">
<div id="title" class="styleTit le"> Pet Booker.co.uk <span class="styleSub Title"> Find someone to take care of your loved ones </span>
</div>

<div id ="navigation ">
<ul>
<li><a href="index.php ">Home</a></li>
<li><a href="#">Find a Kennel</a></li>
</ul>
</div>
</div>
</div>



<div id ="content">


</div>

</div>


</BODY>
</HTML>
<?php
mysql_free_resu lt($rstKennels) ;
?>

******

CSS Code

*****
body {
margin: 0;
padding: 0;
font: 90% Arial, Helvetica, sans-serif;
background: #FFFFFF;
}

#page {
width: 766px;
background-color: #FFF;
}

#titlebox {
float: left;
width: 648px;
margin: 0;
padding: 0 ;
border: 0;
}

#logo {
float: left;
margin: 0;
padding: 0 ;
border: 0;
}

#title {
padding-top:2px;
padding-bottom: 55px;
background-color: #D14009;
}

#navigation {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
text-align:center;
background-color: #8FB061;
margin-top: 2px;
padding-top: 5px;
padding-bottom: 6px;
}

#navigation ul {
list-style: none;
margin: 0;
padding: 0;
padding-top: 2px;
}

#navigation li {
display: inline;
}

#navigation a:link, #navigation a:visited {
padding: 3px 10px 2px 10px;
color: #FFFFFF;
background-color: #CC6633;
text-decoration:: none;
border: 1px solid #711515;
}

#navigation a:hover {
color: #FFFFFF;
background-color: #711515;
}

td {
text-align: left;
vertical-align: top;
font-family:Tahoma;
font-size:11px;
color:#474747;
}

a {
text-decoration: none;
}

a.1 {
text-decoration: none;
/*color: 000000;*/
}
.t11 {
font-family: Tahoma;
font-size: 11px;
font-style: normal;
}
body {margin:0px;pad ding:0px}
.style1 {
color: #FFFFFF;
font-weight: bold;
}
.style2 {color: #8faf61}
.style2Strong
{
color: #8faf61;
font-weight: bold
}

.style3 {
color: #ee7345;
font-size: 10px;
}
.style4 {color: #696562}
.style5 {font-size: 11px}
.style7 {color: #8faf61; font-weight: bold; }
.style8 {
color: #ee7345;
font-size: 11px;
font-weight: bold;
}
.style9 {font-size: 11px; color: #ee7345;}
.styleTitle {font-size:24px; color: #8faf61; bold; }
.styleSubTitle {font-size:16px; color: #8faf61; bold; }
.styleSearchHea der {font-size:16px; color: #FFFFFF; bold; }
.styleSearchSub Header {font-size:10px; color: #FFFFFF; bold; }

.styleNavBarSep erator
{
margin-left:5px;
margin-right:5px;
margin-bottom:2px
}

.style2Right
{
text-align: right;
}

.rightimg
{
float: right;
margin-top:2px;
}


.KennelsTable {
border: 1px solid #D6DDE6;
border-collapse: collapse;
width: 80%
}

.KennelsTable td {
border: 1px solid #D6DDE6;
padding: 4px;
}

.KennelsTable th {
border: 1px solid #828282;
background-color: #CC6633;
font-weight; bold;
text-align: left;
padding-left: 4px;
}

.KennelsTable caption {
font: bold medium Arial, Helvetica, sans-serif;
color: #336633;
text-align: left;
padding-top: 3px;
padding-bottom: 8px;
}
*********


Many thanks again
Mark
Apr 24 '07 #1
2 2289
drhowarddrfine
7,435 Recognized Expert Expert
The PHP doesn't do us any good because we have no way to execute it. You say it's a real mess in FF but, to me, it looks like what you say it should be so an image posted or, preferably, an online link would be better or a better description as to what is wrong.

You are missing a proper doctype. See the sticky about this at the top of this board. Also, your CSS does not validate. There are a few errors there.
Apr 24 '07 #2
Leo Smith
45 New Member
I am not sure this helps, since what you are saying seems a bit vague to me. But I have created a toolbar (has drop lists and/or tables in some of the toolbars) with a shadow image. This are is created with div tags and works for both the latest versions of IE and FF (MAC included). The toolbars are placed across the top of my page and are always visible. When the window is scrolled, the area that is not fixed scrolls under the toolbar area. These toolbars are locked at the top by using the style position:fixed and a relative position of top:0px and left:0px with a width of 100% (height changes with toolbar requirements). The catch is that fixed position is directly related to z-order. So if you want it to stay on top while you scroll under it, the divs will need to be the last set of visible div's created and displayed.

I hope this helps,
Leo
Apr 25 '07 #3

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

Similar topics

12
2670
by: DEN | last post by:
Hello, I need to remove toolbar and menubar from my current window (not opened with window.open, it would be too easy!!!). I've tried to use the window.toolbar.visible=false property, but it has no effect. No error message in the javascript console, nor any effect on the current window. I've tried Firefox and IE, same effect.... What should I do
7
2408
by: Andrea | last post by:
Hi there - I'm hoping someone can help me; I've been struggling with this for a few days! :-) I have a webpage that is comprised of many forms containing questions. As the user answers one of the questions, that form is hidden and the next is displayed. Also, as the user answers each question a "count" variable is updated based on their response. I would like the question to show up on the left side and the answer to show up in the...
12
2050
by: Brad | last post by:
Does anyone have any other solutions to the Firefox rendering problems with ASP.NET? I've tried the <browsercaps> web.config trick. It didn't work. Am I overlooking something else? Thanks!
2
2008
by: 4MLA1FN | last post by:
i'm building a little web app for my research project. url is here: http://www.cognitivecomposites.com/wtf/ it validates as xhtml/strict according to: http://validator.w3.org/check?uri=www.cognitivecomposites.com%2Fwtf this page works in IE. it doesn't in firefox 1.5 or opera 8.5.2. when i click the "show" checkboxes, the section disappers, as desired but when clicked again, the redisplayed section/s is
9
11189
by: aatcbbtccctc | last post by:
Hi folks I've googled for an answer to this, with no success. Can someone please jump in, and put me out of my misery! (I'm sure it's quite simple) I have an invisible IFRAME, and a visible DIV: <IFRAME id=myframe style="display:none" src="..." onload="ShowNews(this)"></IFRAME>
2
17080
by: cbjewelz | last post by:
Hey all. So I'm having problems with cross browser alignments. I'm looking at Safari and Mozilla Firefox. I develop in Safari and so it looks perfect there however in Firefox my vertical alignments and div widths are off. It's as if firefox has a different definition of a pixel than safari. Here is the url: http://theprize.chemouni.com/testing.php. When you select the Option from the pull down, the first part of the form appears. Then when...
4
6884
by: tshad | last post by:
I am trying to hide and show certain parts of my code (which I have no problem doing with DW). In VS 2003, it won't let you use <div runat="server"to section of parts of my code in a table. This is during compilation (build). My code is: <TABLE id="Table1" style="WIDTH: 864px; HEIGHT: 177px" cellSpacing="1" cellPadding="1" width="864" border="0">
2
2362
by: spinow | last post by:
Hi there, My current project has a div with a table inside it. In this table I have a cell. In this cell images are loaded using a javascript function and the images are resized to fit the cell with this same function. All the images are loaded in the same cell, different buttons call the images... Everything works fine in IE and in FF but... In FF, the first time certain image is loaded, it is not resized, only from the second click it works...
3
2668
by: FragN8r | last post by:
Long time reader, first time poster..... hello all, Thank you for looking at my post. I have created a popup that simulates a window. I have 3 div tags that I create, first div is a title, the second div appends the first div and a textnode, and then the third div appends the second div with an offset. This results in a popup window. I have added a fade in to the functions which work great in Firefox. I run into a problem when I add...
0
9641
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10313
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.