/    Sign up×
Community /Pin to ProfileBookmark

Format input text box…

Hi

I have the following code which I paste in notepad and save as test.doc.

<html>
<p style=”font-family:Verdana, sans-serif;font-size:smaller;”>
My name is Mr. <input type=”text” value=”myName”>
and my age is <input type=”text” value=”myAge”>
. My gender is <input type=”text” value=”myGender”>
</p>
</html

When I open this word file, I am getting three input text boxes and they contain values as “myName”, “myAge” and “myGender”.

Can anyboby help me in formating this input text boxes. I want to apply font color, alignment, back ground color, etc… to this boxes.

Thanks in advance
Sridhar P

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@FangAug 31.2005 — &lt;input type="text" value="myName" style="color:red;text-align:center;background:blue;"&gt;
Read the examples/links given in your previous thread and [URL=http://www.w3schools.com/css/default.asp]learn CSS[/URL]
Copy linkTweet thisAlerts:
@psridharauthorSep 01.2005 — Hi Fang,

I already tried that option and it did not work.

I pasted the below code in to a notepad and saved it as test.doc. I opened that word document. I expected that "myName", "myAge" and "myGender" will be in red color and the input text box will have blue back ground color. But nothing happens..... The text is still in black color and no back ground color for the input text box.

Can you please try it for once and correct me if I am doing some mistake...

Thanks

Sridhar P


<html>

<p style="font-family:Verdana, sans-serif;font-size:smaller;">

My name is Mr. <input type="text" value="myName" style="color:red;text-align:center;background:blue;">

and my age is <input type="text" value="myAge" style="color:red;text-align:center;background:blue;">

My gender is <input type="text" value="myGender" style="color:red;text-align:center;background:blue;">

</p>

</html>
Copy linkTweet thisAlerts:
@LJKSep 02.2005 — Hi -

Why are you trying to turn an .html page into a .doc Word document?

Just curious,

El
Copy linkTweet thisAlerts:
@Wiz_CreationsSep 02.2005 — Hi -

Why are you trying to turn an .html page into a .doc Word document?

Just curious,

El[/QUOTE]

word is sometimes used for webdesign, but not often.


try doing separate css in the head
[CODE]
<html>
<head>
<style>
#design{color:red;text-align:center;background:blue;}
</style>
</head>
<body>
<p>
My name is Mr. <input type="text" value="myName" id="design">
and my age is <input type="text" value="myAge" id="design">
My gender is <input type="text" value="myGender" id="design">
</p>
</body>
</html>
[/CODE]
Copy linkTweet thisAlerts:
@psridharauthorSep 02.2005 — Hi Wiz Creations,

I tried your solution but it did not work.... still no formatting is happening to the input text boxes....

Hi LJK,

For the following reasons, I want to save this as .doc.

  • 1. I should be able to modify the data inside the text boxes and that data should be stored. Is it possible if I open it as .html?


  • 2. I want to get the entire data in to a text file for my further processing. Let me explain some thing more here. I basically work in mainframe technology. I want to provide an user interface ( as the above example) by fetching the data from database.

    For that, I write a program in mainframes, which reads the data from database and formulates html code. I transfer this code from mainframes to windows. Now user should be able to edit the data in the text boxes and that data needs to be saved and updated back in my mainframe database. Mainframe can receive only *.txt files in readable format. So I need to convert my windows file ( doc or html or what ever it may me ) text file so that I can send the updated data back to mainframe. Now I will write another program in mainframe which reads this updated data and updates my database.


  • Hope I am clear.....

    Please come up with a solution....

    Regards

    Sridhar P
    ×

    Success!

    Help @psridhar spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...