SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Oct 2003
    Location
    South Africa
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    resize an input box using a style sheet in netscape

    Hi,

    I'm desperatly seeking help. I have a huge problem with Netscape. I need to know how to resize an input box using a style sheet in Netscape.
    Also wot codes can we used Netscape that are acceptable (referring to style sheets)

    Please an immediate response is welcomed.

    Thanks a ton

  2. #2
    SitePoint Zealot
    Join Date
    Sep 2003
    Location
    Birmingham UK
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    using an inline style, you could use the width property:
    <input name="blah" type="text" style="width:145px;" size="15" />

    or seperate:
    .mysize { width: 250px;}
    with
    <input name="blah" type="text" class="mysize" />

    works in both IE and Netscape.

  3. #3
    SitePoint Member
    Join Date
    Oct 2003
    Location
    South Africa
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have another problem, does anybody know wot the font % size in netscape equivalent to 10px, 11px, 12px, 13px, 14px and 18px is?

    thx

  4. #4
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A percentage size will be relative to whatever the user has defined as their preferred size. If they've set their text size to 10px, then 140% will be 14px. If the user has set their text size to 14px, then 140% will be 19.6px.

    If you want to force the text size to 10px, then you'll just have to specify 10px and live with the consequences.


Bookmarks

Posting Permissions

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