473,569 Members | 2,834 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem: Stylesheets don't always load on first try.

g
http://mysite.verizon.net/gdguarino/montauk.htm

You can also click on the other pages of the site if the problem
doesn't show itself on this page.

I'm using two stylesheets for each page, one with the position and size
information for each element and another for the color and background
info. The position stylesheet is common to all pages.

Sometimes only the "color" stylesheet loads, leaving the page a mess.
Reloading the page fixes it. My suspicion is that it's just lousy
hosting (Verizon, free with my account). Could it be something else?
For instance, is my syntax right for calling up the two stylesheets?
(probably not, although it does seem to work).

Greg Guarino

Oct 26 '05 #1
14 2056
g@risky-biz.com wrote:
http://mysite.verizon.net/gdguarino/montauk.htm

Sometimes only the "color" stylesheet loads, leaving the page a mess.
Reloading the page fixes it. My suspicion is that it's just lousy
hosting (Verizon, free with my account). Could it be something else?
For instance, is my syntax right for calling up the two stylesheets?
(probably not, although it does seem to work).

I see no such problem here. Mozilla v1.7.12.
What browser are you using? Have you tried another browser? Is it
through a proxy? Did you flush the cache?
Remove the "<!-- -->" delimiters. They are unnecessary. Browsers that
find those necessary ignore @import anyway. And they may be confusing your
browser.
Normally the contents are quoted, url("photobasic .css"), to minimize
quirks with the OS. Just the quoted filename is normally all that is needed.

You really should have a doctype for your pages. It encourages a
uniform experience across browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Oct 27 '05 #2
On Wed, 26 Oct 2005 17:03:33 -0700, Jim Moe
<jm************ ***@sohnen-moe.com> wrote:
g@risky-biz.com wrote:
http://mysite.verizon.net/gdguarino/montauk.htm

Sometimes only the "color" stylesheet loads, leaving the page a mess.
Reloading the page fixes it. My suspicion is that it's just lousy
hosting (Verizon, free with my account). Could it be something else?
For instance, is my syntax right for calling up the two stylesheets?
(probably not, although it does seem to work).
I see no such problem here. Mozilla v1.7.12.
What browser are you using?

Firefox 1.4Have you tried another browser?
Not today, but I think it happened in IE as well.Is it
through a proxy? I'm not sure I know what that is. I've got Verizon DSL at home and at
work
Did you flush the cache?
I just did now and I can't make the problem occur now, but I suspect
that it may only happen after I've changed the pages.
Remove the "<!-- -->" delimiters. They are unnecessary. Browsers that
find those necessary ignore @import anyway. And they may be confusing your
browser.
Done. Thanks
Normally the contents are quoted, url("photobasic .css"), to minimize
quirks with the OS. Just the quoted filename is normally all that is needed.

You really should have a doctype for your pages. It encourages a
uniform experience across browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


Also done. Thanks again.

This is just a photo gallery site I'm putting together in my spare
time. I also use it to experiment a bit with web design concepts as I
learn them. In other words, it's nothing crucial. I'm still curious to
know if this problem shows up on anyone else's computer.

Greg Guarino

Oct 27 '05 #3
In article <7m************ *************** *****@4ax.com>,
Greg G <gd*******@veri zon.net> wrote:
On Wed, 26 Oct 2005 17:03:33 -0700, Jim Moe
<jm************ ***@sohnen-moe.com> wrote:
You really should have a doctype for your pages. It encourages a
uniform experience across browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


Also done. Thanks again.


Now submit your URL to <http://validator.w3.or g/> to validate your HTML
and your CSS URL to <http://jigsaw.w3.org/css-validator/> to validate
your CSS. All kinds of problems can be discovered by submitting the page
to these two sites.
This is just a photo gallery site I'm putting together in my spare
time. I also use it to experiment a bit with web design concepts as I
learn them.
Those validators will help you in your experiments.
In other words, it's nothing crucial. I'm still curious to
know if this problem shows up on anyone else's computer.


There may be other problems to worry about once the page validates.
Different browsers display the pages somewhat differently. A lot depends
on how much that stresses _you_ out.

leo

