Results 1 to 8 of 8

Thread: [RESOLVED] Cross Browser Compatibility

  1. #1
    Join Date
    Jul 2008

    resolved [RESOLVED] Cross Browser Compatibility

    I feel bad making a new topic about cross browser compatibility when the topic under mine is about this too. However, I'm stumped on how to work around problems with IE. I used this utility to figure out that this is a IE specific issue. I googled a specific chain of keywords to solve this problem and it landed me here.

    Onto the problem: this is the website I've been working on - http://rscstaff.penguindevelopment.o...er3/index.html

    Click the link on any browser other than IE and it renders the way it's supposed to. Open it in any version of IE and it refuses to cooperate. I've already sought advice on another forum, but they only recommended me to play with every attribute I have to troubleshoot. I'm sure there are specific CSS attributes that do not work the same in both IE and Firefox.

    I normally use Firefox 3.0 with Firebug for my web development, but it's crucial to also cater to IE users since it still holds a majority of web viewers.

    Can anyone lead me in the right direction and tell me which specific types of CSS properties are prone to operate differently in IE? It would be an even bigger help if you tried to make it 100% compatible.

  2. #2
    Join Date
    Dec 2005
    American, living in Toronto, ON. CANADA
    "can't copy name attribute" errors ("warnings", actually) :

    <h1><a name="07282008">Sparse farce</a></h1>

    Cannot start a name attribute with a numeral. Must be a alphabeic.

    (still checking for whatevers...)

    alt="Valid XHTML 1.0 Strict" height="31px" width="88px" />
    "px" is CSS. height="" is HTML. Remove the "px" (several instances of this). Or, use style="height:31px" (called "inline-CSS")


    I'm also showing a runtime error (javascript). I do not know enough javascript to be helpful here, but see screenshot image. -This might be of some use to anyone more familiar with *js

    in your CSS:
    #mainbody h1 {
    margin:0pt 0pt 5px;

    #mainbody h3 {
    font-family:Times New Roman;
    margin:5px 10px 0px 30px;
    It is generally not a good idea to 'mix-n-match' values this way (pt, px, em, ex, in, cm, etc) although here, "zero" equals any other "zero" so the point is moot. But it can save you troubles to only use one 'flavor' of measure and stick with it for that Declaration.

    Also, the font-family here reads "times" "new" and "Roman". Unless you mean "Time New Roman" (quote around multiple words, else, it means second, third choice).


    I note several instances of
    padding:0pt; margin:0pt;
    and you very last entry in the external CSS is the "universal selector"

    * {padding:0; margin:0;}

    which over-rides all these others, making them redundant and useless. They do no harm. They just add to the weight of the CSS file. every instance of "padding:0pt; margin:0pt;" can be safely removed, if you retain the * {padding:0; margin:0;}, as it is global.

    now, probably somewhere in here I brushed up against something that might be the reason this doesn't work in IE.
    One things I would do, is make your "<a>" tags be "display:block;" which causes them to 'swell-up' and completely fill the "<li>" of which they belong. -Makes the entire "<li>" be 'hot clickable'.

    P.S. :

    I feel bad making a new topic about cross browser compatibility when the topic under mine is about this too.
    No, -don't. Tacking your 'similar' problem onto another's post, is called "hijacking" and it hides YOUR request, -esp. if the OP (Original Postee) marks his/her thread "RESOLVED". Sometimes we (or specifically, me at least) won't even bother to read a post/thread marked RESOLVED and thus, your question goes unanswered...

    Also, as a 'new member', your post will probably all land in the 'Moderation Queue' for approval, -unseen by you/audience. I just cleared two of yours. -It's an anti-spam measure that, once you attain 'trusted status' (an undisclosed number of posts), your posts will automatically appear on the forum.

    Welcome to WD!
    Last edited by WebJoel; 07-28-2008 at 10:13 PM.
    I build for: Firefox and tweak for IE

  3. #3
    Join Date
    Jul 2008
    Thanks for checking, WebJoel.

    I neglected to mention that a few parts of my websites are borrowed code from other places (they've been credited of course). The height/px problem is from the W3C validator: I just copy and pasted their HTML to put their validation verification box onto my website. The javascript came with the horizontal drop down menu box I found today, and lacking javascript experience as well, I don't know how to fix it.

    I was primarily looking to fix the background issue (bodybg.jpg doesn't load for the body tag), the margin issue (although it looks like it might be a margin-right issue, I'll have to play around to see), and the active scripting warning IE 6 gives when first encountering my website.

  4. #4
    Join Date
    Jul 2008
    Ottawa, Canada

    Just a note of thanks here...
    I've seen you post some ScreenHunter shots here, so I went and got the free one to try it.
    Love it! May just upgrade to the Pro.


    for IE bugs:
    HOLY! CSS ZELDMAN is a great place to start for many CSS & HTML subjects
    Position Is Everything deals with many IE bugs.
    Last edited by eloquentBohemia; 07-28-2008 at 10:15 PM.

  5. #5
    Join Date
    Dec 2005
    American, living in Toronto, ON. CANADA
    Screenhunter ROCKS!

    -It's late here... I'm going to bed.. Zzzzz
    I build for: Firefox and tweak for IE

  6. #6
    Join Date
    Jul 2008
    Thanks for the inputs and I'll look into fixing those problems tomorrow. Sorry about the multiple posts. I moderate another forum (100k+ active members) so I was aware of the automatic post hiding function. I think I might have use my browser to go back a couple of times, resulting in the multiple posts.

    Will update with details. Thanks for the insightful help again.

  7. #7
    Join Date
    Mar 2006
    Newcastle NSW Australia
    With 150px side margins (both sides), your header div is too wide for the container - decent browsers will allow the overhang, but IE6 will push the container wider. Remove the right margin :
    #header {
    	margin:100px 0 20px 150px;
    The background image loads fine for me with IE6 & 7 ...

    Not sure about the javascript either ...

  8. #8
    Join Date
    Jul 2008

    Centauri caught the problem of the wide header that I missed: one look with the Firebug tool made it obvious. Thanks for that.

    As for the background and active scripting problem, it seems like it only happens when the website is viewed from local files. Once it's hosted, the problem is gone. Odd.

    Anyway, I'll clean up my code but all the problems I've addressed have been fixed, therefore this topic is resolved. Thanks a lot to everyone who replied!

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.13375 seconds
  • Memory Usage 2,919KB
  • Queries Executed 13 (?)
More Information
Template Usage (34):
  • (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
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (8)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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