472,958 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 1966
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"...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.