Destramic Posted May 6, 2010 Share Posted May 6, 2010 i've put input[type=text] { width:250px; border:solid 1px #000000; } inside my style sheet but it is not working...does anyone know what the problem would be please? Quote Link to comment Share on other sites More sharing options...
n000bie Posted May 7, 2010 Share Posted May 7, 2010 Instead of using attribute selectors you can assign a class to input elements. Quote Link to comment Share on other sites More sharing options...
Destramic Posted May 7, 2010 Author Share Posted May 7, 2010 i idealy need to do it like the code above...but as I said when using it in my css it doesn't change the look or any attribute of the input field...and I don't understand why it doesn't work...anyone please? Quote Link to comment Share on other sites More sharing options...
phpchamps Posted May 7, 2010 Share Posted May 7, 2010 its not working because you have not defined doctype for the html page... please define doctype at the top of your html page.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Quote Link to comment Share on other sites More sharing options...
Destramic Posted May 7, 2010 Author Share Posted May 7, 2010 thank you that worked...i thought it would be something silly...thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.