473,721 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_styl e.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 2000
gk*****@freestu ffland.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_styl e.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*****@freestu ffland.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*****@freestu ffland.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_styl e.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*****@freest uffland.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_styl e.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*****@freestu ffland.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*****@freestu ffland.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
1611
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: ---------------------------- <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="rates.xsl"?> <rates> <pagetitle>Rates 2003/2004</pagetitle>
0
1280
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: ---------------------------- <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="rates.xsl"?> <rates> <pagetitle>Rates 2003/2004</pagetitle>
3
2054
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 not alter the document tree. In particular, it is >not fed back to the document language processor (e.g., for reparsing).
5
10008
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 inline styles, but I would like to move them to external stylesheets, if possible. I did some Google searches, and I found links that seemed to suggest that multiple stylesheets could be linked to a single page, but didn't give the details as how...
1
1387
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 and instead it looks to have widenened. when i remove the link tag the original format is restored. Please help.
18
2493
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 to continue work until I understand what I'm doing wrong. http://www.christchurchinfo.net The site displays nicely in Firefox/Mozilla and Safari, but the stained glass windows navigation portion is getting pushed down in IE, and the "news"...
0
1279
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 uploaded it to a Linux server. My site is www.raygonzalezlaw.com My template page is called carina.dwt <!-- TemplateBeginEditable name="doctitle" --> <title>The Law Offices of Ray A. Gonzalez</title> <!-- TemplateEndEditable --> <meta...
8
1936
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) { if (strpos($Address, '@') !== FALSE && strpos($Address, '.') !== FALSE) { return true; } else if (validateSender($_GET) == false) {
1
2683
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" type="text/css" /> <script src="Dunbarlab9.js" type="text/javascript"></script> <script type="text/javascript">
0
8840
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8730
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
9367
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9215
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
9131
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,...
1
6669
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
4484
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
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3189
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

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.