es131245 Posted August 6, 2009 Share Posted August 6, 2009 We all know that all browsers act differently...My page looks like one single table with some other tables in it...I got FF and Opera on this Ubuntu machine...<table id="main" width="100%" height="100%" cellpading="0">FF is fine with it but Opera doent even work with height="100%"!!!!!!!!!!!!!!!So i find some difficulties in writing an multi browser "interface framework"...is it the only way to solve this problem the same way as i did with multi language support...$browser_lang=getenv("HTTP_ACCEPT_LANGUAGE"); preg_match("/ru.*?|RU.*?|en.*?/",$browser_lang,$browser_lang_final); if($browser_lang_final[0]=="RU"){$browser_lang_final[0]="ru";} if(!isset($browser_lang_final[0])){$browser_lang_final[0]="en";} switch ($browser_lang_final[0]){ case "ru": include ("./langs/ru.php"); break; case "en": include ("./langs/en.php"); break;default: include ("./langs/en.php"); break;} Link to comment Share on other sites More sharing options...
Synook Posted August 6, 2009 Share Posted August 6, 2009 Try not using tables - they're not meant for layout, and can behave in weird ways.By the way, 100% height is the height of the viewport. Link to comment Share on other sites More sharing options...
es131245 Posted August 6, 2009 Author Share Posted August 6, 2009 I ve planed to organize by page by a table cuz div isnt good sometimes Link to comment Share on other sites More sharing options...
Synook Posted August 6, 2009 Share Posted August 6, 2009 Well, then why are you complaining about layout problems? :)What can't you do with CSS in this instance? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 6, 2009 Share Posted August 6, 2009 In addition to the table or whatever container, also make sure the body and html elements are also set to 100% height. A value of 100% just means to use 100% of the parent container's height, so make sure all parents have height 100%. Link to comment Share on other sites More sharing options...
Ingolme Posted August 6, 2009 Share Posted August 6, 2009 And if any of the ancestor containers have any padding, margin or border, there is going to be a vertical scrollbar. Link to comment Share on other sites More sharing options...
es131245 Posted August 13, 2009 Author Share Posted August 13, 2009 the main idea was to organize whole page by html (+ css i some cases) so the main page is basicly one whole table that could be easy and helpful to me but ive just found that my height="*" wont help in OPERA!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.