troubles with CSS positioning in different browsers

troubles with CSS positioning in different browsers

am 11.10.2007 13:26:34 von Milan Krejci

hello, could you look at the following link?
http://www.petrucci.cz/_pic_ostatni/PND/pnd.html
have you got any ideas how to position all elements properly?

another thing - why does A:hover not work?

Re: troubles with CSS positioning in different browsers

am 11.10.2007 14:36:11 von a.nony.mous

Milan Krejci wrote:

> hello, could you look at the following link?
> http://www.petrucci.cz/_pic_ostatni/PND/pnd.html
> have you got any ideas how to position all elements properly?

Remove this line:


as it drives IE into Quirks Mode,
and switch to Strict doctype:

"http://www.w3.org/TR/html4/strict.dtd">

Beyond that, I can't answer because you didn't say what is "proper".

> another thing - why does A:hover not work?

You have your CSS assignments in the wrong order.
"LVHA" (mnemonic: Las Vegas Has Animals)

a:link { color: blue; }
a:visited { color: yellow; }
a:hover { color: red; }
a:active { }

--
-bts
-Motorcycles defy gravity; cars just suck

Re: troubles with CSS positioning in different browsers

am 11.10.2007 23:38:28 von dorayme

In article ,
Milan Krejci wrote:

> hello, could you look at the following link?
> http://www.petrucci.cz/_pic_ostatni/PND/pnd.html
> have you got any ideas how to position all elements properly?
>
> another thing - why does A:hover not work?

Your document is a mess generated by God knows what program?

There are pics that are not loading from the server or have been
misnamed, eg,
http://www.petrucci.cz/_pic_ostatni/PND/gif/vitame.gif?

Is this some sort of spacer gif and somehow it is supposed to do
the job whether it bothers to come down from the server or not?

You have something before the doctype declaration which is sure
to confuse.

You have a puzzling character after your a:link {color:blue;?>

You have a wrong markup for the ending of an img tag,

"...align="left" border="0" />", given your doctype

You are using absolute positioning and this tool is a
sophisticated and advanced one needing advanced skills to
implement it successfully. Forget about it for the moment.

--
dorayme