Computing.Net > Forums > Web Development > Basic HTML Question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Basic HTML Question

Reply to Message Icon

Name: zzzBrett
Date: January 25, 2006 at 12:20:52 Pacific
OS: Windows
CPU/Ram: ...
Comment:

This is so simple, I am amazed I cannot get it working!

I want these two text box types in a form to have the exact same font and size.

I've tried:

<textarea name="txtFullDesc" cols="30" rows="7"></textarea>

<input name="txtShortDesc" type="text" id="txtShortDesc">


... with a font tag in front of them, I have tried using css and using the same rule, but every time, the textarea box has a smaller font. I don't get it!

Please help,
Brett



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: January 25, 2006 at 12:49:03 Pacific
Reply:

You need to use CSS, like this:

<input name="txtShortDesc" type="text" id="txtShortDesc" style="width:400px;font-size:10pt;font-family:arial;">

<textarea name="txtFullDesc" cols="3" rows="7" style="width:400px;font-size:10pt;font-family:arial;"></textarea>

Use the same values for width, font-size and font-family

Michael J


0

Response Number 2
Name: zzzBrett
Date: January 25, 2006 at 13:40:14 Pacific
Reply:

Thanks for the quick response, but I am still having trouble. Look here:
http://eportal.ws/text.html

Look at the source... they are exactly the same styles, but still look different when you type in them.

Thanks,
Brett


0

Response Number 3
Name: Michael J (by mjdamato)
Date: January 25, 2006 at 14:36:57 Pacific
Reply:

You have a typo. Remove the double quotes I have indicated below.

<input name="txtShortDesc" type="text" id="txtShortDesc" style="width:400px;font-size:14px;font-family:"arial";" >


<textarea name="txtFullDesc" cols="30" rows="7" style="width:400px;font-size:14px;font-family:"arial";"></textarea>

Or just copy and past the code I posted previously!

Michael J



0

Response Number 4
Name: zzzBrett
Date: January 25, 2006 at 19:22:59 Pacific
Reply:

Thanks

Brett


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Basic HTML Question

Simple HTML Question www.computing.net/answers/webdevel/simple-html-question/1910.html

simple html question www.computing.net/answers/webdevel/simple-html-question/3000.html

Startup Webpage Costs? Help! www.computing.net/answers/webdevel/startup-webpage-costs-help/1195.html