473,372 Members | 799 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,372 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 3519
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.