Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Extra space between Sub and Sys Menus and Gallery in IE  (Read 4997 times)

0 Members and 1 Guest are viewing this topic.

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Extra space between Sub and Sys Menus and Gallery in IE
« on: January 31, 2006, 07:39:46 pm »

I customized my template.html file to match the rest of my site. The way I have it set up my coppermine gallery appears exactly the way I want it to in Firefox (on the PC) and Safari on OSX. However, Internet Explorer puts extra space between my Sub and Sys Menu and the Gallery.

My coppermine gallery is located at:

http://www.gontzphotography.com/gallery/index.php

Any suggestions?

Thanks!
« Last Edit: February 02, 2006, 06:33:43 pm by GauGau »
Logged

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Extra space between Sub and Sys Menus and Gallery in IE
« Reply #1 on: February 01, 2006, 12:57:33 am »

One note for anyone who may have read this and thought, well of course there are going to be subtle differences! However the problem I am having is drastic!
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Logged

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Extra space between Sub and Sys Menus and Gallery in IE
« Reply #3 on: February 01, 2006, 02:35:01 am »

OK, both my HTML and CSS now pass validation. On that note, I had no idea that <hr> had to be closed with </hr> until just now. Also, I have no idea what happened with that stuff in my style sheet. There was text there that I certainly did not create!


However, the results are the same.

Thanks for looking into the validation aspect.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Extra space between Sub and Sys Menus and Gallery in IE
« Reply #4 on: February 01, 2006, 07:45:25 am »

html tags that don't have to be closed (like <br>, <hr> or <img>) should be opened and closed in one step, i.e. <hr /> instead of opening and closing (<hr></hr>). This way, older browsers don't get confused.
Logged

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Extra space between Sub and Sys Menus and Gallery in IE
« Reply #5 on: February 01, 2006, 01:59:54 pm »

When I tried to vaildate my gallery, the validater told me I had to close the <hr> tag with </hr>. After I did that, when I ran the validater again it did not return any errrors.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Extra space between Sub and Sys Menus and Gallery in IE
« Reply #6 on: February 01, 2006, 07:05:10 pm »

sure, the validator is happy with it, but older browsers may have issues. Using the <hr /> tag will work even in older browsers and the validator will still validate, that's what I suggested. If you don't care for older browsers, then it's perfectly OK to leave things just as they are.
Logged

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Extra space between Sub and Sys Menus and Gallery in IE
« Reply #7 on: February 01, 2006, 07:44:33 pm »

Ok, I replaced <hr></hr> with <hr /> and re-validated. Validation was successful.

Now, any suggestions as to why IE is placing so much space between my Sub/Sys Menus and the rest of the Gallery?

Thanks!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Extra space between Sub and Sys Menus and Gallery in IE
« Reply #8 on: February 01, 2006, 08:49:08 pm »

in your stylesheet, you have specified
Code: [Select]
#content {
margin: 0px 0px 0px 165px;
border: 1px solid rgb(14, 114, 164);
padding: 12px;
background-color: rgb(255, 255, 255);
}
could be the culprit, temporarily replace the 165px margin with 0px
Logged

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Extra space between Sub and Sys Menus and Gallery in IE
« Reply #9 on: February 01, 2006, 09:21:03 pm »

I tried replacing the 165px left margin with 0 - I get the same spacing issue from the top. However, I did discover that while the white background behind the Sub/Sys menus goes behind my sidebar links, the Sub/Sys menu does not. Also, I just now discovered that it appears as though the top edge of the Category List table (at least I think its a table!) wants to sit tight up against my sidebar links. Before I thought there was some sort of issue of spacing between the Sub/Sys menu and the main gallery stuff. Now I believe that for whatever reason the gallery stuff (Category List) won't sit beside my sidebar links/menu.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Extra space between Sub and Sys Menus and Gallery in IE
« Reply #10 on: February 02, 2006, 09:16:11 am »

hm, as things work as expected in FF, but fails to work in IE I suspect your issue is related to the IE getting confused by a mixture of table-based and css-block based layout. Is it an option for you to replace the sidebar (which currently is in a div that is positioned on the page using the float attribute) with an old-fashioned table layout? I know, tables suck, and everybody wants a genuine floating layout, but as coppermine currently is table based, could you give the whole layout a table layout a try instead?
« Last Edit: February 02, 2006, 06:32:55 pm by GauGau »
Logged

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Extra space between Sub and Sys Menus and Gallery in IE
« Reply #11 on: February 02, 2006, 04:06:27 pm »

I created a table for my gallery page and now everything lines up the way I would like it to. I ended created a table with one row and two columns. My sidebar links are in the first column and my gallery is in the second column. I still have both inside of a div tag. Then below my table I have another div tag for my footer.

I knew that a table would probably solve my problem, but it is in my nature to try and solve whatever problem is preventing me from doing things the way I want to! - And I just couldn't figure out why it wouldn't work, which I why I enlisted your help.

I apologize for troubling everyone and taking your time with this issue. I would still like to know the exact cause and fix (using css and div tags) for this problem, but this issue is solved.

Thanks for your help!
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.