This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > March 2004 > Couple of simple problems





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 Couple of simple problems
grumpy2626

2004-03-31, 7:28 am

Can anyone help with these please?

<font color="#336699"><b><font size="4"><img src="BerkleyHomes.jpg"
width="125" height="64"><br>
<br>
Gives me a warning of "in HTML 4.0, FONT is deprecated. It may become
obsolete in future versions, consider using style sheets instead.

<p><font face="Arial, Helvetica, sans-serif" size="-7" color="#000033"><br>
<img src="CaseStudy.jpg" width="760" height="89"><br>
Copyright Dragon Infrastructure Solutions 2004</font></p>
Gives me a warning that "-7" is not valid for the "size" attribute in any of
the currently active versions.

Suggestions for fixing the above. I realise the first problem may be fixed by
using a style sheet but how do I then amend the present site to remove the
error and add a style sheet!

All help much appreciated.

Regards,

Bob

Dan Vendel *GOF*

2004-03-31, 7:28 am

grumpy2626 wrote:
> Can anyone help with these please?
>
> <font color="#336699"><b><font size="4"><img src="BerkleyHomes.jpg"
> width="125" height="64"><br>
> <br>
> Gives me a warning of "in HTML 4.0, FONT is deprecated. It may become
> obsolete in future versions, consider using style sheets instead.
>
> <p><font face="Arial, Helvetica, sans-serif" size="-7" color="#000033"><br>
> <img src="CaseStudy.jpg" width="760" height="89"><br>
> Copyright Dragon Infrastructure Solutions 2004</font></p>
> Gives me a warning that "-7" is not valid for the "size" attribute in any of
> the currently active versions.
>
> Suggestions for fixing the above. I realise the first problem may be fixed by
> using a style sheet but how do I then amend the present site to remove the
> error and add a style sheet!
>
> All help much appreciated.
>
> Regards,
>
> Bob
>



Font tags are deprecated, but I guarantee that browsers will happily
render them another 20 years. So if you feel uncomfortable starting with
CSS (which you MUST if you're the least serious about web design), you
can use it without worries for the time being.

"-7" means that the size should be 7 notches smaller than the user's
default size which seems a bit steep. Give it a percentage or pixels
size instead.

HTH

--
Dan Vendel - *GOF*
Contact me directly at http://contact.vendel.info
Formmail tutorial at http://www.vendel.info/tut/formmail.html
Nested table demonstration at http://www.vendel.info/tabletut/
Search Engine Optimization & Rank Control Utility at http://awr.vendel.info
Search Dreamweaver newsgroup at http://www.vendel.info/google.html
Nadia Perre

2004-03-31, 7:28 am

Hi Bob,
Yes, it is true, the <font> tag is deprecated and should not be used.
You should definitely remove these tags and use a stylesheet to declare your
font style and sizes and link to this stylesheet.

You can remove these by going to Commands > Clean up HTML > specific tags.

You would then either place the styles in the head of your document or link
to an externalised stylesheet - which a much better method btw.

Maybe this site may help a little with getting a stylesheet linked on your
pages:
http://www.mako4css.com/BasSheet.htm

Have a look around the site listed above, there is a lot of good information
there for you.

And you wrote:

| <font color="#336699"><b><font size="4"><img src="BerkleyHomes.jpg"
| width="125" height="64">

Not sure why you woud have a font tag around an image anyway - that isn't
needed surely (unless you have some text there that you have cut from your
post :)

Hope this helps some.

--
Nadia
-----------------
:DHTML Dropdown Menu Template now available:
http://www.Need-a-Template.com
Templates: Free Nav Bar Sets:
:Resources : Ecommerce : SEO Articles :
http://www.DreamweaverResources.com
-----------------


"grumpy2626" <webforumsuser@macromedia.com> wrote in message
news:c4e83g$o9q$1@forums.macromedia.com...
| Can anyone help with these please?
|
| <font color="#336699"><b><font size="4"><img src="BerkleyHomes.jpg"
| width="125" height="64"><br>
| <br>
| Gives me a warning of "in HTML 4.0, FONT is deprecated. It may become
| obsolete in future versions, consider using style sheets instead.
|
| <p><font face="Arial, Helvetica, sans-serif" size="-7"
color="#000033"><br>
| <img src="CaseStudy.jpg" width="760" height="89"><br>
| Copyright Dragon Infrastructure Solutions 2004</font></p>
| Gives me a warning that "-7" is not valid for the "size" attribute in any
of
| the currently active versions.
|
| Suggestions for fixing the above. I realise the first problem may be
fixed by
| using a style sheet but how do I then amend the present site to remove the
| error and add a style sheet!
|
| All help much appreciated.
|
| Regards,
|
| Bob
|

grumpy2626

2004-03-31, 8:28 am

Nadia,

Many thanks for the excellent help abd guidance.

Bob
Nadia Perre

2004-03-31, 9:28 am


"grumpy2626" <webforumsuser@macromedia.com> wrote in message
news:c4ec0q$af$1@forums.macromedia.com...
| Nadia,
|
| Many thanks for the excellent help abd guidance.
|
| Bob.


Glad to be of help. :)

--
Nadia
-----------------
:DHTML Dropdown Menu Template now available:
http://www.Need-a-Template.com
Templates: Free Nav Bar Sets:
:Resources : Ecommerce : SEO Articles :
http://www.DreamweaverResources.com
-----------------






Sponsored Links


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