Results 1 to 7 of 7

Thread: Changing link size with HTML?

  1. #1
    Magic Toaster Ariel's Avatar
    Join Date
    Feb 2001
    Location
    Aussieland.
    Posts
    285

    Default Changing link size with HTML?

    Would anyone here know if there's a way of changing the font size of an individual link, as part of its HTML tag? Like, say...

    <--- a href="blah.html" font="size:8pt" --->

    Google isn't being helpful, and my HTML is really, really rusty. I can't use CSS, and just changing the regular font tags outside the link isn't working, either. Could anyone help me out, please?

  2. #2
    i n v i s i b l e Tech Admin o_O's Avatar
    Join Date
    Jun 2001
    Location
    New Zealand
    Posts
    2,957
    Blog Entries
    1

    FFXIV Character

    Humphrey Squibbles (Sargatanas)

    Default

    The best way I can think of to do it is to use a font tag in addition to the anchor tag:
    <<b></b>font face="Tahoma" size="8"><<b></b>a href="bla.htm">Hi there<<b></b>/a><<b></b>/font>

    I'm not sure if that's what you're looking for though.

    Why can't you use CSS?

    EDIT: Whoops, I had <&lt;b>&lt;/b>font face="Tahoma" size="8"><&lt;b>&lt;/b>a href="bla.htm">Hi there&lt;/a>&lt;/font>
    instead of <&lt;b>&lt;/b>font face="Tahoma" size="8"><&lt;b>&lt;/b>a href="bla.htm">Hi there&lt;&lt;b>&lt;/b>/a>&lt;&lt;b>&lt;/b>/font></pre>

    I don't know why I didn't just use the <pre>&lt;pre></pre> tag.

    EDIT 2: *Fixes edit*
    On a side note I don't know why I didn't use &<b></b>lt; either.
    Last edited by o_O; 06-15-2004 at 10:28 AM.

  3. #3
    Your very own Pikachu! Banned Peegee's Avatar
    Join Date
    Mar 2001
    Posts
    19,488
    Blog Entries
    81

    Grin

    <font face="Tahoma" size="8"><a href="bla.htm">Hi there</a></font>

    you didn't close your tags. It works

    <xmp>
    <font face="Tahoma" size="8"><a href="bla.htm">Hi there</a></font>
    </xmp>

  4. #4
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    The font tag is deprecated. You shouldn't use it. If by "can't use CSS" you mean that you don't know how to do it, then I'll show you. There isn't really any reason you can't use CSS, since all modern browsers that I know of support it fine. Using the font tag is considered outright wrong by people today. Unless this is a homework assignment or something and your teacher is demanding that you use no CSS, you should use CSS.

    Code:
    <a href="blah" style="font-size: 25px;">Blah</a>
    <a href="blah" style="font-size: 25px;">Blah</a>

  5. #5
    Last Exile Baloki's Avatar
    Join Date
    Sep 2003
    Location
    Dreaming a dream~
    Posts
    8,425
    Articles
    5
    Blog Entries
    2

    FFXIV Character

    Baloki Kyuu (Sargatanas)
    Contributions
    • Former Senior Site Staff

    Default

    If you wanna change the type of font and colour as well

    Also if you use pt instead of px you can then judge text sizes via using Word as it stands for point


    Code:
    <a href="blah" style="font-size: 25pt; font-face:Arial; color:red;">Blah</a>
    <a href="blah" style="font-size: 72pt; font-face:Arial; color:red;">Blah</a>
    FOA

  6. #6
    Magic Toaster Ariel's Avatar
    Join Date
    Feb 2001
    Location
    Aussieland.
    Posts
    285

    Default

    It was for a signature. I didn't know that including that in the link's tag was part of using CSS. I always thought using CSS meant using stylesheets. *dies* Changing the font tag outside the link wasn't working, but thanks for the advice, anyways.

    Those CSS tags are working. Thanks for the help! ^_^

  7. #7
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    Among other things, using external stylesheets and using inline style="" tags are both CSS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •