Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Not Centered In IE...
Old 02-18-2010, 11:28 AM Not Centered In IE...
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
Hi,

Can anyone advise why this page is centered in FF, Chrome, etc but NOT in IE?
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-18-2010, 11:32 AM Re: Not Centered In IE...
Junior Talker

Posts: 3
Name: Wilonai Norrisive
Trades: 0
actually this is not clear to me why you are facing this type of problem. from my pc i can see it clearly and perfect. But I don't know why it is making problem with you.
__________________
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
wilonai01 is offline
Reply With Quote
View Public Profile Visit wilonai01's homepage!
 
Old 02-18-2010, 11:49 AM Re: Not Centered In IE...
aldor's Avatar
Ultra Talker

Posts: 479
Name: Alan
Location: Lincoln(UK)
Trades: 0
The very first line in your html file is:-
</script>Remove this and you should be OK.
aldor is offline
Reply With Quote
View Public Profile
 
Old 02-18-2010, 11:56 AM Re: Not Centered In IE...
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
DOH!

Cheers Alan...!

It's been a VERY long day!

**EDIT**

And I just gave you your 4th green bar!
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 02-18-2010, 12:00 PM Re: Not Centered In IE...
aldor's Avatar
Ultra Talker

Posts: 479
Name: Alan
Location: Lincoln(UK)
Trades: 0
^^^^^
Not to worry we all have days like this.

Thanks for the bar.
aldor is offline
Reply With Quote
View Public Profile
 
Old 02-18-2010, 12:05 PM Re: Not Centered In IE...
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
I got excited too early!

That </script> is actually the end of a script that I need.

I cut the page down to post the error page....

Could it be anything else obvious?
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 02-18-2010, 12:10 PM Re: Not Centered In IE...
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
If I remove the code, it works fine... (Althouh may now not be a CSS problem!)

PHP Code:
<?php

    
//include header code

    
include_once("head.php");
    
// use the user_connection include file's connectDB function

    
include_once("usr_conn.php");

    if (!
connectDB())

    {

        echo 
"<p>Unable To Connect To Database</p>";

        return;

    }

$sqlSelect "SELECT DISTINCT Car_Make FROM products WHERE Car_Make <> 'all' and Car_Make <> 'link'";


// assign the basic sqlquery

$sqlquery $sqlSelect;

//echo $sqlquery;

    

//get the result set

$result mysql_query($sqlquery);
// if no matches found from query

if (!$result || (mysql_num_rows($result) == 0)){

    
//echo ("<b><font class=small>No matches were found.</font></b>");

    
}

// display the results    

else{

// use rowcount to display total results found

    
$count mysql_num_rows($result);

    
//echo $count;

//echo("<p>Total Matches Found = " . $rowCount . "</p>"); //*debug

}


//initalize make and model output string

$totalOutput "";



while (
$row mysql_fetch_assoc($result))

    {

        
// out put car make

        
$strMake $row["Car_Make"];

        
$outMake "regions[\"".$strMake."\"] = ";

        
//echo $outMake;

                

        //*******************loop through each model

            
$sqlSelectModel "SELECT DISTINCT Car_Model FROM products WHERE Car_Make = '".$strMake."'";

            
//echo "<br>".$sqlSelectModel;

        

            // assign the basic sqlquery

            
$sqlqueryModel $sqlSelectModel;

            
//echo $sqlqueryModel;

    

            //get the result set

            
$resultModel mysql_query($sqlqueryModel);

    

    

            
// if no matches found from query

            
if (!$resultModel || (mysql_num_rows($resultModel) == 0)){

            
//echo ("<b><font class=small>No matches were found.</font></b>");

            
}

            
// display the results    

            
else{

            
// use rowcount to display total results found

            
$countModel mysql_num_rows($resultModel);

            }

            
$i $countModel;
            
$outModel "[\"";

            while (
$rowModel mysql_fetch_assoc($resultModel))

            {

            
// out put car make

            
$strModel $rowModel["Car_Model"];

            
$outModel $outModel.$strModel;

            
//echo $strModel;

                

                
if ($i 1){

                
//echo $strModel.", ";

                
$outModel $outModel."\", \"";

                }

                else{

                
//echo $strModel;

                
$outModel $outModel;

                }

            
$i $i-1;

            
//end model while loop

            
}

            
//write end of model string

            
$outModel $outModel."\"];";

            
//concatenate make and model strings

            
$carOutput $outMake.$outModel;

            
//build up complete string of all makes and models

            
$totalOutput $totalOutput.$carOutput."\n";

        

        
//*************************finish looping thorugh each model

    //end make while

    
}

?>

<script language="javascript" type="text/javascript">



regions = new Array();

<?php

echo $totalOutput;

?>





function update(form) {

    selectedRegion = form.make.options[form.make.selectedIndex].value;

    

    // this bit resets the cities select list to nothing.

    while (form.model.options.length > 1) form.model.options[1] = null;

    



    // this bit populates the cities select list with the required cities.

    if (selectedRegion.length > 0) {

        current_array=regions[selectedRegion];

    for (j=0;j<current_array.length;j++) {

        var optionName = new Option(current_array[j], current_array[j], false);

        form.model.options[form.model.length] = optionName;

    }

    }

}



</script>
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 02-18-2010, 12:51 PM Re: Not Centered In IE...
aldor's Avatar
Ultra Talker

Posts: 479
Name: Alan
Location: Lincoln(UK)
Trades: 0
Have you tried putting your script in the head section?
aldor is offline
Reply With Quote
View Public Profile
 
Old 02-18-2010, 02:11 PM Re: Not Centered In IE...
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
It Works!!

Logging off now... been a REALLY long day!
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 02-18-2010, 04:38 PM Re: Not Centered In IE...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Roger and out
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Not Centered In IE...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34443 seconds with 12 queries