Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

setting textarea font to match rest
 

Chris Sharman




quote this post edit post

IP Loged report this post

Old Post  08-22-04 - 12:25 AM  
I haven't specified fonts, leaving the user to have their chosen font.

However, different tags render in different default fonts: text, input,
& textarea all different from one another. I guess this is normal
behaviour, but it looks poor, and I don't want our website to look that
way (to out of the box browsers).

How would I set textarea's 'like' input, or how would I determine
(Javascript?) what's being used by an input field, to set the textarea
the same ? If it's got to be javascript, is there a way to set style for
all textareas together, rather than individual textareas ?

The difference between input boxes & text is bearable, if necessary, but
the textarea default font stands out too much.

Thanks,
Chris


Post Follow-Up to this message ]
Re: setting textarea font to match rest
 

Els




quote this post edit post

IP Loged report this post

Old Post  08-24-04 - 12:19 AM  
Chris Sharman wrote:

> I haven't specified fonts, leaving the user to have their
> chosen font.
>
> However, different tags render in different default fonts:
> text, input, & textarea all different from one another. I
> guess this is normal behaviour, but it looks poor, and I
> don't want our website to look that way (to out of the box
> browsers).
>
> How would I set textarea's 'like' input, or how would I
> determine (Javascript?) what's being used by an input
> field, to set the textarea the same ? If it's got to be
> javascript, is there a way to set style for all textareas
> together, rather than individual textareas ?
>
> The difference between input boxes & text is bearable, if
> necessary, but the textarea default font stands out too
> much.

Didn't try this, but how about
body,input,textarea{
font-family:Helvetica,sans-serif;
font-size:100%;
}
?

--
Els                     http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Jay-Z - Excuse Me Miss feat Pharrell


Post Follow-Up to this message ]
Re: setting textarea font to match rest
 

Els




quote this post edit post

IP Loged report this post

Old Post  08-24-04 - 12:19 AM  
Chris Sharman wrote:

> Els wrote: 
>
> Sorry - I wasn't clear -

Yes you were

> I don't want to overrule all
> users' font choices - I want to leave body alone, and have
> textarea 'like' body, and maybe input & select too.

I did get that, just didn't think of a solution without having
to use at least a generic font... (don't know why I put the
Helvetica in :S)

> Sort of textarea { font-family: inherit }
> hmm - just tried that - answered my own question - sorry
> for wasting everybody's time !!

Didn't waste it, you provided other people (like myself) with
a solution to future problems :-)

--
Els                     http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Legião Urbana - HIGH NOON


Post Follow-Up to this message ]
Re: setting textarea font to match rest
 

Chris Sharman




quote this post edit post

IP Loged report this post

Old Post  08-24-04 - 04:16 AM  
Els wrote:
> Chris Sharman wrote: 
>
> Didn't try this, but how about
> body,input,textarea{
>     	font-family:Helvetica,sans-serif;
>     	font-size:100%;
> }
Sorry - I wasn't clear - I don't want to overrule all users' font
choices - I want to leave body alone, and have textarea 'like' body, and
maybe input & select too.

Sort of textarea { font-family: inherit }
hmm - just tried that - answered my own question - sorry for wasting
everybody's time !!

Chris


Post Follow-Up to this message ]
Re: setting textarea font to match rest
 

Chris Sharman




quote this post edit post

IP Loged report this post

Old Post  08-26-04 - 05:27 PM  
Chris Sharman wrote:

> Els wrote:
> 
> Sorry - I wasn't clear - I don't want to overrule all users' font
> choices - I want to leave body alone, and have textarea 'like' body, and
> maybe input & select too.
>
> Sort of textarea { font-family: inherit }
> hmm - just tried that - answered my own question - sorry for wasting
> everybody's time !!

Spoke too soon - doesn't work in IE. Fixes Mozilla though.

Chris


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 03:30 PM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top