1
tedsmith
What's wrong with my html?
  • 2005/3/30 22:44

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Can you look at my 'About Us' html page that I've currently got set as a document in WF-Channel :

My About Page

(Excuse the cheesy photos)

Can anyone tell me why on earth there's a massive gap between the title at the top, and the start of the actual text and pictures?

I've created the file in Dreamweaver, and it looks fine when previewed in both IE and MF and it looks fine in DW of course. But when I upload it and tell WF-Channel to use it, I get this huge gap at the top between the title and the data. I've tried telling WF-Channel to 'clean the html on import' and I've tried storing it and not storing it in the database. Storing in the database makes it worse, and cleaning the html doesn't appear to have had any effect. It's not cached.

Is it the problem to do with my theme, the module, or my html page?

Any help much appreciated.

Thanks

Ted

2
tjnemez
Re: What's wrong with my html?
  • 2005/3/30 22:53

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey ted,

not sure whats up but, one thing i noted was the table width of 719px vs 319px

there is a lot of </br>(s)when i view source

3
just4fun
Re: What's wrong with my html?
  • 2005/3/30 23:03

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


this is why...

<table height="1537" width="719" border="0">

              <!-- 
comment or delete next lines //-->
              
<tr>
                <
td><br>
              <!-- 
upto here //-->

                  
<!--DWLayoutTable-->
                  <
br>
                  <
tbody>
                    <
tr>

4
tedsmith
Re: What's wrong with my html?
  • 2005/3/31 11:07

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Mmmm, confusing - those br tags are not what I've put in there. This is my html direct from the file itself :

<body>
<
table width="719" height="1537" border="0">
  <!--
DWLayoutTable-->
  <
tr
    <
td width="319" rowspan="2"><div align="center"><img src="../../../images/ted_smith_xoops.jpg" width="234" height="303" border="2"></div></td>


As you can see, it differs considerably from the 'View Source' that the browser interprets.

???

5
Bassman
Re: What's wrong with my html?
  • 2005/3/31 11:34

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I seem to remember that this is a known issue with modules of this type, but I can't remember what the fix is :( sorry..... I tried to find it myself once because I was having the same problem.

6
tedsmith
Re: What's wrong with my html?
  • 2005/3/31 12:57

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


D'oh! I've posted the question on WF-Projects.com anyway so maybe they can shed some light on it as it is one of their modules, so they may know about the problem. Hopefully!!

7
m0nty
Re: What
  • 2005/3/31 13:15

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


the quick but annoyingly done fix is to remove spaces in between lines and tags etc..

ie

<body>
<
table width="719" height="1537" border="0">
  <!--
DWLayoutTable-->
  <
tr
    <
td width="319" rowspan="2"><div align="center"><img src="../../../images/ted_smith_xoops.jpg" width="234" height="303" border="2"></div></td>


change to:

<body><table width="719" height="1537" border="0"><tr><td width="319" rowspan="2"><div align="center"><img src="../../../images/ted_smith_xoops.jpg" width="234" height="303" border="2"></div></td>


messy i know, but it works in most cases..

8
Shine
Re: What
  • 2005/3/31 13:28

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


Jep,...these spaces are the problem causers. If you use table lay-out, you have to put everything behind eachother. Up until now I encounter this within every XOOPS module.

There is a handy freeware programm which compresses your html files. Which makes it easier........
absolute html compressor

Grtz., Shine

9
tedsmith
Re: What
  • 2005/3/31 15:37

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Well you leanr something new every day!! I had no idea that the white space in HTML made any difference to anything! Still, I used the compressing tool you suggested (absolute html compressor) and it worked a treat! 73% compression, and now all is well again.

Thanks very much guys - enligtening as always

Login

Who's Online

218 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 218


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits