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" rather than "body" is more reliable,
how do you specify the page background colour in css?
Is it true that to meet official standards all css sheets should be
presented in
lower case? Would that include things like "BODY" ("body"), TD,
A:ACTIVE etc?
Off the topic, but if you have two different (unrelated) bits of
javascript being used in a page, should the stuff that goes into the
head part of the doc be listed as two separate but consecutive
<script>blah</script> things, or can the two sections of script info
follow each other within one-only opening </script> and one-only
</script> (sorry, little knowledge of javascript - just pasting it
in).
Can anyone tell me a simple way of inserting some sort of code into a
Dreamweaver template (it goes at the bottom of the page in Copyright
info) that will cause the current year to be automatically inserted at
spot X when the pages are viewed that were produced from the template
or are linked to it?
Thanks
Dave 3 1789 ze********@yaho o.com.au (Dave) wrote: 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?
Depends. There are various browser issues with inheritence which means
that sometimes specifying for the most deeply nested element is a good
idea. But generally specifying styles that apply to the whole page via
the body selector is fine.
Is it true that to meet official standards all css sheets should be presented in lower case? Would that include things like "BODY" ("body"), TD, A:ACTIVE etc?
No.
However, note that under some circumstances a style using BODY {} will
not match XHTML using <body>. This is not an issue with HTML but can
be with XHTML (if the browser is parsing it as XML/XHTML rather than
as HTML, etc.).
Off the topic, but if you have two different (unrelated) bits of javascript being used in a page, should the stuff that goes into the head part of the doc be listed as two separate but consecutive <script>blah </script> things, or can the two sections of script info follow each other within one-only opening </script> and one-only </script> (sorry, little knowledge of javascript - just pasting it in).
One script element. Or better still, one external .js file.
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/>
Thanks Steve,
if I were to use the selector
body { }
then, is it best to add to it such as
body tr td { }
?
Is it true that browsers can "forget" to apply those (body) attributes
to text that is in table cells of within <div> tags?
Dave
Steve Pugh <st***@pugh.net > wrote in message news:<nh******* *************** **********@4ax. com>... ze********@yaho o.com.au (Dave) wrote:
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?
Depends. There are various browser issues with inheritence which means that sometimes specifying for the most deeply nested element is a good idea. But generally specifying styles that apply to the whole page via the body selector is fine.
Is it true that to meet official standards all css sheets should be presented in lower case? Would that include things like "BODY" ("body"), TD, A:ACTIVE etc?
No. However, note that under some circumstances a style using BODY {} will not match XHTML using <body>. This is not an issue with HTML but can be with XHTML (if the browser is parsing it as XML/XHTML rather than as HTML, etc.).
Off the topic, but if you have two different (unrelated) bits of javascript being used in a page, should the stuff that goes into the head part of the doc be listed as two separate but consecutive <script>blah </script> things, or can the two sections of script info follow each other within one-only opening </script> and one-only </script> (sorry, little knowledge of javascript - just pasting it in).
One script element. Or better still, one external .js file.
Steve ze********@yaho o.com.au (Dave) wrote: if I were to use the selector body { } then, is it best to add to it such as body tr td { }
The first selector matchs the body only, the second matches table cell
elements only. Depending on what you want to do they may or may not be
useful/
Is it true that browsers can "forget" to apply those (body) attributes to text that is in table cells of within <div> tags?
Some browsers do not inherit some properties into tables; and some
browsers may or may not depending on what doctype you use.
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/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: wired |
last post by:
Hi,
I've just taught myself C++, so I haven't learnt much about style or
the like from any single source, and I'm quite styleless as a result.
But at the same time, I really want nice code and I go to great
lengths to restructure my code just to look concise and make it more
manageable.
When I say this, I'm also referring to the way I write my functions.
It seems to me sometimes that I shouldn't have many void functions
accepting...
|
by: Wintersrush |
last post by:
I am working on a website that is using a Cascading Style Sheet. I've
created the primary webpages and .css page. The format is the same
throughout the entire website EXCEPT the color of the headings and
hyperlinks.
I need to make each site have a different color of those items. How do
I make the changes to each page, but keep the same .CSS?
Any feedback would be GREATLY appreciated!
|
by: Papadopoulos Giannis |
last post by:
Which do you think is best?
1.
a) type* p;
b) type *p;
2.
a) return (var);
b) return(var);
c) return var;
|
by: Natt Serrasalmus |
last post by:
After years of operating without any coding standards whatsoever, the
company that I recently started working for has decided that it might be a
good idea to have some. I'm involved in this initiative.
Typically I find that coding standards are written by some guy in the
company who has a way of coding that he likes and then tries to force
everybody else to write code the way he likes it, not for any rational
reason, but simply for the...
|
by: VK |
last post by:
Is my understanding correct that
due to the lack of CSS2 support Opera doesn't allow any access to
inline/linked style declarations?
Say in case:
<style type="text/css">
..foo {
color: blue;
}
</style>
....
| |
by: Robert |
last post by:
In a CSS imbeded my background image works. When moved to a LINKed CSS both my BODY and IMG declarations fail. All A (pointer) references continue to work.
I have tried all manner of variations on the declarations and variations on the target.
The following snipett shows the BODY and IMG sections that work when imbedded and fail when L INKed followed by the section that continues to work.
<style type="text/css">
<!--
body {color:...
|
by: jnag |
last post by:
I am trying to implement font changer, where I have links on the
banner of the site and when the user clicks on the links, the font
size of the page has to change. I tried
document.body.style.fontSize='50%' for example, on an onclick() event,
but it did not work.
I tried zooming with the following code, and it works:
<td valign="baseline"><a href="#" onclick="(document.body.style.zoom)?...
|
by: AAaron123 |
last post by:
<body runat="server" id="MainBody">
<form id="form1" runat="server" style="background-color:green; width: 100%;
height: 100%">
<br />
Table1" runat="server" Style="background-color:Yellow; width: 100%; height:
90%" BorderColor="Maroon"
|
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...
|
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...
|
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...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |