473,387 Members | 1,863 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,387 software developers and data experts.

main.css

Hi All,

I called an external stylesheet main.css, created the html files and
checked them locally OK. I uploaded everything to the server. When I
checked it, the connection kept crashing. I finally figured out that
the connection was freezing up every time I called index.html. I
changed the name of the stylesheet and changed the links, and I no
longer had the problem. Doing a Google search turned up nothing, can
anyone give me any incite?

Andy

"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)
Jul 20 '05 #1
5 8629
and then andy johnson said:
I called an external stylesheet main.css, created the html files and
checked them locally OK. I uploaded everything to the server. When I
checked it, the connection kept crashing.
You don't mean crashing. Crashing means the program stopped responding to
input. You mean the stylesheet was not included.
I finally figured out that
the connection was freezing up every time I called index.html. I
changed the name of the stylesheet and changed the links, and I no
longer had the problem. can anyone give me any incite? You should use a spell chequer :-)

An "absolute url" (complete address) looks like:
http://www.example.com/path/style.css

If you use a "relative url", which does not start http:, then it must be
"resolved" with the address of the document*. What has been hapening is
that how the files are aranged locally, the relative url resolves correctly
to the url (address) of the stylesheet locally, but how they are arranged
on the server, it does not.

If the For example:

Absolute url:
http://www.example.com/
Relative url:
style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/index.html
Relative url:
style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/path/
Relative url:
style.css
Resolves to:
http://www.example.com/path/style.css

Absolute url:
http://www.example.com/index.html
Relative url:
dir/style.css
Resolves to:
http://www.example.com/dir/style.css

Absolute url:
http://www.example.com/path/
Relative url:
dir/style.css
Resolves to:
http://www.example.com/path/dir/style.css

Absolute url:
http://www.example.com/index.html
Relative url:
/style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/path/
Relative url:
/style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/path/more/index.html
Relative url:
/style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/index.html
Relative url:
style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/path/
Relative url:
.../style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/path/more/index.html
Relative url:
.../style.css
Resolves to:
http://www.example.com/path/style.css

You can do a google search for "resolve a relative url".

* if you use a <base> element the href attribute of this will be used
instead of the address of the document.
"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)


Please correctly delimit your signiture with newline-dash-dash-space-newline
or remove it.
Jul 20 '05 #2
viza <no**@example.invalid> wrote in message news:<sH****************@newsfep2-gui.server.ntli.net>...
and then andy johnson said:
I called an external stylesheet main.css, created the html files and
checked them locally OK. I uploaded everything to the server. When I
checked it, the connection kept crashing.


You don't mean crashing. Crashing means the program stopped responding to
input. You mean the stylesheet was not included.
I finally figured out that
the connection was freezing up every time I called index.html. I
changed the name of the stylesheet and changed the links, and I no
longer had the problem.

can anyone give me any incite?

You should use a spell chequer :-)

An "absolute url" (complete address) looks like:
http://www.example.com/path/style.css

If you use a "relative url", which does not start http:, then it must be
"resolved" with the address of the document*. What has been hapening is
that how the files are aranged locally, the relative url resolves correctly
to the url (address) of the stylesheet locally, but how they are arranged
on the server, it does not.

If the For example:

Absolute url:
http://www.example.com/
Relative url:
style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/index.html
Relative url:
style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/path/
Relative url:
style.css
Resolves to:
http://www.example.com/path/style.css

Absolute url:
http://www.example.com/index.html
Relative url:
dir/style.css
Resolves to:
http://www.example.com/dir/style.css

Absolute url:
http://www.example.com/path/
Relative url:
dir/style.css
Resolves to:
http://www.example.com/path/dir/style.css

Absolute url:
http://www.example.com/index.html
Relative url:
/style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/path/
Relative url:
/style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/path/more/index.html
Relative url:
/style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/index.html
Relative url:
style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/path/
Relative url:
../style.css
Resolves to:
http://www.example.com/style.css

Absolute url:
http://www.example.com/path/more/index.html
Relative url:
../style.css
Resolves to:
http://www.example.com/path/style.css

You can do a google search for "resolve a relative url".

* if you use a <base> element the href attribute of this will be used
instead of the address of the document.
"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)


Please correctly delimit your signiture with newline-dash-dash-space-newline
or remove it.


You should use a spell chequer :-)
Jul 20 '05 #3
On Thu, 14 Aug 2003 22:20:33 GMT, Brian
<us*****@mangymutt.com.invalid-remove-this-part> wrote:
andy johnson wrote:

I called an external stylesheet main.css, created the html files and
checked them locally OK. I uploaded everything to the server. When I
checked it, the connection kept crashing. I finally figured out that
the connection was freezing up every time I called index.html. I
changed the name of the stylesheet and changed the links, and I no


url?


The URL is http://www.oawater.com/ but my question was just generally
if main .css was a no-no. Doing a google search didn't turn up
anything conclusive, and the site is being put up with
oawstylesheet.css just fine. I just seemed strange that it would
freeze the connection that way. The style sheet name change fixed it.

Andy

"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)
Jul 20 '05 #4
On Fri, 15 Aug 2003 15:30:16 GMT, Brian
<us*****@mangymutt.com.invalid-remove-this-part> wrote:
<meta http-equiv="pics-label" content='(pics-1.1
"http://www.icra.org/ratingsv02.html" comment "ICRAonline EN v2.0" l
gen true for "http://www.oawater.com" r (nz 1 vz 1 lz 1 oz 1 cz 1)
"http://www.rsac.org/ratingsv01.html" l gen true for
"http://www.oawater.com" r (n 0 s 0 v 0 l 0))'>

What is the "pics-label" thing all about?
Don't know, this is just the code that is on the email to put in the
head of my files.
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">

