How to apply width style to <a>

Discussion in 'HTML' started by Disco Octopus, May 6, 2004.

  1. Hi,

    How would I get this to work in Mozilaa browsers?....

    <html>
    <head>
    <style type="text/css">
    .fsuhcikt {width:100px; border:1px solid red;}
    </style>
    </head>

    <body>
    <p>
    <a class="fsuhcikt" href="squeezmee.html">asdf</a>
    </p>
    </body>
    </html>






    In IE and Opera, I get the 100px wide link, but in Mozilla, it does not
    resize at all.
    Thanks
    Disco Octopus, May 6, 2004
    #1
    1. Advertising

  2. *Disco Octopus* wrote:
    > How would I get this to work in Mozilaa browsers?....
    >
    > <html>
    > <head>
    > <style type="text/css">
    > .fsuhcikt {width:100px; border:1px solid red;}
    > </style>
    > </head>
    > <body>
    > <p>
    > <a class="fsuhcikt" href="squeezmee.html">asdf</a>
    > </p>
    > </body>
    > </html>


    display: block;

    (BTW interesting class-name anagram)
    --
    Andrew Urquhart
    - FAQ: www.html-faq.com
    - Archive: www.google.com/groups?q=alt.html
    - My reply address is invalid, use: www.andrewu.co.uk/contact/
    Andrew Urquhart, May 6, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?bnN2a2V5YW4=?=

    how to apply css class style to web controls

    =?Utf-8?B?bnN2a2V5YW4=?=, Feb 20, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,674
    Chris Jackson
    Feb 20, 2004
  2. Hardy Wang
    Replies:
    2
    Views:
    14,824
    Hardy Wang
    Apr 14, 2004
  3. AndrewF
    Replies:
    1
    Views:
    765
    Bruce Barker
    Oct 10, 2005
  4. Stefan Siegl
    Replies:
    1
    Views:
    961
    Marrow
    Jul 18, 2003
  5. Ken Varn
    Replies:
    0
    Views:
    443
    Ken Varn
    Apr 26, 2004
Loading...

Share This Page