Professional Web Applications Themes

Appearance of Web Form controls in non-IE browsers - ASP.NET General

Just starting with ASP.Net, sorry in for the basic question. All my Web Form controls (text boxes, combo boxes, data grids, etc.) appear totally different when viewed in any browser other than IE: differt size, background, and borders. Is there an easy way to achieve consistency between how the controls look in IE and, say, Netscape. Many thanks in advance....

  1. #1

    Default Appearance of Web Form controls in non-IE browsers

    Just starting with ASP.Net, sorry in for the basic
    question.

    All my Web Form controls (text boxes, combo boxes, data
    grids, etc.) appear totally different when viewed in any
    browser other than IE: differt size, background, and
    borders. Is there an easy way to achieve consistency
    between how the controls look in IE and, say, Netscape.

    Many thanks in advance.
    Alex Guest

  2. #2

    Default Re: Appearance of Web Form controls in non-IE browsers

    Alex,

    The easiest way to do this is to set the TargetSchema property of the page
    object.

    You can do this in design view. Set the property window's drop down to
    doent and you'll see the TargetSchema property in the list. You can set a
    page's output to target older browsers if you want.

    If you are targeting newer browsers (netscape 7.0, IE6, opera's latest
    version, etc.) They should all appear pretty similar. My site for example
    appears exactly the same in all and my target schema is set for internet
    explorer 5.0.

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzche


    "Alex" <com> wrote in message
    news:010001c363af$78190c80$gbl... 


    S. Guest

  3. #3

    Default Re: Appearance of Web Form controls in non-IE browsers

    Justin -

    Thanks for your reply. I've checked my TargetSchema
    property, and it is indeed set to IE5. But the size of my
    text boxes jumps significantly from one browse to
    another. Could you think of something else? Otherwise,
    thanks again for trying to help out.

    Alex
     
    property of the page 
    drop down to 
    list. You can set a 
    opera's latest 
    site for example 
    set for internet 
    >
    >
    >.
    >Thanks for[/ref]
    alex Guest

  4. #4

    Default Re: Appearance of Web Form controls in non-IE browsers

    Alex you might be able to do something like (maybe in Page_Load) ...

    Textbox11.Attributes.Add("style",
    "width:160px;left:144px;top:40px;position:absolute ;")

    Button4.Attributes.Add("style",
    "height:24px;width:76px;left:312px;top:40px;positi on:absolute;")


    It can be a pain doing lots of controls, but renders better in Netscape etc
    than without.
    Hope this helps
    Graeme

    "Alex" <com> wrote in message
    news:010001c363af$78190c80$gbl... 


    Sabre Guest

  5. #5

    Default Re: Appearance of Web Form controls in non-IE browsers

    Alex wrote:
     

    For some controls, there is a "columns" property that works more
    consistently across broswers than the width property. The number
    corresponds to the number of characters to show in the box. To make it
    work, you must leave the width property blank.

    Steven Guest

Similar Threads

  1. Appearance in different browsers
    By gcovert in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: June 22nd, 06:17 PM
  2. form controls
    By will5001 in forum Web Design
    Replies: 3
    Last Post: June 20th, 03:05 AM
  3. flash form: how to align form controls in table manner
    By jshaffner in forum Macromedia ColdFusion
    Replies: 3
    Last Post: February 18th, 07:35 PM
  4. Viewing Web Controls in different browsers.
    By Teemu Keiski in forum ASP.NET Building Controls
    Replies: 0
    Last Post: August 17th, 07:17 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139