The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Something strange happening
boemboem
post Nov 12 2008, 07:31 PM
Post #1





Group: Members
Posts: 3
Joined: 12-November 08
Member No.: 7,092



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

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 12 2008, 08:04 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



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.

This post has been edited by Christian J: Nov 13 2008, 08:18 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Nov 13 2008, 03:31 AM
Post #3


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



You also have CSS errors.

And there are 9 <br>'s after the <h2>.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
boemboem
post Nov 13 2008, 04:49 AM
Post #4





Group: Members
Posts: 3
Joined: 12-November 08
Member No.: 7,092



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>.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Nov 13 2008, 07:27 AM
Post #5


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



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:

Attached Image

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

Maybe it's the PHP that generates them.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Nov 13 2008, 07:49 AM
Post #6


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



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...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 13 2008, 08:26 AM
Post #7


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



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).

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Nov 13 2008, 01:30 PM
Post #8


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 13 2008, 08:01 PM
Post #9


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 14 2008, 08:15 AM
Post #10


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
boemboem
post Nov 14 2008, 08:36 AM
Post #11





Group: Members
Posts: 3
Joined: 12-November 08
Member No.: 7,092



thank you all, it's strange allright. accept for the diffent styles (wich I will put in a stylesheet later) the site is original.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 14 2008, 03:57 PM
Post #12


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 08:28 PM