Better to have the server announce the content type.
Maybe so, any link I can read? This, along with most all other things
you see on this web site is what I learned in the last week! I use
Coffee Cup for an editor, and that is what is put there for me.
<meta name="description"
content="The Ocean Atlantic Watermaker Company on the web... Here you
will find information on The Ocean Atlantic Watermaker Company product
line. We have on-line ordering, technical and installation help,
product support and engineering assistance">

Description is too long to be useful in indexing services. Here's a
rewrite of the content:
"product line, on-line ordering, technical and installation help,
product support and engineering assistance"

You may want something a bit more general, e.g., "Water purification
services in western Europe," or some such thing. But short!

<meta name="keywords"
content="ro, oaw, reverse osmosis, sea water, salt water, pure, water,
drinking water, salt, distilled water, distillation, ocean, atlantic,
watermaker, watermakers, ocean atlantic watermakers, osmosis, filter,
filtering, water filtering, water filter, ro watermakers, ro
watermaker, wholesale watermakers, wholesale watermaker, discount
filters, discount watermakers, discount watermaker, discounted
watermakers, watermaker sales, addacap, water filters,water filtering,
water filter, salt water filters, salt water filter, sea water
filters, RV filters, RV, pure water, large watermakers, ro water,
filter, filters, equipment financing, testing, Sprite, meter, water
quality testing, water quality, drink water, potable water, drinkable
water, ">

I can't think of any reason to include meta keywords, since no
widely-used search engine uses them.
This is a case of more Coffee Cup. The keywords are used in the site
search, however.
<meta NAME="REVISIT-AFTER" CONTENT="1 month">

Not an effective way to control caching. See
< http://www.mnot.net/cache_docs/ >
I'll re read and absorb little by little.....
<meta NAME="ROBOT" CONTENT="all">

Since the default behavior is "all" for robots, this is redundant.
This gets removed then.
<meta NAME="COPYRIGHT" CONTENT="2000,2001,2002,2003 The Ocean Atlantic
Watermaker Company">

Ok, but I'd put the copyright notice in the body, so that it's visible.
Has it.
<link
REL="Stylesheet"
TITLE="Default Stylesheet"
MEDIA="Screen"
HREF="http://www.oawater.com/styles/oawstylesheet.css"


<title>OAW Products Main Page</title>

<script language="JavaScript1.2" TYPE="text/javascript">
<!--

var bookmarkurl="http://www.oawater.com/"
var bookmarktitle="-=[ Ocean Atlantic Watermakers ]=-"

function ccaddbookmark() {
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarkti tle)
}
//-->
</script>

Why write a javascript function to duplicate a function that every
browser already has?


So I get to put what I want the favorites to see. Also a marketing
thing.

Thanks for your input, I really appreciate all of you going out of
your way to help those who are clueless, which would be me.

Andy

"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)
Jul 20 '05 #5
andy johnson / 2003-08-16 01:52:
On Fri, 15 Aug 2003 15:30:16 GMT, Brian
<us*****@mangymutt.com.invalid-remove-this-part> wrote:
<meta http-equiv="pics-label" content='(pics-1.1
"http://www.icra.org/ratingsv02.html" comment "ICRAonline EN v2.0" l
gen true for "http://www.oawater.com" r (nz 1 vz 1 lz 1 oz 1 cz 1)
"http://www.rsac.org/ratingsv01.html" l gen true for
"http://www.oawater.com" r (n 0 s 0 v 0 l 0))'>

What is the "pics-label" thing all about?


Don't know, this is just the code that is on the email to put in the
head of my files.


Yeah, it'll be /very/ meaningful, indeed. :D

IIRC pics-label is supposed to describe page content for filtering
software (but I guess everybody just tells that the content is
"suitable for everybody" here, including p0rn sites). The original
idea was probably that sites like "disney" could claim that they
have content suitable for small childrends?

If somebody has pointers to describe what all those flags and
numbers are supposed to mean, please, throw us a bone.

--
Mikko

Jul 20 '05 #6

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

Similar topics

192
by: Kwan Ting | last post by:
The_Sage, I see you've gotten yourself a twin asking for program in comp.lang.c++ . http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=45cd1b289c71c33c&rnum=1 If you the oh so mighty...
45
by: Steven T. Hatton | last post by:
This is a purely *hypothetical* question. That means, it's /pretend/, CP. ;-) If you were forced at gunpoint to put all your code in classes, rather than in namespace scope (obviously classes...
15
by: Fred Zwarts | last post by:
In C++ execution of a program starts already before execution of main(). The initialization of static variables defined outside the scope of main is performed first. I could imagine a program where...
75
by: Beni | last post by:
I have been programming in C for about a year now. It sounds silly, but I never took the time to question why a C(or C++ or Java) program execution begins only at the main(). Is it a convention or...
5
by: Seong-Kook Shin | last post by:
Hi, I'm reading Steve's "C Programming FAQs" in book version, and have two question regarding to Q11.16 ... Also, a `return' from `main' cannot be expected to work if data local to main might be...
13
by: Sokar | last post by:
I have my main function set up as int main(int argv, char *argv) so taht i can read in a variable which is passed to the program on the command line. The problem is that main calls other...
16
by: Geoff Jones | last post by:
Hi What is the closest equivalent to Main in a VB.Net form? Geoff
2
by: psuaudi | last post by:
I have a main query that I would like to call two different subqueries. In MS Access, I usually just save the two subqueries as separate queries which are then called by a third separate and main...
28
by: ravi | last post by:
Hello everybody, I am writing a small application which does some work before the user main function starts execution. I am trying to #define the main function. But the problem is that,
11
by: aarklon | last post by:
Hi all, I have heard many discussions among my colleagues that main is a user defined function or not. arguments in favour:- 1) if it is built in function it must be defined in some header...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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...

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.