Closed Thread Icon

Preserved Topic: Weird..very weird Pages that link to <a href="https://ozoneasylum.com/backlink?for=20504" title="Pages that link to Preserved Topic: Weird..very weird" rel="nofollow" >Preserved Topic: Weird..very weird\

 
Author Thread
Lala
Bipolar (III) Inmate

From: Montreal, Canada
Insane since: Feb 2002

posted posted 05-12-2002 01:13

I got a stupid problem, the thing is im using an image as a template and i want it to be stretchable (im using a inline style to repeat the image withing a td), but i dont know why it only works if the table border its set up to 1, why is it doing that....hmmm maybe i have a typo that im not seeing...

<html>
<head>
<title> </title>


</head>
<body TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" leftmargin="0" rightmargin="0">


<table cellspacing="0" cellpadding="0" border="1" width="100%" >
<tr>

<td style="background-image : URL(1.jpg); background-repeat : repeat;"></td>

<td width="760px"><img src="Odycopy.jpg" align="center"></td>
<td style="background-image : URL(1.jpg); background-repeat : repeat;"></td>

</tr>

</table>

</body>
</html>

http://www.domainepetitsfruits.com/_themes/ody.html


100 bugs

Lala



maninacan
Paranoid (IV) Inmate

From: Seattle, WA, USA
Insane since: Oct 2001

posted posted 05-12-2002 01:35

Well I only see two things.

1: You have quotes around a lot of things that don't need quotes, which can be hazardous.
2: You have the width attribute set to 760px, and it should be set to 760.

So I'd rewrite the code like this:

<html>
<head>
<title> </title>


</head>
<body TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 leftmargin=0 rightmargin=0>


<table cellspacing=0 cellpadding=0 border=1 width="100%" >
<tr>

<td style="background-image : URL(1.jpg); background-repeat : repeat;"></td>

<td width=760><img src="Odycopy.jpg" align=center</td>
<td style="background-image : URL(1.jpg); background-repeat : repeat;"></td>

</tr>

</table>

</body>
</html>


kewl

Mad Scientist

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-12-2002 01:51

The usage of quotes is perfectly fine. But the usage of "px" outside a style sheet is incorrect.

Overall, I'd say you need to brush up on your syntax... for instance, I'm not positive, but isn't "url" inside style sheets supposed to be lowercase?

Anyway, you might want to try putting some content in those TD tags, even if it's just a single pixel gif or an &nbsp;.

Lala
Bipolar (III) Inmate

From: Montreal, Canada
Insane since: Feb 2002

posted posted 05-12-2002 02:05

It had nothing to do with the quotes, after i put something between the td tags... it works

100 papillons

Lala


Lala
Bipolar (III) Inmate

From: Montreal, Canada
Insane since: Feb 2002

posted posted 05-12-2002 02:06

I forgot to thank you guys

100 Smiles

Lala

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-12-2002 02:12

You're welcome.

BTW, when I said "... or an ." I meant to say "... or an &amp;nbsp;." but a UBB bug messed that up =)

maninacan
Paranoid (IV) Inmate

From: Seattle, WA, USA
Insane since: Oct 2001

posted posted 05-12-2002 02:54

I just mean that using that many quotes is hazardous, because then it's easier to miss one, and harder to find the one you missed. I'm not saying that it's a problem that you used those quotes

kewl

Mad Scientist

Lala
Bipolar (III) Inmate

From: Montreal, Canada
Insane since: Feb 2002

posted posted 05-12-2002 03:27

True, it could be hazardous to use many quotes, but im a quote freak, but i always open and close them and then start typing between them , anyways thanks for taking some time to reply my threads MERCI!!

Ps. ill change my .. for the good &nbsp (i had forgotten about it)

100 quotes

Lala

maninacan
Paranoid (IV) Inmate

From: Seattle, WA, USA
Insane since: Oct 2001

posted posted 05-12-2002 04:08

I used to use quotes for everything, but then I stopped. I still use them more than needed, but oh well, as long as you're careful it's not a problem


kewl

Mad Scientist

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-12-2002 05:23

In XHTML, as with all XML languages, quotes are required around *every* attribute value, including both strings and numbers. Just keep that in mind =)

Note also, since this is another common HTML habit people have, that in XHTML all tags must be lowercase.

Lucky for me, these are two habits that I picked up by myself just because I preferred them =)

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 05-12-2002 07:06

Damn Slime beat me to it I had to rid myself of the no quotes habit just to try to start conforming to the XHTML spec (I'm not perfect but I try to meet the easy req's) I also have always used all lowercase for my HTML I think it's from the old all Uppercase is shouting in chat etc.



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

maninacan
Paranoid (IV) Inmate

From: Seattle, WA, USA
Insane since: Oct 2001

posted posted 05-12-2002 07:11

I use all uppercase for my HTML, cause it stands out more from other languages, which generally want lowercase stuff. But ya, after using javascript for a while and then learning php I got like 10 errors in every bit of code because of no ; There's always something new to adjust to with a new language, and it's usually hard.

kewl

Mad Scientist

« BackwardsOnwards »

Show Forum Drop Down Menu