--
<http://web0.greatbasin .net/~leo/>
Oct 27 '05 #4
Jim Moe <jm************ ***@sohnen-moe.com> writes:
Remove the "<!-- -->" delimiters. They are unnecessary. Browsers
that find those necessary ignore @import anyway.
The pseudo comments are generally useless alright, but HTML may not
necessarily be processed by browsers exclusively.
And they may be confusing your browser.
I have about 40 (I think). Which ones of yours get confused
(admittedly, I'm not at all taking those into account who cannot resolve
virtual hosts without a proxy)?
Normally the contents are quoted, url("photobasic .css"),
IIRC there are 5 ways to do that, syntactically; where does it say which
one is 'normal'?
to minimize quirks with the OS.
I know differences within browsers, but the OS? Which one (I only have
3 [well, 5, but not conveniently], so I'm always curious)?
You really should have a doctype for your pages.
What is 'a doctype' (I assume 'document type declaration' and rephrase:
'why')?
It encourages a
uniform experience across browsers.


Only in broken software.

And all of a sudden, I recall Nielsen's categorical imperative 'users
don't scroll'.

| In standards-compliant mode, compatibility with other versions of
| Internet Explorer is not guaranteed. When standards-compliant mode is
| switched on, the rendering behavior of documents might differ in
| future versions of Internet Explorer. You should not use this mode for
| content that is fixed in nature, such as content that is stored on a
| CD.

<msdn.microsoft .com/library/en-us/dnie60/html/cssenhancements .asp>
Oct 27 '05 #5
Eric B. Bednarz wrote:
And they may be confusing your browser.
I have about 40 (I think). Which ones of yours get confused

40 browsers? Impressive!
None, all one of them had no problem. It was conjecture since the OP
did not mention which browser he has.
Normally the contents are quoted, url("photobasic .css"),
IIRC there are 5 ways to do that, syntactically; where does it say which
one is 'normal'?

5 ways to quote?
to minimize quirks with the OS.
I know differences within browsers, but the OS? Which one (I only have
3 [well, 5, but not conveniently], so I'm always curious)?

Right. Quoting gets the string to the OS unchanged. I was vaguely
recalling a different problem/solution.
You really should have a doctype for your pages.


What is 'a doctype' (I assume 'document type declaration' and rephrase:
'why')?

Now you are just being silly.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Oct 27 '05 #6
Jim Moe <jm************ ***@sohnen-moe.com> writes:
40 browsers? Impressive!


Not really. Take NN4; the JS engine differs between subversions and
even equal versions on different OSs, so serious retro DHTML development
would require some 9-12 NN4 versions alone. ;-)
Normally the contents are quoted, url("photobasic .css"),
IIRC there are 5 ways to do that, syntactically; where does it say
which one is 'normal'?

5 ways to quote?


Bad wording on my account; 5 ways to @import.
What is 'a doctype' (I assume 'document type declaration' and
rephrase: 'why')?

Now you are just being silly.


I'm a very silly person alright, but 'a doctype' is a very silly
colloquial expression ('document type declaration'?, acronym for
'document type'?, the 'doctype' keyword in a markup declaration?).

As of deliberate abuse of a markup declaration as a processing
instruction, I'm not silly at all but just a grumpy old man (especially
for IE6, there are pragmatic reasons to avoid 'standards compliance'
mode as well).

Oct 27 '05 #7
On 27/10/2005 02:57, Eric B. Bednarz wrote:
The pseudo comments [in STYLE elements] are generally useless
alright, but HTML may not necessarily be processed by browsers
exclusively.
If a user agent (including search engine bots) written after HTML 3.2
was published (where STYLE was first 'officially' defined) couldn't
handle STYLE elements (or SCRIPT, for that matter) correctly, wouldn't
it be broken? Even if it has no intention of using the contents of these
elements, it should recognise them and then ignore them.

[snip]
| In standards-compliant mode, compatibility with other
| versions of Internet Explorer is not guaranteed.
Obviously standards-compliant CSS isn't compatible with earlier versions
because they're broken (or is that feature-rich? ;).
| When standards-compliant mode is switched on, the rendering
| behavior of documents might differ in | future versions of
| Internet Explorer.


