mystery gap... :)

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
coos
Forum Newbie
Posts: 8
Joined: Mon Aug 18, 2003 9:45 am
Location: Scarborough, UK
Contact:

mystery gap... :)

Post by coos »

right guys, little detective job for you!

check out

http://www.rktx.co.uk/Rktx/pages/acts.p ... show=diary

and tell me why there's a random gap in the div of the page...

I removed all of the whitespace between 'td' tags, and there's no whitespace between the opening and closing echo tags

ie.:

echo'<td>a table cell</td>'; pretty much as it should be.

The resulting html code is pretty messy, but cheers for looking!

There's a bonus prize if you can tell me why there are little squares instead of apostrophes on the home page as well!

disclaimer: Coos is a poor student. There is o bonus prize, but you will be hailed a Daddy. Oh yes.

Cheers guys!

;)

Coos[/url]
will
Forum Contributor
Posts: 120
Joined: Fri Jun 21, 2002 9:38 am
Location: Memphis, TN

Post by will »

i'm guessing you are copying the text from MS Word or something and then pasting it into a web form or whatever, no? If so, then the problem with the apostrophes is Word's use of "smart quotes" (which are in fact grammatically correct I believe). They are not part of the standard ASCII character set, so they don't display in web pages. you have two choices - either replace them with standard apostrophes or with ’

i'm not sure what gap you're talking about.. could you be more specific?
User avatar
greenhorn666
Forum Commoner
Posts: 87
Joined: Thu Aug 14, 2003 7:14 am
Location: Brussels, Belgium

Post by greenhorn666 »

table border="0" cellspacing="0" cellpadding="0"

Could this solve your problem?
But again, not quite sure what the exact problem is... But seems more HTML than php to me :P
User avatar
coos
Forum Newbie
Posts: 8
Joined: Mon Aug 18, 2003 9:45 am
Location: Scarborough, UK
Contact:

thanks for the help!

Post by coos »

Thanks so far guys... the plot thickens!

the text WAS copied from MSWord, given to me by the owner of the company like that (damn you Microsoft!) ha ha!

I'll pull it out, and run it through notepad- that usually strips any formatting out!

Someone also mentioned that the page is set to a Latin 8-bit encoding?

Gonna research that further to get it to Western European (at least all the Spanish visitors will have been loving it so far!)

The RANDOM GAP thing is really wierd.

when I first view an Act page, like http://www.rktx.co.uk/Rktx/pages/acts.p ... show=diary

there's a HUGE gap above the first line within the <div> tag. now the HTML code seems to look ok, and a refresh usually sorts it out, but as you can imagine it's doing my head in!

If you guys aren't sure, can you recommend a good HTML forum: most of the ones I find are pretty poo!

Cheers again...

Mark
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

I was just about to comment that it looked fine, but thenremembered that I refreshed. I did notice the gap...

Have no definite answer either. I'm no master in good/bad stylesheets either, but what happens if "width:700; height:400;" is changed to "width:700px; height:400px;" ?

Using no px,cm,pt (whatever) makes the browser calculate the actual width. Using px you'll get a fixed width/heigth. Just a thought.
User avatar
coos
Forum Newbie
Posts: 8
Joined: Mon Aug 18, 2003 9:45 am
Location: Scarborough, UK
Contact:

Thanks Jam!

Post by coos »

nice one, buddy, I'll give it a try. There'll be another post on here this afternoon if u wanna see if it works!

again, cheers for checking it out for me.

Coos
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Hello Scarborough!!!

Just noticed you live pretty near :O)
User avatar
coos
Forum Newbie
Posts: 8
Joined: Mon Aug 18, 2003 9:45 am
Location: Scarborough, UK
Contact:

woohoo!

Post by coos »

Hey Bech100, where u at?

The waves are looking pretty good today!

ha ha!
User avatar
coos
Forum Newbie
Posts: 8
Joined: Mon Aug 18, 2003 9:45 am
Location: Scarborough, UK
Contact:

durrrrrr

Post by coos »

sorry, York. worked it out. (Newbie, here- soory guys!)

whadda ya make of the site, then Bech?

Got a few little bugs, but I'm well chuffed to have shifted those dodgy squares!

As soon as the random gap is sorted I'll be loving it!

Results of dimensions from 400 to 400px etc. will be up at 15:00GMT if anyone wants to keep up!

heh heh!

Laterz, guys
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Re: Thanks Jam!

Post by JAM »

coos wrote:nice one, buddy, I'll give it a try. There'll be another post on here this afternoon if u wanna see if it works!
again, cheers for checking it out for me.
Coos
Of course post it. Now I need to know also. =)
User avatar
coos
Forum Newbie
Posts: 8
Joined: Mon Aug 18, 2003 9:45 am
Location: Scarborough, UK
Contact:

LATE REPLY!

Post by coos »

sorry it's late...

hasn't been as sucessful as I'd hoped. :(

Am thinking that most of the problems arise from the use of

HTML: {
</td>
</tr>
</table>
}

rather than

HTML: {
</td></tr></table>
}

Internet Explorer doesn't mind the odd one, but with the serious amount of nested tables I'm using, it throws a Benny.

Mozilla, on the other hand, takes it like a b1tch! ha ha!

removing the trailling whitespace seems to have KINDA worked, but not 100%- and I won't rest until it does!

Any more help is greatly appreciated.

Any more comments? Fire away!

in the meantime,

http://www.rktx.co.uk

Local bands heading for the global market... one step at a time!

:D
Post Reply