wc3 error

T

Terje Sæternes

I get following errors:
Line 53, column 153: entity was defined here

....F"><a href='layout.php?action=showavd&avdid=3' class="avd">

Line 53, column 153: entity was defined here

....F"><a href='layout.php?action=showavd&avdid=3' class="avd">

Line 19, column 74: there is no attribute "HEIGHT"

....="0" cellpadding="0" align="center" height="100%">


And my PHP code for url's is :

<h1><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b><font
color="#FFFFFF"><a href="layout.php?action=showavd&<?php echo
$MM_keepNone.(($MM_keepNone!="")?"&":"")."avdid=".$avd->Fields("AvdID") ?>"
class="avd"><?php echo $avd->Fields("Avd")?></a></font></b></font></h1>

What the hell is wrong with my links?

Can't I set the height of the table to 100%?

Best regards Terje
 
M

Mitja

Terje Sæternes said:
I get following errors:
Line 53, column 153: entity was defined here

...F"><a href='layout.php?action=showavd&avdid=3' class="avd">

Line 53, column 153: entity was defined here

...F"><a href='layout.php?action=showavd&avdid=3' class="avd">

Line 19, column 74: there is no attribute "HEIGHT"

W3C standards want you to use entities (e.g. &lt; instead of just <) even in
urls. So ...showavd&avdid=... should be ...showavd&amp;avdid=...
...="0" cellpadding="0" align="center" height="100%">

Speaks for itself. Table has no "height" attribute.
And my PHP code for url's is :

<h1><font face="Verdana, Arial, Helvetica, sans-serif"
size="1"><b><font color="#FFFFFF"><a
href="layout.php?action=showavd&<?php echo
$MM_keepNone.(($MM_keepNone!="")?"&":"")."avdid=".$avd->Fields("AvdID")
?>" class="avd"><?php echo
$avd->Fields("Avd")?></a></font></b></font></h1>

What the hell is wrong with my links?

Can't I set the height of the table to 100%?

Sure you can. Use CSS.
 
T

Terje Sæternes

Thanks, all errors gone, BUT why wont the 100% height table display correct
in Opera? It works fine in IE. And yes I've set the tableheigt in css with
this code: .hovedtabell{BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none;
BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; height: 100% }

Anyone?

Terje
 
S

SpaceGirl

Just because a browser displays it doesn't make it part of the standard. IE
does *lots* of non standard things, and has lots of bespoke 'extras' which
will never be in the standards. Take scrollbar colouring as an example.
 
W

Whitecrest

Just because a browser displays it doesn't make it part of the standard. IE
does *lots* of non standard things, and has lots of bespoke 'extras' which
will never be in the standards. Take scrollbar colouring as an example.

UH-OH you top posted! I'm telling Mom!!!
 
S

Steve Pugh

SpaceGirl said:

Upside down, full quoted posting fixed. Stop it. Both of you.

Without seeing the whole of the page it's impossible to say but I'd
hazard a guess that the table is the only thing in the page? And that
the height of the content inside the table is less than the height of
the browser window? So 100% in that case would be 100% of the height
of the parent which is body, and 100% of the height of body is the
height of the content, so round in circles we go.
html, body {height: 100%;} may help, but it depends on several other
factors as well.
Just because a browser displays it doesn't make it part of the standard. IE
does *lots* of non standard things, and has lots of bespoke 'extras' which
will never be in the standards. Take scrollbar colouring as an example.

True, but height is part of the standard.

Steve
 
S

SpaceGirl

Just because a browser displays it doesn't make it part of the standard. IE
does *lots* of non standard things, and has lots of bespoke 'extras' which
will never be in the standards. Take scrollbar colouring as an example.

UH-OH you top posted! I'm telling Mom!!!
 
S

SpaceGirl

Steve Pugh said:
Upside down, full quoted posting fixed. Stop it. Both of you.


Without seeing the whole of the page it's impossible to say but I'd
hazard a guess that the table is the only thing in the page? And that
the height of the content inside the table is less than the height of
the browser window? So 100% in that case would be 100% of the height
of the parent which is body, and 100% of the height of body is the
height of the content, so round in circles we go.
html, body {height: 100%;} may help, but it depends on several other
factors as well.


True, but height is part of the standard.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <[email protected]> <http://steve.pugh.net/>

awww, dad!
 
S

Steve Pugh

Steve Pugh said:
Without seeing the whole of the page it's impossible to say but I'd
hazard a guess that the table is the only thing in the page? And that
the height of the content inside the table is less than the height of
the browser window? So 100% in that case would be 100% of the height
of the parent which is body, and 100% of the height of body is the
height of the content, so round in circles we go.

Hmm, actually, which versions of IE and Opera are you using?
IE6 and Opera 7.5 behave identically in both quirks and standards mode
(i.e. in quirks mode they get it wrong and make the table the height
of the window, whilst in standards mode they get it right and make the
table only as high as its contents).

So I'm guessing that either your actual code is more complex or you're
using IE5.x and Opera 7.x with a doctype that triggers standards mode
in the latter.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top