Indeed. However, evidence would suggest that those changes would mean
that IE will be better at rendering documents correctly, which I hardly
think is a bad thing (as long as bugs are /fixed/, not introduced).

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Oct 27 '05 #8
Tim
On Thu, 27 Oct 2005 03:57:55 +0200, Eric B. Bednarz sent:
And all of a sudden, I recall Nielsen's categorical imperative 'users
don't scroll'.
In standards-compliant mode, compatibility with other versions of
Internet Explorer is not guaranteed. When standards-compliant mode is
switched on, the rendering behavior of documents might differ in
future versions of Internet Explorer. You should not use this mode for
content that is fixed in nature, such as content that is stored on a
CD.

<msdn.microsoft .com/library/en-us/dnie60/html/cssenhancements .asp>


Ho hum, and are we surprised that Microsoft would advocate against doing
something properly, because it might bugger up in their software?
I'm not.

Though, of course, just about every single release of IE has behaved
differently, I don't expect future ones to be any better, and not
complying with standards is only going to make things worse (for you and
them), in the future.

Based on past behaviour, I don't see any reason why deliberately using
crap HTML is going to give you more consistent results than using HTML
nicely.

I'd say that their, "You should not use this mode for ..." comment is
outright bad advice.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please destroy some files yourself.

Oct 27 '05 #9
Eric B. Bednarz wrote:
What is 'a doctype' (I assume 'document type declaration' and
rephrase: 'why')?


Now you are just being silly.


I'm a very silly person alright, but 'a doctype' is a very silly
colloquial expression ('document type declaration'?, acronym for
'document type'?, the 'doctype' keyword in a markup declaration?).

So was I. Maybe pedantic would have been better.
Nevertheless, "Doctype" is easier than "Specifying a document type
declaration using the DOCTYPE keyword and syntax."

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Oct 27 '05 #10

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

Similar topics

14
2574
by: Jacqui or (maybe) Pete | last post by:
Having just answered a question about multiple linked stylesheets, I thought I'd have a look at browser support. There's a quick test page here: http://www.porjes.com/ms/ I wrote it according to my understanding of: http://www.w3.org/TR/html401/present/styles.html#h-14.3.2
72
4791
by: Herbert | last post by:
I'm still relativey new to stylesheets, so I'm hoping that the way I'm going about things can be seriously improved upon, i.e . I just haven't undersood something obvious about the 'cascading' nature of the coding, which I believe concerns the way attributes relate to one another when 'nested'... I think I can illustrate the nature of the...
3
4058
by: jason baumunk | last post by:
I author applications in php which use external stylesheets. When viewed through ie 6, netscape 6, et al. occassionally the stylesheets will not load or be applied. Has anybody encountered this and found a fix/workaround so that the stylesheets are verified as having been loaded/applied? I'm running apache and the external stylesheets are...
10
2997
by: Josh Renaud | last post by:
Hey everyone. First the requisite links: site: http://www.joshrenaud.com/bodies/index.html css: http://www.joshrenaud.com/bodies/stylesheets/style.css I have a UL that I'm using for a horizontal navigation bar on a website. It looks decent in most browsers I've checked, except for IE5.
5
2532
by: googlegroups | last post by:
I have a large table in html created dynamically. This table can grow to several hundred rows or more. I have the ability to hide or display individual rows (using row.style.display = "none") and this works well in both IE and Firefox. I would also like to do the same with columns as well. I did some research and col and colgroup nodes are...
8
3350
by: Ashish | last post by:
Incase the problem got bogged down reposting... Hi Gregory, I think I didnt make myself much clear. The problem is: 1. I have one ASP.NET application (no classic asp) and it has a main page (i.e. kinda SDI main window) that contains an IFrame. 2. I load different ASPX pages (that belong to the same ASP.NET project) in
1
2290
by: Kris van der Mast | last post by:
Hi, been a while since I posted a question myself instead of trying to help others out. I'm refactoring an existing web app that uses dynamic loading of user controls and a lot of response.redirects to the same page. Because I hate the overhead by doing this I'm searching for a cleaner option. But I'm having troubles (off course or I...
5
3500
by: Martin Chen | last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main frame. The contents frame has a menu bar written with with javascript (in the context of a table). In IE6.1 everything works fine as it also does in firefox if I call the contents frame directly (i.e. outside of its frameset). However, if I call my main page...
9
2711
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the code: <script runat="server"> Dim sqlConn As New SqlConnection(".....") Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) If Not...
0
7605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7665
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6277
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.