Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Nov 2002
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    css & forms question

    How do I go about adjusting a drop down box with css? I don't want colours inside the box to change, only the size of the drop down box and it's outline. Thanks.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    from what i remember select boxes are quite akward to style more than colours and fonts... i dont think i had any sucsess with borders. and to change the length of the box that drops down you would have to change the size of the top select bit:

    <select style="width: 275px">

    hopefully someone will correct me if i'm wrong...
    redhead

  • #3
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: css & forms question

    Originally posted by craighj
    it's outline.
    the outline, i think you mean the border?
    that cannot be controlled with css, except for in a few browsers.
    but the most commonly used will not see it.

    style="border:3px outset red"

    and, that works fine redhead

  • #4
    New Coder
    Join Date
    Nov 2002
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yep, sorry I did mean border. Thanks for the replies

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Re: css & forms question

    Originally posted by cg9com
    and, that works fine redhead
    hmmmm.... proved wrong again cg9: what browser are you using? i just tried it again and it still didnt show a coloured outline................
    redhead

  • #6
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    in IE the border style wont be recognized, but in moz1.1b it will recognize it, thats why i said it CAN work.

    being proved wrong is a good thing
    how else will you know?

    oh and what browser am i using?
    netscape 7
    K-meleon 0.6.5
    MSIE 6.00.2600.0000
    Opera 6.05
    Mozilla 1.1b
    Last edited by cg9com; 11-20-2002 at 11:11 PM.


  •  

    Posting Permissions

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