GranDad
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by GranDad
-
-
In my surfing thru html and css sites I came across something that commented code so only IE would use it.It was something like if[iE] ... something. I can''t remember it and can't find the web site that had it. Does this ring a bell?I am having trouble with positioning a textarea and its caption which follows a table. (My design is too far along to use CSS instead of a table.) In IE the caption follows to the right of the last table element. I fixed this with:<p> </p><p> </p><p> </p><p> </p>which pushes the caption down until it floats to the left and above the textarea. But in Firefox this just pushes the textarea and its caption down 4 extra lines.So I want to bracket the above with something that only IE uses.Any help is appreciated!!
-
Thanks a lot for your help Skemcin. This code works so now I will work it into my project.GranDadWelcome to the forum, glad you found us.The "style" attribute should work in any of the <form> tags.<!-- inline --><form action="##" method="get"><input type="text" name="field01" style="font-family:MS Trebuchet, Tahoma; font-size:10px;" value="[text here]"><textarea name="field02" rows="5" cols="25" style="font-family:MS Trebuchet, Tahoma; font-size:10px;">[text here]</textarea></form>
or
<!-- on page --><style type="text/css" media="all">body, input, textarea {font-family:MS Trebuchet, Tahoma;font-size:10px;}</style><form action="##" method="get"><input type="text" name="field01" value="[text here]"><textarea name="field02" rows="5" cols="25">[text here]</textarea></form>
Let me now if this doesn't work.
-
I am new to PHP and CSS. How can I set the default text font and size for html body and for textarea? I am using PHP5, HTML4 and CSS.I can control text-size in <input type="text with style but it does not affect textarea's or drop-down option's or multiple select lists.I am working on a user data input web page with option choices and textareas for free hand text.I discovered from this formum how to control the text fonts for submit buttons, so I know how to do that.
IE and Firefox appearance
in CSS
Posted