Results 1 to 3 of 3

Thread: Contractible Headers Script Contracting But Leaving Space

  1. #1
    Join Date
    Feb 2006
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Contractible Headers Script Contracting But Leaving Space

    This question refers to

    Convertable Headers Script

    I made a page. It has 3 seperate menus areas

    Each menu contracts and expands perfectly

    So I decided to take one of those menu areas and instead of a link put a picture as the link (Each pix is 100Px high)

    I had 4 links that I wanted to put pics as the links

    I put in each pic one at a time and it worked fine for the first three

    The link works, each time I click the menu expands and contracts perfectly

    Here is the issue

    When I put in the fourth pic (with the link) it expands correctly but when I go to contract it, it doesn't contract correctly. Instead it leaves a space of 100px high between menu choices

    Now oddly enough if I add a fourth AND FIFTH pic, the fifth pic wraps around to the next line and when I go to expand and contract, it works fine, when it contract it leaves no spaces between menu choices

    I am using CSS to position the pictures for the links.

    I know this isn't much to go on but any idea where I should start looking. The script works great it just doesn't contract right with 4 pics. But does when you have 3 or 5 or more pics.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It is your layout and or css. Without a link to your code it is hard to say. I'd try just slipping in a <br> tag somewhere. But, I'd really need to see the code.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2006
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah it was the CSS code that was messing it up. By simply removing it all and putting one <br> between each image. Then I used CSS to center it as a group. and it workds great.

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
  •