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 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    A list/menu CSS issue

    The words in my select box seem to be getting cut off. I narrowed it down to the following code in CSS:

    *{margin:0; padding:0;}

    Which I obviously need to keep all of my margins pretty Any ideas? Thanks in advance...the link is below.

    http://www.manliusvillage.org/test/test/test.html

  • #2
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    style your select box with this

    CSS code:
    Code:
    width: LENGTH_HEREpx;
    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #3
    New Coder
    Join Date
    Dec 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I should have been more specific. Is there a way to dynamically have it resize no matter what word I put into it? Thanks for the quick reply though.

    -Andrew

  • #4
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    Use this CSS:

    CSS Code
    Code:
    option
    {
    margin:3px;
    }
    (you can change 3px to anything you want, it just seemed to be a good value..)

    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #5
    New Coder
    Join Date
    Dec 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Beautiful. Thanks man! Nominated.

    -andy


  •  

    Posting Permissions

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