Results 1 to 7 of 7

Thread: Chrome drop menu positioning problem

  1. #1
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Chrome drop menu positioning problem

    Hello all,
    Here is the script for the chrome menu, http://dynamicdrive.com/dynamicindex1/chrome/index.htm

    The problem that I am having, is that when I try to position an image directly below the menu, I get a space between the menu and the image that spans 40 or so pixels. I'm using Dreamweaver to put this all together, and the problem is identical whether I use tables or just try and insert an image directly below the menu. I can't figure this out at all. Any help would be greatly appreciated.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Can you just link to your page?

    The script itself probably isn't doing this, but something about your layout and the way the script works within it.

    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply, my page isn't up yet, so I know that makes it hard to check what I'm talking about. But one thing that I did try that was easy to duplicate for testing purposes, was take the direct code from the site here,

    http://dynamicdrive.com/dynamicindex1/chrome/index.htm

    along with the .css and .js files from the same location and copy/paste the code into Dreamweaver. Previewing that in all browsers shows the menu working exactly like it should. But when I do a simple "insert image" to place an image directly below the menu, I get a space of like 30-40 or so pixels before the image.

    Attatching my code in a notepad file, as well as a jpeg of what it looks like.
    Thanks again for taking the time to help out with this, I'm still learning and am not sure how to go about fixing this on my own.

    Attachment 343
    Attachment 344

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Does your page contain a valid doctype, such as:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    This should be an easy problem to solve by tweaking the CSS, though without seeing the actual source code of your page, it's virtually impossible to make any concrete suggestions...

  5. #5
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Here's the code right here, and yes it begins with the valid doctype. I haven't published the page live yet, but this is the actual code copied right out of my file. I'll try and get it published soon so that it may be easier to see what it looks like. I'm curious if there's a glaring mistake in my code that I'm just not seeing, or understanding at least. The .css and .js files are direct copies from the link supplied above.

    Attachment 347

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ok, try moving the HTML for the drop down menus outside the main table itself and into open space, starting with:

    Code:
    <!--1st drop down menu -->                                                   
    <div id="dropmenu1" class="dropmenudiv">
    <a href="http://napervillemusic.com/rentmain.htm">Rental Info</a>
    <a href="http://napervillemusic.com/rates.htm">Rates</a>
    "
    "
    BTW, there seems to be a lot of unnecessary markup on your page as far as the table are concerned. They can easily be converted to DIVs based.

  7. #7
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks very much for the help so far. I figured out what was causing it to space the lower image down. I had changed the width value in the chromestyle.css file to 673px instead of 100%. Placing the value back at 100% places the images exactly where I want them. Only problem now is that the menu spans the entire screen horizontally. Is there a way to get the menu to span a fixed length? Yet again, this is all trial and error for me as my knowledge base in this area is fairly young. Thanks again for all the help.

    #chromemenu ul{
    border: 1px solid #BBB;
    width: 100%; < (HERE IS THE VALUE THAT FIXED THE PROBLEM)
    background: url(chromebg.gif) center center repeat-x; /*Theme Change here*/
    margin-left: 0;
    padding-left: 0;
    margin: 0;
    float: left;
    font: bold 12px Verdana;
    }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •