This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Webmaster forum > November 2006 > problem getting image or text on top





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author problem getting image or text on top
Laura25

2006-11-19, 7:58 pm

Hi everyone,


I have this problem with firefox browser only. I can'y get my images or text
on the top of my page without any space on firefox browser only. On explorer
no problem. I have aprox. 10 pix space on the top of my page that I want to
eliminate.

Please see my test page with explorer and firefox :
http://www.skiprocanada.com/test2.htm

Many thanks for your help

L


Karl Groves

2006-11-19, 7:58 pm

"Laura25" <laura25@nomail.com> wrote in
news:VR06h.8764$tP.2521@read2.cgocable.net:

> Hi everyone,
>
>
> I have this problem with firefox browser only. I can'y get my images
> or text on the top of my page without any space on firefox browser
> only. On explorer no problem. I have aprox. 10 pix space on the top of
> my page that I want to eliminate.
>
> Please see my test page with explorer and firefox :
> http://www.skiprocanada.com/test2.htm
>
> Many thanks for your help


Start here:
http://validator.w3.org/check?uri=h...iprocanada.com%
2Ftest2.htm





--
Karl Groves
www.karlcore.com
Matt Probert

2006-11-19, 7:58 pm

On Mon, 13 Nov 2006 11:14:43 -0500, "Laura25" <laura25@nomail.com>
wrote:

>Hi everyone,
>
>
>I have this problem with firefox browser only. I can'y get my images or text
>on the top of my page without any space on firefox browser only. On explorer
>no problem. I have aprox. 10 pix space on the top of my page that I want to
>eliminate.


The topmargin attribute when applied to the <body> tag doesn't work.

Instead use a separate CSS file with the command

BODY
{
margin-top:0;
}

and a plain <body> within the html page.

Oh, you'll want to add your body background image command to the CSS
file also

BODY
{
margin-top:0;
background-image: url(images/background3.jpg);
}


Matt


--
Woe to him that willfully innovates, while ignorant of the constant.
http://www.probertencyclopaedia.com
John Hosking

2006-11-19, 7:58 pm

Laura25 wrote:
> Hi everyone,


Hi Laura

> I have aprox. 10 pix space on the top of my page that I want to eliminate.
>
> Please see my test page with explorer and firefox :
> http://www.skiprocanada.com/test2.htm


Not to ignore the other responses you've received, but here's an answer
to your specific question (meaning, I'm ignoring any other problems).

Your page simplifies to this HTML:

<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<p>this is a test - I want this text to be on top with no space</p>
</td>
</tr>
</tbody>
</table>

Remove the <p></p> markup, and your spacing disappears. Browsers provide
a certain spacing for <p>s and <div>s, and you don't want that here. You
can leave your text in the <td>, because it's the table cell data.

It begs the question of whether it really *is* tabular data...

--
John
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews