FP Changes My HTML

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I found the following snipet of code that allows me to test for a non-IE
browser. It works as advertised but causes FP 2002 to do some strange things
to my html.

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

When placed in the <head> section, FP moves the </head> to after the </body>
and does not insert code for the theme or shared border.

If I remove the just the above code the </head> remains where it should be
and the theme and shared border work (code is inserted). It would appear that
FP does NOT recognize the above construct as valid code. Why?
 
When placed in the said:
</body>
and does not insert code for the theme or shared border.

That snippet of code doesn't belong in the head section of the page. It
and that's what FP is trying to tell said:
FP does NOT recognize the above construct as valid code.

It's not valid in the head.

--
Murray
--------------
MVP FrontPage


Chevron7 said:
I found the following snipet of code that allows me to test for a non-IE
browser. It works as advertised but causes FP 2002 to do some strange
things
to my html.

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

When placed in the <head> section, FP moves the </head> to after the
</body>
and does not insert code for the theme or shared border.

If I remove the just the above code the </head> remains where it should be
and the theme and shared border work (code is inserted). It would appear
that
FP does NOT recognize the above construct as valid code. Why?
 
OK -- Is there another way to conditionally define css other than what I now
have:

<!--[if !IE]><!-->
<style type="text/css">
/* to make it work in Safari */
..menu2 ul li:hover ul li a:active img {
background:#aaa;
position:relative;
outline:none;
}
</style>
<!--<![endif]-->


Murray said:
When placed in the <head> section, FP moves the </head> to after the
</body>
and does not insert code for the theme or shared border.

That snippet of code doesn't belong in the head section of the page. It
and that's what FP is trying to tell said:
FP does NOT recognize the above construct as valid code.

It's not valid in the head.

--
Murray
--------------
MVP FrontPage


Chevron7 said:
I found the following snipet of code that allows me to test for a non-IE
browser. It works as advertised but causes FP 2002 to do some strange
things
to my html.

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

When placed in the <head> section, FP moves the </head> to after the
</body>
and does not insert code for the theme or shared border.

If I remove the just the above code the </head> remains where it should be
and the theme and shared border work (code is inserted). It would appear
that
FP does NOT recognize the above construct as valid code. Why?
 
In the <head> section of the page:

<![if !IE]>
<style type="text/css">
/* to make it work in Safari */
..menu2 ul li:hover ul li a:active img {
background:#aaa;
position:relative;
outline:none;
}
</style>
<![endif]>

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Chevron7 said:
OK -- Is there another way to conditionally define css other than what I
now
have:

<!--[if !IE]><!-->
<style type="text/css">
/* to make it work in Safari */
.menu2 ul li:hover ul li a:active img {
background:#aaa;
position:relative;
outline:none;
}
</style>
<!--<![endif]-->


Murray said:
When placed in the <head> section, FP moves the </head> to after the
</body>
and does not insert code for the theme or shared border.

That snippet of code doesn't belong in the head section of the page. It
and that's what FP is trying to tell said:
FP does NOT recognize the above construct as valid code.

It's not valid in the head.

--
Murray
--------------
MVP FrontPage


Chevron7 said:
I found the following snipet of code that allows me to test for a
non-IE
browser. It works as advertised but causes FP 2002 to do some strange
things
to my html.

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

When placed in the <head> section, FP moves the </head> to after the
</body>
and does not insert code for the theme or shared border.

If I remove the just the above code the </head> remains where it
should be
and the theme and shared border work (code is inserted). It would
appear
that
FP does NOT recognize the above construct as valid code. Why?
 
When I do as you suggest it resolves the FP issue but the code no longer
works in IE or Mozilla Firefox. It appears that the code may be executed in
IE; no sure what happens in Firefox.

Ronx said:
It is not valid code in the <head> section. The code should be:

<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>

and it goes in the <body> of the page.

<body>
<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>
<p>more text and rest of page</p>
</body>

See
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp

watch for word-wrap in the above link.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Chevron7 said:
I found the following snipet of code that allows me to test for a non-IE
browser. It works as advertised but causes FP 2002 to do some strange
things
to my html.

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

When placed in the <head> section, FP moves the </head> to after the
</body>
and does not insert code for the theme or shared border.

If I remove the just the above code the </head> remains where it should
be
and the theme and shared border work (code is inserted). It would appear
that
FP does NOT recognize the above construct as valid code. Why?
 
IE conditional comments are only supported by IE (which is why they are
called IE conditional comments, I suppose).

What are you expecting to achieve with this?

--
Murray
--------------
MVP FrontPage


Chevron7 said:
When I do as you suggest it resolves the FP issue but the code no longer
works in IE or Mozilla Firefox. It appears that the code may be executed
in
IE; no sure what happens in Firefox.

Ronx said:
It is not valid code in the <head> section. The code should be:

<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>

and it goes in the <body> of the page.

<body>
<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>
<p>more text and rest of page</p>
</body>

See
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp

watch for word-wrap in the above link.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Chevron7 said:
I found the following snipet of code that allows me to test for a non-IE
browser. It works as advertised but causes FP 2002 to do some strange
things
to my html.

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

When placed in the <head> section, FP moves the </head> to after the
</body>
and does not insert code for the theme or shared border.

If I remove the just the above code the </head> remains where it should
be
and the theme and shared border work (code is inserted). It would
appear
that
FP does NOT recognize the above construct as valid code. Why?
 
