Problem with background

  • Mariams30
  • Newbie
  • Newbie
  • Mariams30
  • Posts: 12

Post 3+ Months Ago

Hi, I'm going crazy trying to find a solution to this problem. In some pages, the background stops when the footer appear but in some others, the background continues under the footer and I don't know why. I may not be explaining myself perfectly, so I leave a couple of examples to show you.

http://www.cairnsunlimited.com/boathire.htm

http://www.cairnsunlimited.com/qantas.htm

Could anybody help me find out where the mistake is? your help is much appreciated.

cheers,
Maria[/url]
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8397
  • Loc: USA

Post 3+ Months Ago

Something I noticed in your source code. Doubt it's the problem concerning the background though. i doubt the following "[CDATA[" is supposed to be that way. Maybe "[CDATA]"?

Code: [ Select ]
<script type="text/javascript"><!--//--><![CDATA[//><!--


Now, here is to solve the problem. Its very easy actually.

Code: [ Select ]
background-image: url('images/background5.gif');


Do you see that code? REMOVE IT! It's in the BODY section and it would be as long as the body. NOT A GOOD IDEA. Put that in a div and wrap everything behind that div. NOT INTO THE BODY1
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Code: [ Select ]
<![CDATA[ ..... ]]>

is the proper syntax for specifying character data in XML. There's nothing wrong with it being there, although it is unnecessary for the script block. Looks like the result of a poor code generator...
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8397
  • Loc: USA

Post 3+ Months Ago

Well, the CDATA wasn't closed with the "]". I thought I'd mention that. What does CDATA do anyway?
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Bogey wrote:
Well, the CDATA wasn't closed with the "]". I thought I'd mention that.

Sure it was:
Code: [ Select ]
//--><!]]></script>

Bogey wrote:
What does CDATA do anyway?

It tells the XML parser not to parse the text inside of it as XML.

http://www.w3schools.com/xml/xml_cdata.asp
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8397
  • Loc: USA

Post 3+ Months Ago

Oh, so it was closed... now it makes sense.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Yep ;)

Anyways, back to the original topic. You're code is definitely a little out of whack, Mariams. I'd start by addressing the validation errors on each page and working those out before attempting to fix the design (and fixing the HTML errors will help you with the latter in the long run).

Here are the errors on your first page. Fix the first ones in the list and work down, as fixing some may fix others as well.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8397
  • Loc: USA

Post 3+ Months Ago

Know what I noticed about some pages? Some pages can't be validated with encoding of utf-8 on that site. I posted the page that doesn't allow that encoding on another thread made by mariams30
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Haven't run into that problem. UTF-8 is most definitely capable of being validated. I do know that the second link he posted leads to a non-existent file (404), which obviously can't be validated.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8397
  • Loc: USA

Post 3+ Months Ago

http://validator.w3.org/check?uri=http% ... ne&group=0

of

http://www.cairnsunlimited.com/capetribulation.htm
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

The validator defaults to UTF-8 when no encoding is specified. Mariams' document contains an invalid character that doesn't map to UTF-8.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8397
  • Loc: USA

Post 3+ Months Ago

What do you mean?

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: No registered users and 41 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.