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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
dificult compatibility issue
Old 06-23-2005, 08:46 AM dificult compatibility issue
lajkonik86's Avatar
Ultra Talker

Posts: 389
Trades: 0
I want firefox to treat the overflow:visible the same way as internet explorer (that means the incorrect way of stretching the div to fit the content)
a workaround with display: table-cell or something similar doesn't work in this instance

Here's the code, i hope somebody knows of a workaround:
http://www.top-download.net/test.php To see the problem in action
The problem is after the javascript is applied, so click the box

PHP Code:
<?

//LOGIN
define('IN_PHPBB'true);
$phpbb_root_path 'forum/';
include(
$phpbb_root_path 'extension.inc');
include(
$phpbb_root_path 'common.'.$phpEx);


?>
<style>
div#box {
width: 200px;
height: 110px;
overflow: hidden;
border-left: 3px solid #000000;
    border-right: 3px solid #000000;
    border-bottom: 3px solid #000000;
    border-top: 3px solid #000000;
}
</style>

<script>
function expand(id) {
var removable=document.getElementById(id);
if (removable.style.overflow == 'hidden') {
removable.style.overflow = 'visible';
} else {
removable.style.overflow = 'hidden';
}
}

</script>
<?




include("includes/dbconnect.php");
$Recordset mysql_query("SELECT * FROM `dandt` WHERE `type` = 1 ORDER BY `site` AND `position` LIMIT 0 , 30") or die(mysql_error());
while( 
$row $db->sql_fetchrow($Recordset) )
        {
            
$results[] = $row;
        }
echo 
"<br><hr><br><div onclick=\"expand('box')\" id=\"box\">";
for (
$i=0;$i<7;$i++) {
echo 
"<a href=\"" $results[$i]['link'] . "\">" $results[$i]['name'] . "</a><br>";
}
echo 
"</div>";

?>
__________________
Know what to Download

Please login or register to view this content. Registration is FREE
lajkonik86 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-23-2005, 10:49 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
why not make the both behave the same with a full and valid doctype and then use

Code:
function expand(id,h) { 
var removable=document.getElementById(id); 
if (removable.style.overflow != 'visible') {
removable.style.overflow = 'visible'; 
removable.style.height = 'auto'; 
} else { 
removable.style.overflow = 'hidden'; 
removable.style.height = h+'px'; 
} 
}
and use onClick(id,height)
and note I used != rather than ==
__________________
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 dificult compatibility issue
 

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.12770 seconds with 12 queries