473,903 Members | 4,521 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8651
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.i nvalid> wrote in message news:<sH******* *********@newsf ep2-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*****@mangym utt.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.c ss 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*****@mangym utt.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="tex t/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="descripti on"
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,2 001,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.c ss"


<title>OAW Products Main Page</title>

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

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

function ccaddbookmark() {
if (document.all)
window.external .AddFavorite(bo okmarkurl,bookm arktitle)
}
//-->
</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*****@mangym utt.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
9060
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 programmer that you pretend to be, why don't you just write some? (And oh, void main is still not allow by the C++ standard.) Seeming as how you tried to quote the standard in an attempt to pretend you're right, I'll quote the standard to once...
45
3644
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 themselves are an exception to this), and 'bootstrap' your program by instantiating a single application object in main(), would that place any limitations on what you could accomplish with your program? Are there any benefits to doing things that...
15
2897
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 the whole job can be done in the constructor and destructor of a static variable. (Wouldn't that be the ultimate OOP program, just the creation and deletion of an object?) Does the C++ standard require to have a (dummy) main() function in such...
75
9927
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 is there some deeper underlying reason?
5
2815
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 needed during cleanup. (Finally the two forms are obviously not equivalent in a recursive call to `main'). My questions are
13
7795
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 functions and some of them need to start jump to the start of main. If my main setup was just int main() this would be no problem, i could just call main(); The problem is main needs parameters passed to it now. Would any1
16
2153
by: Geoff Jones | last post by:
Hi What is the closest equivalent to Main in a VB.Net form? Geoff
2
2678
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 query. However, I'd like to put them all into one SQL command. Is this possible? Here are the queries: -This query calls the other two queries below- SELECT ., ., Format(((.Date)-(.Date)),"Fixed") AS , .Type FROM INNER JOIN ON (. = .) AND...
28
6073
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
3595
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 file but it is n't.
0
9847
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10873
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10983
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10500
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8048
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5894
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4308
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3324
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.