473,387 Members | 1,745 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.

Having trouble linking to stylesheet

Hi:

I am brand new to css and a have a limited amount of working knowledge
regarding HTMl. This is primarily from using Frontpage. I recently
purchased Stylemaster, a css authoring program, and created a
stylesheet. Here's my problem. When I link to the stylesheet only
the background image appears. None of the other statements describing
the page seem to work. I have embedded the code in another page and
that page works fine. This is the link code that is inserted in the
head section of the page <link rel="stylesheet" type="text/css"
href="beta_style.css" /> I have saved both the page and stylesheet
in the same folder on my computer. Any help would be great.

Thanks
Gary

May 22 '06 #1
9 1983
gk*****@freestuffland.com wrote:
When I link to the stylesheet only
the background image appears. None of the other statements describing
the page seem to work. I have embedded the code in another page and
that page works fine. This is the link code that is inserted in the
head section of the page <link rel="stylesheet" type="text/css"
href="beta_style.css" /> I have saved both the page and stylesheet
in the same folder on my computer. Any help would be great.


That should work just fine. Make sure the link tag is in the head. Can
you provide a URI for the page, there may be something else going on.
--
Brian O'Connor (ironcorona)
May 22 '06 #2
gk*****@freestuffland.com wrote:

[...], and created a
stylesheet. Here's my problem. When I link to the stylesheet only
the background image appears. None of the other statements describing
the page seem to work. [...]

An URL would go a long to way.
The most likely reason is that there is an error in the CSS code. But
without an URL anything else is WAG.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
May 22 '06 #3
gk*****@freestuffland.com wrote:
Hi:

I am brand new to css and a have a limited amount of working knowledge
regarding HTMl. This is primarily from using Frontpage. I recently
purchased Stylemaster, a css authoring program, and created a
stylesheet. Here's my problem. When I link to the stylesheet only
the background image appears. None of the other statements describing
the page seem to work. I have embedded the code in another page and
that page works fine. This is the link code that is inserted in the
head section of the page <link rel="stylesheet" type="text/css"
href="beta_style.css" /> I have saved both the page and stylesheet
in the same folder on my computer. Any help would be great.

Thanks
Gary


Try validating the CSS file at <http://jigsaw.w3.org/css-validator/>.
Sometimes, the first error encountered in a style-sheet file inhibits
any processing of later declarations in the same file. (It is more
likely that an error in a declaration merely inhibits further processing
of that declaration.)

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
May 22 '06 #4
Hi Brian:

Sorry for the late response.

Here's the url to the stylesheet.
http://freestuffland.com/beta_site/beta_style.css

and the url to the linked page:
http://freestuffland.com/beta_site/test.htm

Hope this is what you wanted. All the images are housed in the same
folder. Thanks for looking.

Gary

May 23 '06 #5
Hi Jim:

Sorry for the late response.

Here's the url to the stylesheet.
http://freestuffland.com/beta_site/beta_style.css

and the url to the linked page:
http://freestuffland.com/beta_site/test.htm

Hope this is what you wanted. All the images are housed in the same
folder. Thanks for looking.

Gary

May 23 '06 #6
Hi David:

Thanks for the info. Took your advice and ran the stylsheet thru w3c
cameback with a bunch of warnings. I am going to try to correct them
all and re-check. Will let everyone know what happens.
Thanks
Gary

May 23 '06 #7
<gk*****@freestuffland.com> wrote:
Sorry for the late response.
By not posting the URL in the original message, you mainly created trouble
to yourself, preventing others from helping you.
Here's the url to the stylesheet.
http://freestuffland.com/beta_site/beta_style.css

and the url to the linked page:
http://freestuffland.com/beta_site/test.htm


But that's different from what you wrote previously, when you described your
link element as

<link rel="stylesheet" type="text/css" href="beta_style.css" />

The HTML document you mention contains

<style type="text/css" ></style>
<link rel="stylesheet" type="text/css"
href="http://user831273.wx8.registeredsite.com/beta_site/beta_style.css" />

The empty <style> element is pointless, though probably harmless, and using
an absolute URL as the address of the stylesheet is odd.

Originally, you wrote: "Here's my problem. When I link to the stylesheet
only
the background image appears. None of the other statements describing
the page seem to work."
The URL you gave now refers to an HTML document with an empty <body>
element. What do you expect to happen in the rendering of such a document?

May 23 '06 #8
gk*****@freestuffland.com wrote:
Hi Brian:

Sorry for the late response.

Here's the url to the stylesheet.
http://freestuffland.com/beta_site/beta_style.css

and the url to the linked page:
http://freestuffland.com/beta_site/test.htm

Hope this is what you wanted. All the images are housed in the same
folder. Thanks for looking.


The problem is that you don't have any html in the body.
--
Brian O'Connor (ironcorona)
May 23 '06 #9
gk*****@freestuffland.com wrote:

and the url to the linked page:
http://freestuffland.com/beta_site/test.htm

I've been on vacation. Ah....
The URL above does not work.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jun 2 '06 #10

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

Similar topics

1
by: Mike | last post by:
I need to have some links within an xml document to external pages. I have tried with the below xml and xsl documents(the proposed link has a tag called link under paragraph): XML:...
0
by: Mike | last post by:
I need to have some links within an xml document to external pages. I have tried with the below xml and xsl documents(the proposed link has a tag called link under paragraph): XML:...
3
by: Headless | last post by:
Should linking generated content work? Example: span:before{content:"foobar"} <a href="foobar.htm"><span></span></a> I stumbled across this bit in the CSS2 spec: >Generated content does...
5
by: Don G | last post by:
Is it possible to link multiple stylesheets to a single web page? I have an overall stylesheet for my entire site, but there are a few pages with a minor differences. I originally had these as...
1
by: chitrasai | last post by:
Hi Could someone tell me why the page looses its format after i link an external stylesheet? If you see below i have an external stylesheet. When i do this the table structure is totally lost...
18
by: fishwick | last post by:
I haven't really done any css in quite a while, and am banging my head against the wall trying get the rudimentary layout together of a church website home page to display correctly - I don't want...
0
by: nachitas | last post by:
I was wondering if anybody could help me with this. I am new to CSS and think I understand it. My problem is that I had my template page working (it would update all my other pages) until I...
8
by: cutlass | last post by:
Need you assistance to anyone who is willing to offer. I have been working on this script and can't get it to work. The issue I'm having is the statement: function validateSender($Address)...
1
by: ced69 | last post by:
having trouble getting marquee to work get object required errors tring t <title>This Month at the Chamberlain Civic Center</title> <link href="styles.css" rel="stylesheet"...
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: 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...
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: 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,...

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.