Help - Search - Members - Calendar
Full Version: Something strange happening
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
boemboem
Hello again smile.gif


I have something strange going on and I can't fix it sad.gif

when you go to this webpage: http://www.coldcharlie.nl/index.php?site=forum

As you can see the <h2>Forum</h2> tag, beneath there is a lot of space wich I dont like, I would like to have it like the rest of the pages.

this is the code after <h2>Forum</h2>, as you can see, there is nothing what is resposible for that amount of space.

CODE
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#666666">
  <tr bgcolor="#333333">
    <td width="10" class="title style1"></td>
    <td class="title style1">Board:</td>
    <td width="40" align="center" class="title style1">Topics:</td>
    <td width="40" align="center" class="title style1">Posts:</td>
    <td width="25%" align="center" class="title style1">Laatste Posts:</td>
  </tr>


Maybe that I have sitting to long on this chair, that I don't see anything anymore biggrin.gif but I can use some help smile.gif

Thanks a ton in advance

Christian J
There are lots of invalid markup, such as multiple STYLE elements scattered throughout the page: http://htmlhelp.com/cgi-bin/validate.cgi?u...mp;warnings=yes

I should add that the multiple STYLE elements are not the cause of the problem, rather a sign of how bad the HTML editor is.
Frederiek
You also have CSS errors.

And there are 9 <br>'s after the <h2>.
boemboem
9 <br>'s!! where, because I cant find them smile.gif

QUOTE(Frederiek @ Nov 13 2008, 03:31 AM) *

You also have CSS errors.

And there are 9 <br>'s after the <h2>.

Frederiek
Right, I don't see them when viewing the source, but I do when using Safari's Web Inspector:

CODE
<td align="top" bgcolor="#676767">
  <h2>Forum</h2>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
<table ...

See the screenshot:

Click to view attachment

They all have a computed height of 12px and 0 for width.

Maybe it's the PHP that generates them.
Brian Chandler
QUOTE
Maybe it's the PHP that generates them.


If the PHP generated them, they would be in the source, since PHP only generates the document sent to the browser...
Christian J
QUOTE(Frederiek @ Nov 13 2008, 01:27 PM) *

Right, I don't see them when viewing the source, but I do when using Safari's Web Inspector:

I don't see them in the page's innerHTML.

QUOTE

Maybe it's the PHP that generates them.

I guess you meant javascript? But the gap remains for me even when JS and CSS is disabled. Maybe it has something to do with all the nested layout tables and/or markup errors. I suggest rewriting the page from the beginning, while watching out for the markup produced by the HTML editor(s).

Frederiek
I must say this is the first time I see a difference between the source code as in View Source and the output of Safari's Web Inspector.

I didn't see anything in the js files that could cause it. I de-activated everything I could, but the gap stayed and errors started to come up as if it were the validator. blink.gif laugh.gif
pandy
I was looking for something like that, but I don't see BRs in IE's rendered source either.

There are table errors but fixing them doesn't help. It's not the CSS. It's not something generated by JS. So what the heck is it? blink.gif
Christian J
QUOTE(pandy @ Nov 14 2008, 02:01 AM) *

There are table errors but fixing them doesn't help.

Are you sure? I tried simplifying the page but got lost in no time.
boemboem
thank you all, it's strange allright. accept for the diffent styles (wich I will put in a stylesheet later) the site is original.
pandy
QUOTE(Christian J @ Nov 14 2008, 02:15 PM) *

QUOTE(pandy @ Nov 14 2008, 02:01 AM) *

There are table errors but fixing them doesn't help.

Are you sure? I tried simplifying the page but got lost in no time.


Yes. But I just corrected the table error the validator reports. I didn't rewrite the page.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.