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
    Regular Coder
    Join Date
    May 2004
    Posts
    391
    Thanks
    76
    Thanked 0 Times in 0 Posts

    print style sheet

    Hi all I have a print style sheet and would like to know can I also style the text inside of textfields?? Below is some of the css I use to style my reports?

    Code:
    div.span  {
    font-size : 75px;
    }
    
    div.pland  {
    line-height: 130%;
    }
    
    p.labels  {
     font-size : 70px;
    }
    
    #breakafter {
    page-break-after: auto;
    }
    
    
    div.span2  {
    font-size : 175px;
    }

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Oh Dear, I think that's another thing I have forgotten.

    Remind me what textfields are? (Honestly, if they don't exist, I wasn't being sarcastic).

    On the other hand, if you mean a block of text, perhaps surrounded by <p></p> tags, the you could use similar to what you have done already with p.labels{}

    Just leave the class identifier off to have just: -

    Code:
    p {
    font-size:1.5em;
    }
    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

  • #3
    Senior Coder
    Join Date
    Oct 2008
    Location
    Long Beach
    Posts
    1,196
    Thanks
    36
    Thanked 164 Times in 164 Posts
    If you mean <input type="text" class="txt" />s:
    Code:
    input .txt
    {
    color: #ff0000;
    /* etc */
    }
    If you mean <textarea></textarea>s:
    Code:
    textarea
    {
    font-family: arial,sans-serif;
    /* etc */
    }
    A few ideas for textarea styling: http://css-tricks.com/creating-a-nice-textarea/


  •  

    Posting Permissions

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