If you have FireFox set to use the IE engine, you should not see anything,
since the code says "If you are using IE, then do not display the next
line. If you are NOT using IE, then display the next line."
In FireFox, make sure the icon on bottom right corner of the browser window
is the FireFox icon - then you should see the text. If it shows the IE
icon, the text will not be shown.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Chevron7 said:
When I do as you suggest it resolves the FP issue but the code no longer
works in IE or Mozilla Firefox. It appears that the code may be executed
in
IE; no sure what happens in Firefox.

Ronx said:
It is not valid code in the <head> section. The code should be:

<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>

and it goes in the <body> of the page.

<body>
<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>
<p>more text and rest of page</p>
</body>

See
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp

watch for word-wrap in the above link.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Chevron7 said:
I found the following snipet of code that allows me to test for a
non-IE
browser. It works as advertised but causes FP 2002 to do some strange
things
to my html.

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

When placed in the <head> section, FP moves the </head> to after the
</body>
and does not insert code for the theme or shared border.

If I remove the just the above code the </head> remains where it
should
be
and the theme and shared border work (code is inserted). It would
appear
that
FP does NOT recognize the above construct as valid code. Why?
 
I have my page layout defined in an external css. If the browser is not IE I
need to modify my layout slightly to make it work, hence the <!--[if
!IE]><!-->.

Murray said:
IE conditional comments are only supported by IE (which is why they are
called IE conditional comments, I suppose).

What are you expecting to achieve with this?

--
Murray
--------------
MVP FrontPage


Chevron7 said:
When I do as you suggest it resolves the FP issue but the code no longer
works in IE or Mozilla Firefox. It appears that the code may be executed
in
IE; no sure what happens in Firefox.

Ronx said:
It is not valid code in the <head> section. The code should be:

<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>

and it goes in the <body> of the page.

<body>
<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>
<p>more text and rest of page</p>
</body>

See
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp

watch for word-wrap in the above link.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

I found the following snipet of code that allows me to test for a non-IE
browser. It works as advertised but causes FP 2002 to do some strange
things
to my html.

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

When placed in the <head> section, FP moves the </head> to after the
</body>
and does not insert code for the theme or shared border.

If I remove the just the above code the </head> remains where it should
be
and the theme and shared border work (code is inserted). It would
appear
that
FP does NOT recognize the above construct as valid code. Why?
 
If you start the conditional comment with <!--[if !IE] then every browser
will ignore it.
IE will see the code as a conditional comment, and ignore everything up to
the [endif]. Other browsers will see an HTML comment and ignore everything
as well.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Chevron7 said:
I have my page layout defined in an external css. If the browser is not IE
I
need to modify my layout slightly to make it work, hence the <!--[if
!IE]><!-->.

Murray said:
IE conditional comments are only supported by IE (which is why they are
called IE conditional comments, I suppose).

What are you expecting to achieve with this?

--
Murray
--------------
MVP FrontPage


Chevron7 said:
When I do as you suggest it resolves the FP issue but the code no
longer
works in IE or Mozilla Firefox. It appears that the code may be
executed
in
IE; no sure what happens in Firefox.

:

It is not valid code in the <head> section. The code should be:

<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>

and it goes in the <body> of the page.

<body>
<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>
<p>more text and rest of page</p>
</body>

See
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp

watch for word-wrap in the above link.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

I found the following snipet of code that allows me to test for a
non-IE
browser. It works as advertised but causes FP 2002 to do some
strange
things
to my html.

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

When placed in the <head> section, FP moves the </head> to after
the
</body>
and does not insert code for the theme or shared border.

If I remove the just the above code the </head> remains where it
should
be
and the theme and shared border work (code is inserted). It would
appear
that
FP does NOT recognize the above construct as valid code. Why?
 
Oh, yeah! Good call!

--
Murray
--------------
MVP FrontPage


Ronx said:
If you start the conditional comment with <!--[if !IE] then every browser
will ignore it.
IE will see the code as a conditional comment, and ignore everything up to
the [endif]. Other browsers will see an HTML comment and ignore
everything as well.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Chevron7 said:
I have my page layout defined in an external css. If the browser is not IE
I
need to modify my layout slightly to make it work, hence the <!--[if
!IE]><!-->.

Murray said:
IE conditional comments are only supported by IE (which is why they are
called IE conditional comments, I suppose).

What are you expecting to achieve with this?

--
Murray
--------------
MVP FrontPage


When I do as you suggest it resolves the FP issue but the code no
longer
works in IE or Mozilla Firefox. It appears that the code may be
executed
in
IE; no sure what happens in Firefox.

:

It is not valid code in the <head> section. The code should be:

<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>

and it goes in the <body> of the page.

<body>
<![if !IE]>
<h1>You are NOT using Internet Explorer</h1>
<![endif]>
<p>more text and rest of page</p>
</body>

See
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp

watch for word-wrap in the above link.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

I found the following snipet of code that allows me to test for a
non-IE
browser. It works as advertised but causes FP 2002 to do some
strange
things
to my html.

<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

When placed in the <head> section, FP moves the </head> to after
the
</body>
and does not insert code for the theme or shared border.

If I remove the just the above code the </head> remains where it
should
be
and the theme and shared border work (code is inserted). It would
appear
that
FP does NOT recognize the above construct as valid code. Why?
 
Back
Top