Jump to content

GranDad

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by GranDad

  1. 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?... snip...I
    I found the answer by searching on Google for "[if IE]"this is 1 of the URL'shttp://www.dithered.com/css_filters/html_o...omments_ie.htmland this is the syntax for HTML (it also gives an example CSS style)"<!--[if ( ! )* ( comparison )* IE ( version number )* ]>HTML content to parse if the condition is true goes here<![endif]-->Thanks for listenning.GranDad
  2. 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!!

  3. Welcome 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.

    Thanks a lot for your help Skemcin. This code works so now I will work it into my project.GranDad
  4. 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.

×
×
  • Create New...