Results 1 to 6 of 6

Thread: Simple thin black border for frame in IE

  1. #1
    Join Date
    Oct 2010
    St Andrews, Scotland

    Simple thin black border for frame in IE

    Hello there.
    I've been working on this site:

    I have two frames: a slim navigation frame on the left, and a main content frame on the right. Both are a slightly different shade of green, and I want a nice crisp thin black line separating them.

    I've managed to get exactly this effect in Safari, Firefox and Chrome. IE however renders the frameborder entirely differently. I am prepared to employ some conditional CSS depending on browser, but for now I can't for the life of me work out how to get IE to give me a thin black line separating the two frames. Is it possible?

    Many thanks.

  2. #2
    Join Date
    Apr 2003
    <frameset onload="refreshFrame();" rows="*" cols="140,*" framespacing="1" frameborder="1" border="1"  bordercolor="#000000">
      <frame name="navigation" src="leftnav.htm" scrolling="no" frameborder="">
      <frame name="content" src="home.htm" frameborder="">
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Oct 2010
    St Andrews, Scotland
    Thanks for that Fang.
    It doesn't seem to do the trick on the version of IE I'm testing on here, but that could be a problem with trying things out on IE for Mac. I got it to work myself in the end with this unhappy use of inline styles though:

    <frameset onload="refreshFrame();" rows="*" cols="140,*" frameborder="0" border="0" framespacing="0">
      <frame name="navigation" src="leftnav.htm" scrolling="no" style="border-right: 1px black solid">
      <frame name="content" src="home.htm" style="border-left-style:none">
    At that point my problem got way more complicated, as I then had to get browser detection and URL replacement (swapping index.htm, my main frameset file, for indexie.htm containing the new IE-friendly settings) to work with existing scripts in the header. I'm calling it a day for today and hope to check it all when I get to a PC.

    Your help much appreciated though.

  4. #4
    Join Date
    Oct 2010
    Versailles, France
    And with an little image in the background like this in soc_styles.css:
    HTML Code:
    body {background: url(pixelblack.gif) repeat-y #2f6635;font-family:Futura, Century Gothic, san-serif}
    The image must be one pixel wide but may be several hundred in height. See to http://www.yourhtmlsource.com/stylesheets/cssbackgrounds.html.
    Good luck, your site look fine !

  5. #5
    Join Date
    Oct 2010
    Just 1 tip if i may, frames won't get indexed by google. Frames are old in developing websites. Please use div's instead.

    Just my thoughts.

  6. #6
    Join Date
    Oct 2010
    St Andrews, Scotland
    Thanks for the tip Orange. I understand that everyone is using divs for commerical purposes now. If the main argument against frames is that they don't get indexed by Google however, the main argument for dropping frames doesn't speak to me. I'm fine if one or two orphaned frames appear on Google to be found surreptitiously by people looking for other things. I'm not trying to attract lots of traffic to the main site. It's for a local club.

    Having said that, even locals who know about the site may google something like "St Andrews Othello" to get back to it and this links to home.htm, the default page in the main content frame. I currently have a script to put this page in its proper framed home when clicked through.

    Arguments in favour of frames for me though:
    - navigation is always in the same place, doesn't scroll away when a user reads down the content page (I find javascript effects that emulate a fixed navigation bar by constantly readjusting its relative position to be inelegant and flickery)
    - keeping the navbar in a separate frame makes updating it for the whole site very simple. Trickier if you've got some div code that needs to be copied to every page. I could keep it in a separate php file that gets called in to every page, but then that means doing the whole site in php, not as simple as just using frames.

    Anyway, I was just looking for some help with my site as it's been set up. It seems to be a trend in other fora that somebody posts, looking for a fix with technology X. Technology X is currently unpopular for whatever reasons (oftentimes people have forgotten why they're not supposed to like technology X any more). Even if the fix is simple, the majority of replies are along the lines of: dude, why are you using technology X? That's, like, so old school! Just my observation.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.11420 seconds
  • Memory Usage 2,894KB
  • Queries Executed 15 (?)
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
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (6)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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 (73):
  • 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_postinfo_query
  • fetch_postinfo
  • 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
  • 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