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<input type="text" value="myName" style="color:red;text-align:center;background:blue;">
Read the examples/links given in your previous thread and learn CSS (<!-- m --><a class="postlink" href="http://www.w3schools.com/css/default.asp">http://www.w3schools.com/css/default.asp</a><!-- m -->)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>Hi -
Why are you trying to turn an .html page into a .doc Word document?
Just curious,
ElHi -
Why are you trying to turn an .html page into a .doc Word document?
Just curious,
El
word is sometimes used for webdesign, but not often.
try doing separate css in the head
<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>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
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<input type="text" value="myName" style="color:red;text-align:center;background:blue;">
Read the examples/links given in your previous thread and learn CSS (<!-- m --><a class="postlink" href="http://www.w3schools.com/css/default.asp">http://www.w3schools.com/css/default.asp</a><!-- m -->)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>Hi -
Why are you trying to turn an .html page into a .doc Word document?
Just curious,
ElHi -
Why are you trying to turn an .html page into a .doc Word document?
Just curious,
El
word is sometimes used for webdesign, but not often.
try doing separate css in the head
<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>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