Text Boxes

They have: 51 posts

Joined: Dec 2002

How would I go about setting the background color and textcolor of a textbox without using a stylesheet?

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Do you want to avoid using just a stylesheet, or avoid CSS altogether?

<input type="text" style="background-color:#000; color:#fff;" . . . >
'
^ Inline CSS, with no stylesheet...

They have: 51 posts

Joined: Dec 2002

cheers mate, thats perfect

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

May I ask why one would like to avoid a stylesheet?

They have: 16 posts

Joined: Jul 2003

Does anyone remember how to use html in a text box? I saw a code that allows this on one of those scripts sites, but can not locate it.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

How to use it how?

Busy's picture

He has: 6,151 posts

Joined: May 2001

value="??" ??

He has: 1,758 posts

Joined: Jul 2002

are you sure your not confusing text boxes with Iframes? if you want text to appear in a scrolling box that can have its own formatting then its Iframes your after.

Andy

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.