Results 1 to 7 of 7

Thread: [RESOLVED] Strange display problem, LCD screen related?

  1. #1
    Join Date
    Jun 2006

    resolved [RESOLVED] Strange display problem, LCD screen related?

    For some reason, the text I've entered into a DIV layer appears to overlap the element that it's been typed into. I think it's related to LCD screens as the problem only came up on these. It's driving me mad. Also, one of the links on the page appears as it should do when I view it on my computer, yet is the default blue colour on the other monitors I tested it on.

    Here's a small example of the page, of how it should look, and how it appears to me:


    And here's how it looks incorrectly on some LCD screens:


    (The rounded rectangle is supposed to be there at the bottom, it's another DIV)

  2. #2
    Join Date
    Jun 2006
    Here's the CSS code for this DIV:

    HTML Code:
    .interests {
    <DIV class="interests"><br><h1>Interests</h1>
    <font color="red"><b>General:</b></font color> 
    computers, old amiga games, music, footy, coke, pro evo, photoshop, making new designs for my profile all the time because i have nothing better to do
    <font color="red"><b>Music:</b></font color> 
    oasis, radiohead, doves, the strokes, the white stripes, pink floyd, the clash, the beatles, coldplay, eels, love, arcade fire, the raconteurs, the stone roses, the cure, happy mondays, the streets, the futureheads, kings of leon, green day, arctic monkeys, maximo park, editors, interpol, elbow, ziggy stardust, my bloody valentine, the charlatans, rem, belle & sebastian, jeff buckley, velvet underground, old stereophonics, the kinks, mylo, bloc party, dirty pretty things, sigur rós, british sea power, random dance music
    <font color="red"><b>Films:</b></font color> 
    hardly ever watch them but fight club, pulp fiction, trainspotting, gladiator, all the naked guns
    <br><br><font color="red"><b>Television:</b></font color>
     the office, the royle family, have i got news for you, never mind the buzz****s, brasseye, i'm alan partridge, the soaps, big bloody brother
    <br><br><font color="red"><b>Heroes:</b></font color>
     you are my hero</div>

  3. #3
    Join Date
    Feb 2003
    Michigan, USA
    I noticed a couple differences in the screenshots.

    In the "correct" pic the text is a serif font, looks like Georgia perhaps. The incorrect pic shows a sans-serif font, most likely Verdana. The differences in fonts mean text wraps different and takes up more lines, making the "incorrect" screen shot have a longer column.

    The answer to this, unfortunately for your design, is to remove the height from .interests. Just let it flow man You'll need to cut the rounded box graphic into several pieces and use repeated background images to achieve the effect you want with the flexibility you need.

    1. The top rounded corners can be one graphic.
    2. The bottom rounded corners can be the second graphic.
    3. A repeated background image can be used to fill in the remaining box. It should be 1px high by as wide as the box, including the outer shadow.

    You'll find the following markup structure usefull:
    HTML Code:
    <div class="interests">
      <div class="interestsTop">
        <div class="interestsBottom">
          Interests content
    And the following CSS:
    .interests {
      background: #fff url(interestsBG.gif) repeat-y scroll 0 0;
    .interestsTop {
      background: transparent url(interestsTop.gif) no-repeat scroll 0 0;
    .interestsBottom {
      background: transparent url(interestsBottom.gif) no-repeat scroll 0 100%;

  4. #4
    Join Date
    Jun 2006
    Thanks alot.

    I didn't even notice the fact that two different fonts were displayed. (I've still no idea why that's happened though)

    I completely understand your reply, I think that should work.

  5. #5
    Join Date
    Feb 2003
    Michigan, USA
    HA ha! I didn't even think to look at the font-family property in the CSS you used! You always want to specify a list of acceptable fonts, starting with your most preferred to your least, and lastly be sure to include a generic font. In your case, you might like:
    font-family: batang, Georgia, "Times New Roman", Times, serif;
    Batang is your preferred font, so browsers will always look for it first. From your screenshot, it looks like Georgia is a similar looking font, so I listed that next, thinking if someone's computer didn't have batang (which mine doesn't) then it would likely have Georgia (a common windows font). I listed Times New Roman (in quotes because the font name is more than one word) next because it's a fairly common windows and mac font, with Times following that. Most times, if a Mac doesn't have Times New Roman, it will have Times and both are very similar.

    At the tail end is the generic font serif. All the previous fonts listed had serifs on them (the curly ends of each character). If a browser doesn't have any of the specified fonts and it gets to serif, it will use the default serif font specified in the browser preferences, so at least the user will see a font of the same design philosophy as your intended font.

    If you already knew this and it was a long-winded review, my apologies

  6. #6
    Join Date
    Jun 2006
    No that's helpful. I mistook 'batang' to be a font that all computers had, I don't know why I have it yet some others don't, but that's another issue.

    Problem completely solved now, I'll make sure I'm not lazy next time and give a list of fonts rather than just presuming the one I specify will be fine. Thanks again (Y)

  7. #7
    Join Date
    Feb 2003
    Michigan, USA

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.09713 seconds
  • Memory Usage 2,920KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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