PC Review


Reply
Thread Tools Rate Thread

css page problems

 
 
Mark
Guest
Posts: n/a
 
      21st Oct 2009
I am trying to create a style sheet where I can then change all the
backgrounds in my web pages. I put this in a css page and then I select the
style sheet on the web page but nothing shows. if I put the code below into
the web page it works. I'm not sure what I'm doing wrong.


<style type="text/css">
body {background: #EFEFEF url(images/bggreen.jpg) repeat-x
</style>








 
Reply With Quote
 
 
 
 
Ronx
Guest
Posts: n/a
 
      21st Oct 2009
<style type="text/css">
body {background: #EFEFEF url(images/bggreen.jpg) repeat-x
</style>

will not work in Firefox - it should be:

<style type="text/css">
body {background: #EFEFEF url(images/bggreen.jpg) repeat-x;}
</style>

Note the curly bracket after repeat-x;

What link are you using to the extenal stylesheet? What other code follows
this link in the <head> section of the page? And what is in the <body...>
tag? Finally, is the path from the stylesheet to bggreen.htm correct? It
should be the relative path from the stylesheet to the image.
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.



"Mark" <(E-Mail Removed)> wrote in message
news:62F6F336-6425-423E-96A0-(E-Mail Removed)...
> I am trying to create a style sheet where I can then change all the
> backgrounds in my web pages. I put this in a css page and then I select
> the style sheet on the web page but nothing shows. if I put the code
> below into the web page it works. I'm not sure what I'm doing wrong.
>
>
> <style type="text/css">
> body {background: #EFEFEF url(images/bggreen.jpg) repeat-x
> </style>
>
>
>
>
>
>
>
>

 
Reply With Quote
 
ANONYMOUS
Guest
Posts: n/a
 
      21st Oct 2009
You need to link the style sheet like this:

<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen>

Substitute your name for "style.css"

The above link is placed in the header section of the html page:

<html>
<header>
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen>
<title>Linking style sheet</title>
</header>
<body>
this is the body of my page
</body>
</html>

Hope this helps. If you could give us link to your page then we can
have a look at it to see what is wrong with your CSS file.







Mark wrote:

> I am trying to create a style sheet where I can then change all the
> backgrounds in my web pages. I put this in a css page and then I
> select the style sheet on the web page but nothing shows. if I put
> the code below into the web page it works. I'm not sure what I'm
> doing wrong.
>
>
> <style type="text/css">
> body {background: #EFEFEF url(images/bggreen.jpg) repeat-x
> </style>
>
>
>
>
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with print preview and printing single page of multi-page report w/sub-reports Tony Microsoft Access Reports 0 8th Oct 2007 06:19 PM
Haveing Page Formatting problems with Crystal Report in my asp.net page.. RSB Microsoft ASP .NET 0 21st Jul 2005 10:17 PM
Haveing Page Formatting problems with Crystal Report in my asp.net page.. RSB Microsoft Dot NET 0 21st Jul 2005 10:17 PM
Haveing Page Formatting problems with Crystal Report in my asp.net page.. RSB Microsoft C# .NET 0 21st Jul 2005 10:17 PM
Haveing Page Formatting problems with Crystal Report in my asp.net page.. RSB Microsoft VB .NET 0 21st Jul 2005 10:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:07 AM.