Results 1 to 4 of 4

Thread: [RESOLVED] Div tag issues between IE and FF

  1. #1
    Join Date
    Apr 2008

    resolved [RESOLVED] Div tag issues between IE and FF

    Hello, all.
    Recently I've decided to brush up on my CSS skills, seeing as over the past year or so all I've been asked to make were flash sites(which were quite annoying to say the least).

    I used to be able to code fairly decently in notepad, but since it's been a while and i've been lax on keeping up with my skillset, I figured jumping in DW and doing my handcoding in there would be a better way to actively see what the heck I was doing right and wrong.

    I had a bunch of imaged cut up from photoshop and I was having initial difficulty keeping the div tags(with the images in them) placed correctly in Firefox. It really really didn't like them. So I jumped in PS and assembled a bunch of those images into one larger one(10k which is still quite small in size, but I'm not worrying about that much at the moment). Anyways, I try moving it around in Firefox, and it's still extra wonky.
    It works in IE, though, and it's passed all validation from W3, which was pointed out in that "Read me First" thread in here(Thanks for the useful links, I had no idea validation tools were online at all!).

    It's strange. Whenever I used to type up sites, IE would be the first to buckle, but I'm pretty rusty and I'm probably messing up my CSS properties.

    In the end, I even tried tossing the troublesome div into an AP Div in DW(which looks a lot like a forsaken Layer from the older dreamweavers) to see if I could do something about it. Still no luck.

    Can anyone give me some clues? I'm all out of ideas.

    links here: http://neuphonics.net/miscellaneous/...ry2/index.html

  2. #2
    Join Date
    Nov 2003
    Jerryville, Tejas
    You've got valid code but I don't know what it's supposed to look like. What it DOES look like is strange.
    "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

  3. #3
    Join Date
    Mar 2006
    Newcastle NSW Australia
    Problems here involve unnecessary absolute positioning and illogical nesting - let things flow and stack naturally. I had a play around with this, and came up with this html (even put a few links in boxes - bored) :
    <div id="wrapper">
      <div id="title">
        <a href="#">home</a>
      <ul id="nav">
        <li><a href="#">Link 1</a></li>
        <li><a href="#">Link 2</a></li>
        <li><a href="#">Link 3</a></li>
      <div id="mainblock">
        <p>content here</p>
    and this css:
    * {
    	margin: 0;
    	padding: 0;
    body {
    	background-image: url(darkgreenPatterm.gif);
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 12px;
    #wrapper {
    	width: 800px;
    	padding: 0 37px;
    	margin: 0 auto;
    	background-image: url(main.gif);
    	background-repeat: no-repeat;
    	background-position: left 258px;
    #title {
    	margin-left: -37px;
    	background-image: url(titleB.gif);
    	height: 250px;
    	padding-top: 8px;
    #title a {
    	float: right;
    	margin: 202px 20px 0 0;
    	width: 180px;
    	height: 27px;
    	line-height: 27px;
    	text-decoration: none;
    	text-align: center;
    	color: #000;
    	display: inline;
    #nav {
    	padding: 20px 0 0 20px;
    	height: 50px
    #nav li {
    	list-style: none;
    	float: left;
    	padding-left: 70px
    #nav a {
    	float: left;
    	width: 180px;
    	height: 25px;
    	line-height: 25px;
    	text-decoration: none;
    	text-align: center;
    	color: #000;
    #nav a:hover {
    	text-decoration: underline;
    	font-weight: bold;
    	color: #F00;
    #mainblock {
    	height: 766px;
    	padding: 15px;
    Basically, a wrapper contains every thing and centres the site. The main site background image is applied to the wrapper and positioned down from the top to clear the header. The header, navbar, and content area just stack one under the other, the positions being determined by set sizes and paddings.


  4. #4
    Join Date
    Apr 2008
    Wow, that makes perfect sense. Works perfectly!
    That's just some awesome structure. I guess I still have a ways to go before I'm proficient again, but you just clicked a few light bulbs on in my head with this.

    Thanks for everything, I was really starting to go loopy! XD

    Also, I realized this was my first post I made about this. I was wondering if my initial post got lost in translation before, and re-posted it in here again and that one hasn't shown up yet, but this one did. I guess this board works differently than others I've been on (checking each post maybe?). Anyways, sorry in advance if there's another post about this. I'll try to catch it if/when it hits.

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.23226 seconds
  • Memory Usage 2,866KB
  • 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_code
  • (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