473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Textarea style not applied on first load

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?
Nov 22 '07 #1
3 3522
On Thu, 22 Nov 2007 22:29:02 +0100, ShaggyMoose <sh*********@gmail.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
Nov 22 '07 #2
On Nov 22, 7:57 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Thu, 22 Nov 2007 22:29:02 +0100, ShaggyMoose <shaggymo...@gmail.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.
Nov 23 '07 #3
On Fri, 23 Nov 2007 13:26:04 +0100, ShaggyMoose <sh*********@gmail.com>
wrote:
On Nov 22, 7:57 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
>On Thu, 22 Nov 2007 22:29:02 +0100, ShaggyMoose <shaggymo...@gmail.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
Nov 23 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gadrin77 | last post by:
I noticed when displaying the contents of a CDATA node inside a TEXTAREA using MSXML and XSL, I get an extra space before the data. at first I thought I hadn't "tightened up" the XSL, but then...
4
by: Csaba Gabor | last post by:
What I'd like to do is to be able to set the font of a textarea element to the same font that another element is using (say, for example, an <INPUT type=text ...> element, but if that's a no go,...
4
by: TJS | last post by:
can the rows and columns of a textarea element with an id be changed on the fly ? if so is there an example ?
1
by: trihanhcie | last post by:
Hi I have several textarea in the same page. I would like to count the words in each textarea without any interaction with each other. Here's the code I used for the count : <script...
2
by: K. | last post by:
I have such a text <input type="text" name="search_txt" value=""> <textarea name="txt_m"> My hobby is bicycle. My hobby is driving a car. </textarea> I would like to bold and color a...
2
by: thuythu | last post by:
Please help me.... I used and Javascript to view the data. But when i click button open a popup windows, then select data and click save button. The popup close and return the main page, but the...
2
by: barrypalmer | last post by:
Please, why does the first textarea work but the second not ?? <html> <head> <style type="text/css"> #txt {style="background-color:#F0F0F0; color:#0000FF; font-size:10pt;"} </style> </head>...
0
by: saijin | last post by:
I'm planning to call a list of data from an XML file but when I duplicate the content inside the <data></data> it is not showing anything Here's the ActionScript 3.0 import...
4
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.