473,386 Members | 1,712 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,386 software developers and data experts.

body selector not registering in ff

I am re doing a friends site using css, and have a problem with the
formating applied to the body not registering in firefox. It works fine
in IE and Opera, the only other browsers I've tried it in.
Page in question is here:

http://www.stgeorgearmoury.co.uk/dev/index.html

Any help greatly appreciated.

PS The original, done before I even knew what a tag was, is at

http://www.stgeorgearmoury.co.uk/index.html

You can see why I'm re doing it!

--

Merlin
Jul 21 '05 #1
4 1590
Merlin Fradley <me************@btinternet.com> wrote:
I am re doing a friends site using css, and have a problem with the
formating applied to the body not registering in firefox. It works fine
in IE and Opera, the only other browsers I've tried it in.
Page in question is here:

http://www.stgeorgearmoury.co.uk/dev/index.html

Any help greatly appreciated.


You have HTML in your CSS file. Take out the <style> tags and the HTML
comments. Comments in CSS are of the form /* comment */

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 21 '05 #2
On Fri, 04 Feb 2005 08:42:26 +0000, Merlin Fradley
<me************@btinternet.com> wrote:
I am re doing a friends site using css, and have a problem with the
formating applied to the body not registering in firefox. It works fine
in IE and Opera, the only other browsers I've tried it in.
Page in question is here:

http://www.stgeorgearmoury.co.uk/dev/index.html

Any help greatly appreciated.

PS The original, done before I even knew what a tag was, is at

http://www.stgeorgearmoury.co.uk/index.html

You can see why I'm re doing it!


Lose this following '->' marked stuff from your style sheet...

-> <style>
-> <!--

-> <!-- [...] -->
-> <!-- [...] -->

[all your CSS is here]

-> -->
-> </style>

....i.e. don't use (X)HTML markup constructs inside a style sheet file.

Comments inside CSS is through /* ... */ constructs only, and they
don't nest.
Jul 21 '05 #3
Steve Pugh wrote:
Merlin Fradley <me************@btinternet.com> wrote:

I am re doing a friends site using css, and have a problem with the
formating applied to the body not registering in firefox. It works fine
in IE and Opera, the only other browsers I've tried it in.
Page in question is here:

http://www.stgeorgearmoury.co.uk/dev/index.html

Any help greatly appreciated.

You have HTML in your CSS file. Take out the <style> tags and the HTML
comments. Comments in CSS are of the form /* comment */

Steve

Hey! It works! The HTML was put in by the authoring program I use
(Matrix Y2K) which I am generally happy with, and I had assumed it was
trying to make sure browsers never tried to display the css itself. I
left it in just because it was easier than deleting it I guess. Lazy! If
you look, you will find my /* comments */ are in the right format, but
thanks for the tip, and thanks for the solution! I was going to try a
div enclosing everything in the body, but that seemed a little silly.
Thanks again!

--

Merlin
Jul 21 '05 #4
>"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor


PS Nice sig!
--

Merlin
Jul 21 '05 #5

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

Similar topics

3
by: Dave | last post by:
Hi Is specifying attributes (basic font size, colour etc) with a "body" tag in a style sheet as good as putting those things in a basic "p" tag for the sheet? If the answer is that using "p"...
6
by: Patrick | last post by:
Hi I am a newbie struggling a little with css.It is hard to get it right in all browsers, so i decided to read the CSS2 specification on the w3 site. What is the following from the CSS2...
12
by: Blake West | last post by:
Is there a way to write a CSS selector to point to the body tag in a specific frame? The frameset HTML looks like this. I only want to select the BODY tag in the frame named "navbar" and then...
6
by: bigoxygen | last post by:
Hello. I would like to have a title bar (that has a logo) that is flush with the top of the browser display window. My code right now looks like this... <body id="evalResults"> <div...
3
by: Viken Karaguesian | last post by:
Hello all, Me again :>) Can I modify certain attributes in a style within a stylesheet? Example: I have a style sheet that looks like this: body { background-color: black; font-family: Arial;...
11
by: Joe | last post by:
If you display the styles in use at Yahoo.com, you can see some interesting things. For example, this: html>body{font:84.5%/122% arial;} I tried creating a sample page using this style and it...
5
by: Dan Novak | last post by:
Hello, I'm trying to apply different backgrounds to a page based on the BODY element class. It's working on some browsers but not on others. I've searched Google and the groups, pored through...
5
by: ~~~ .NET Ed ~~~ | last post by:
Well the subject says it all but I am going to elaborate a bit. As we all now since 2.0 it is possible to access the Header from code behind without much wizardry and that is a good thing. ...
4
by: Haines Brown | last post by:
I wish to select and style elements in a page having a body of a given class. <body class="page"> <div class="inside"> <div id="a"> <p>Content of #a</p> </div> <div class="b"> <p>Content of...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...

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.