|
Posted by dorayme on 07/29/05 13:59
From: Cogito <nospam@nospam.nospam>
These lines of code do not do much in my case (I'm sure I've done
something wrong). My index column consists of a few bullets and links,
all in straight html and no css tags at all. Where exactly do I place
your code? Should I place it within <style> tags and then refer to it
somehow?
Yes, that's it. Put the style instructions as recommended between the
style tags, stick all that in the head of the doc (simplest perhaps if
you have just a few things) and then get the instructions implemented in
the bits of the html in the body. For example, if you want some div or p
to have red type, you can put in the style part in the head like this:
div.loud {color: red}
and where you want the text red you hook up by
<div.loud>Some text...</div>
This is class selection, the use of the dot notation indicates this.
Sometimes folk use another type of selection - ID selection and it is
marked by # notation. ID instruction is like this: #loud or div#loud and
then used (once only per page, unlike with a class). In the head between
the style tags:
div#loud {color: red}
and in the html at the part where you want text red:
<div#loud>Text...</div>
This may be of limited help. body also can be styled with backgrounds
and images etc, and I recommend you read up on the many tutes available
online on css. Get a basic primer, any will do for a start. And then
perhaps come back with qs that you have after some basic study. Take no
notice of some of the insolent replies you have had, the world is a
troubled place full of mad people.
By the time I ever get to write stuff like this, someone will perhaps
have helped you further. There are some good and patient people on this
newsgroup. One person even gets drunk and writes love letters to the
group as a whole. Honest.
dorayme
[Back to original message]
|