Results 1 to 4 of 4

Thread: Android versus Apple

  1. #1
    Join Date
    Nov 2011

    Android versus Apple

    I have this page were the background image is to float. It works good on mac. pc and Andriod devices. But it does not work on ipad and iphones. What could be the problem


  2. #2
    Background-images can't be floated -- what exactly do you even mean by that?

    Though given you've got a way too large fixed width layout with NOTHING meant to allow it to be elastic, semi-fluid or responsive, I'm not sure how you can say it 'works good' on android devices (unless you happen to be using a 1920 wide tablet in landscape view).

    This is a great example of "it wasn't designed with mobile or accessibility in mind, OF COURSE it doesn't work on mobile".

    I mean, the markup is terrifyingly bad -- coded bullets and line breaks doing a unordered list's job, gibberish use of STRONG and numbered headings, paragraphs around tags they have no business being around (like ASIDE and DIV), static style in the markup, tags and attributes that have no business on any website written after 1997 like FONT and ALIGN, tables for layout...

    ... and you're wondering why it's not working on mobile? :/

  3. #3
    Join Date
    Nov 2011
    This is not my work. Just had someone ask me the question. So when you view and scroll the page. the background image should not move. And it doesn't on my computer. but on a Ipad it does.

  4. #4
    Ok, that's not "float", that's "fixed"; specifically the "background-position:fixed;" in that CSS that has no business in the HTML. Given that the content is bigger than a mobile device's screen should be, they are probably scrolling with the content. A full size non-repeated image behaves 'odd' when the width and/or height is bigger than the display across many devices, not just iOS ones... this is even more true one you have that "tables for layout" garbage in there...

    Generally it's one of the reasons that:

    1) don't trust background-position:fixed to actually work as advertised.

    2) images that large have no business being used as backgrounds on websites.

    Some of the other reasons being it makes low-memory devices painful to scroll on and it consumes WAY too much electricity for what it delivers. Generally that's why I avoid trying to use it altogether.

    There is a 'trick' to make it behave properly -- you put the background on BODY, set BODY and HTML to "height:100%" and make an inner DIV wrapping everything else in BODY that's set to "height:100%; overflow:auto;" -- it's ugly, but it USUALLY works.

    Really though with the laundry list of "how not to build a website", particularly if one cares about mobile -- you really should tell whoever it is that has that site to throw it away and start over; most of the design concepts aren't viable and the code is useless to anything but visual users who magically happen to be on the same size screen as the "designer". I'd be axing the "tables for nothing", get rid of all the tags and attributes that have no business on any website written in the past sixteen years, switch it to an elastic, semi-fluid and responsive layout -- which would let it be designed for those devices instead of blindly hoping that decade and a half out of date methodology will be 'tricked' into working by the browser.

    The first line proudly proclaiming most of it's problems -- Admiral Ackbar territory; It's a Trap! XHTML 1.0 Transitional basically means it was written using coding techniques that are 'in transition' from 1997 to 1998 -- and it shows badly here as this is quite obviously HTML 3.2 with a X1.0 tranny doctype slapped around it.

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.11741 seconds
  • Memory Usage 2,863KB
  • Queries Executed 15 (?)
More Information
Template Usage (32):
  • (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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (4)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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