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 3 of 3
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    text boxes css help plz

    Hi,
    Can't seem to figure out the css for this:
    1. to control the text boxes without assigning each a class

    what should I put instead of div#create for_input { ?

    <div id="create"><form action="">
    <input type="hidden" name="check_path" value="/General_Pages">
    <input type="text" name="file_name" value="">
    <input type="submit" name="action" value="Create">
    <input type="hidden" name="check_file" value="General_Pages">
    <textarea rows="25" cols="10" name="" value=""></form>
    </div>

    here's the css so far:

    div#create {
    width : 500px;
    text-align : center;
    margin : auto auto;
    border : 1px solid #785b83;
    }

    div#create for_input {
    background-color : #E5F9FF;
    border : 1px #000040 dotted;
    font-size : 12px;
    height : 15px;
    width : 300px;
    }

    div#create for_textarea {
    background-color : #E5F9FF;
    border : 1px solid #785b83;
    font-size :12px;
    height : 150px;
    width : 300px;
    }

    Bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    Code:
    div#create {
    width : 500px;
    text-align : center;
    margin : auto auto;
    border : 1px solid #785b83;
    }
    
    div#create input {
    background-color : #E5F9FF;
    border : 1px #000040 dotted;
    font-size : 12px;
    height : 15px;
    width : 300px;
    }
    
    div#create textarea {
    background-color : #E5F9FF;
    border : 1px solid #785b83;
    font-size :12px;
    height : 150px;
    width : 300px;
    }

  • #3
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    NancyJ thanks for that.

    I suppose that, to make sure the submit button holds the default/correct button appearance, I must place it outside the div?

    Bazz
    Last edited by bazz; 05-18-2005 at 05:11 PM.
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

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