HighDots Forums  

Textarea style not applied on first load

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Textarea style not applied on first load in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ShaggyMoose
 
Posts: n/a

Default Textarea style not applied on first load - 11-22-2007 , 03:29 PM






I have a textarea that is styled by the following.

textarea
{
width: 100%;
line-height: 13pt;
font-family: Arial, Verdana, Helvetica;
text-align: left;
overflow: auto;
}

When I first load the page containing this element, it is unstyled
(default appearance). However, the styling of all the other elements
are fine (same stylesheet). When I refresh the page, the style is
applied as expected! Any ideas?

Reply With Quote
  #2  
Old   
Rik Wasmus
 
Posts: n/a

Default Re: Textarea style not applied on first load - 11-22-2007 , 04:57 PM






On Thu, 22 Nov 2007 22:29:02 +0100, ShaggyMoose <shaggymoose (AT) gmail (DOT) com>
wrote:

Quote:
I have a textarea that is styled by the following.

textarea
{
width: 100%;
line-height: 13pt;
font-family: Arial, Verdana, Helvetica;
text-align: left;
overflow: auto;
}

When I first load the page containing this element, it is unstyled
(default appearance). However, the styling of all the other elements
are fine (same stylesheet). When I refresh the page, the style is
applied as expected! Any ideas?
URL? I'd like to see this in practise...
--
Rik Wasmus


Reply With Quote
  #3  
Old   
ShaggyMoose
 
Posts: n/a

Default Re: Textarea style not applied on first load - 11-23-2007 , 06:26 AM



On Nov 22, 7:57 pm, "Rik Wasmus" <luiheidsgoe... (AT) hotmail (DOT) com> wrote:
Quote:
On Thu, 22 Nov 2007 22:29:02 +0100, ShaggyMoose <shaggymo... (AT) gmail (DOT) com
wrote:

I have a textarea that is styled by the following.

textarea
{
width: 100%;
line-height: 13pt;
font-family: Arial, Verdana, Helvetica;
text-align: left;
overflow: auto;
}

When I first load the page containing this element, it is unstyled
(default appearance). However, the styling of all the other elements
are fine (same stylesheet). When I refresh the page, the style is
applied as expected! Any ideas?

URL? I'd like to see this in practise...
--
Rik Wasmus
Unfortunately, its an internal website that I can't host externally.
As a workaround, I am re-applying the style in Javascript onload. Not
pretty, but it works.


Reply With Quote
  #4  
Old   
Rik Wasmus
 
Posts: n/a

Default Re: Textarea style not applied on first load - 11-23-2007 , 11:34 AM



On Fri, 23 Nov 2007 13:26:04 +0100, ShaggyMoose <shaggymoose (AT) gmail (DOT) com>
wrote:
Quote:
On Nov 22, 7:57 pm, "Rik Wasmus" <luiheidsgoe... (AT) hotmail (DOT) com> wrote:
On Thu, 22 Nov 2007 22:29:02 +0100, ShaggyMoose <shaggymo... (AT) gmail (DOT) com
wrote:

I have a textarea that is styled by the following.

textarea
{
width: 100%;
line-height: 13pt;
font-family: Arial, Verdana, Helvetica;
text-align: left;
overflow: auto;
}

When I first load the page containing this element, it is unstyled
(default appearance). However, the styling of all the other elements
are fine (same stylesheet). When I refresh the page, the style is
applied as expected! Any ideas?

URL? I'd like to see this in practise...

Unfortunately, its an internal website that I can't host externally.
I find it hard to believe you cannot save the source (possibly trim it
down/remove sensitive content) plus possible css & images, and put it on
one of the thousands of free servers out there.
--
Rik Wasmus


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.