Results 1 to 12 of 12

Thread: box model which is works fine always in IE but not in FF and NS

  1. #1
    Join Date
    May 2006

    box model which is works fine always in IE but not in FF and NS

    hi all

    i have a box model which is works fine always in IE but not in FF and NS (not always)

    sometimes needs refresh to work...otherwise the last div takes the properties of the second last div.... and i dont know what is happening

    i forgot to mension that if i have 50 boxes only 1-2 have this problem...and always random....of course when i hit f5 everything works fine

    <DIV class=boxnav><a href="prod_sub.asp?id=<%=RSevent("CategoryID") %>">
    <DIV id=iconidio_big style="background-image: url(../media/boxnav/<%=RSevent("icon_file") %>);"><IMG src="../media/boxnav/<%=RSevent("icon_file") %>" border=0></DIV>
    <DIV><%=RSevent("name") %></DIV><div id=learn>learn more...</div></a></DIV>

    /*---css boxes-----*/
    div.boxnav {
    margin: 0pt;
    font: 11px Tahoma, Arial, sans-serif;
    white-space: nowrap;
    height: 140px;
    width: 18em;
    border-right: #ccc 1px solid;
    border-bottom: #ccc 1px solid;
    div.boxnav div {
    margin-left: 8px;
    width: 16em;

    div.boxnav a {
    text-decoration: none;
    color: #999;
    font-weight: bold;
    display: block;
    width: 100%;
    height: 100%;
    cursor: hand;
    div.boxnav a:hover { background-color: #f4f4f4; color: #000066;}

    div.boxnav #iconidio {
    margin-top: 50px;
    width: 16em;
    height: 50px;
    background-position: left -50;
    background-repeat: no-repeat;
    cursor: hand;
    div.boxnav #iconidio_big {
    margin-top: 20px;
    width: 16em;
    height: 80px;
    background-position: left -80;
    background-repeat: no-repeat;
    cursor: hand;
    div.boxnav a:hover #iconidio, div.boxnav a:hover #iconidio_big {background-position: left 0;}
    div.boxnav #iconidio img, div.boxnav #iconidio_big img {display: none;}

    div.boxnav #learn {
    padding-left: 10px;
    font: 10px Tahoma, Arial, sans-serif;
    color: #FF9900;
    text-decoration: none;
    background-image: url(imgs/boxarrow.gif);
    background-repeat: no-repeat;
    background-position: 0 5;
    div.boxnav a:hover #learn {color: red;}
    /*---end css boxes-----*/

  2. #2
    Join Date
    May 2006
    one more thing that you must know is that...this problem occures only when the site is online...locally i don't have those issues

  3. #3
    Join Date
    Nov 2003
    Jerryville, Tejas
    Full doctype?
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  4. #4
    Join Date
    May 2005
    Box Model 'Problems' are related to IE since it is the reason such problems exist. If FF and NS are not display your box as you wish, then you must have designed using IE, which is the browser with "Box Model Problems". (See my "But it works in IE!" link below). Showing us the CSS will not allow us to help you so we need the complete code or, preferably, a link.

  5. #5
    Join Date
    May 2006

    here's the test link, the problem occurs only in NS & FF but not always (usually before reload) :


    ray my doctype is

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    i didnt had any problems with that doctype in the past

    thanks for your reply

  6. #6
    Join Date
    May 2006
    please ignore the left menu...i have fixed that

  7. #7
    Join Date
    May 2005
    Your doctype is incomplete and IE is in quirks mode. Fix it with this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

    You will never get IE to display like modern browsers, such as Firefox, while in quirks mode.

    Why are you using transitional/loose/sloppy doctype? All new pages should always use a strict doctype.

    In addition, you have 277 html errors and way too many css errors.
    Last edited by drhowarddrfine; 07-31-2006 at 08:25 AM.

  8. #8
    Join Date
    May 2006
    sorry drhowarddrfine
    this is not fix my problem and adds me more
    maybe this is the right way but i dont have time to remake all the css

    see yourself:
    http://www.2ymorrow.gr/gr/prod_main.asp & http://www.2ymorrow.gr/en/prod_main.asp

    plus since the website is dynamic i dont have 227 errors because the 220 refers in the way that i define the items...which i cannot understand what is the wrong with that
    Last edited by ithinkcss; 07-31-2006 at 08:42 AM.

  9. #9
    Join Date
    May 2005
    Well, your errors are what the browser sees and some browsers will ignore that code and everything after it. And, like I said, with IE in quirks mode you will never get IE to perform correctly or any other browser to perform the same.

  10. #10
    Join Date
    May 2006
    my friend drhowarddrfine

    im sure that you are right...but if you spend 3minutes to see the pages and locate the actual problem maybe you will understand that is more simplier than you talk about.... i cant change all of my css right now....

    plus i dont have prob with IE, i dont have problem to the layout either....something is bother the ns and ff (to a very specific point) and i cann't understand what is this ( as i already wrote, not always...after the reload everything is ok)

    thanks again for the post

  11. #11
    Join Date
    May 2006
    Well, your errors are what the browser sees and some browsers will ignore that code and everything after it.
    if something like that happen i should take wrong ALL the boxes, EVERYTIME
    ps.sorry for my eng, i dont know if you completly understand me

  12. #12
    Join Date
    Mar 2005
    Sydney, Australia
    The first step in fixing problems with the way a web page displays differently in different web browsers is to fix the HTML errors making sure that the page has a valid doctype.

    The second step is to fix the CSS errors.

    Only with valid HTML and CSS is there even a possibility of getting the page to display the way you want across more than one browser.

    If you want web pages to work then take the time to create web pages and not just throw something together and hope that browsers can read your mind as to what you meant.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.14605 seconds
  • Memory Usage 2,971KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (12)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (12)postbit
  • (12)postbit_onlinestatus
  • (12)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates