3 replies [Last post]
Sleepy
Offline
newbie
Denmark
Last seen: 10 years 35 weeks ago
Denmark
Timezone: GMT+1
Joined: 2009-11-28
Posts: 2
Points: 3

I have a peculiar problem. I am currently working on a documentation page for the telescope I am working at. And I have a set of txt files containing the html + the text used in this documentation, I have made a css. to make it look nice and with the help of a PHP-script everything is put together in the right order. The problem is that I have now been told that the modules should be used other places as well, e.g. in the general instrument documentation and in very specific places.

So my question is now is there any way of making the CSS apply one page but not one the other e.g.

<div id="cookbook">
   <p class="cb"> This will apply the class CB in the documentation</p>
</div>
 
<p class="cb"> This will NOT apply CB </p>

So the CSS should only apply class="CB" if it is passed inside a id="cookbook"

any ideas?

Cheers,
Sleepy

Tags:
rmfred
rmfred's picture
Offline
Elder
Rock Springs, WY
Last seen: 1 year 43 weeks ago
Rock Springs, WY
Timezone: GMT-6
Joined: 2004-01-31
Posts: 1073
Points: 31

#cookbook p.cb {your styles}

#cookbook p.cb {your styles}

Sleepy
Offline
newbie
Denmark
Last seen: 10 years 35 weeks ago
Denmark
Timezone: GMT+1
Joined: 2009-11-28
Posts: 2
Points: 3

for the cookbook

p.cb {
	border: none;
	margin-left: 0.5cm;
	margin-right: 0.5cm;
	text-align: justify;	
}

For tags that are not cookbook related

font,th,td,p { 
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

So I have a p and a p with class (cb) and the last should only apply if specified inside a div with id (cookbook) how do I do that?

I just now realized what you meant.. Thanks a lot...

ganesh kumar
Offline
newbie
Last seen: 10 years 35 weeks ago
Timezone: GMT+5.5
Joined: 2009-12-04
Posts: 1
Points: 1

I have a big problem?I am

I have a big problem?I am currently working on a web design and SEo .I have a blog posting.
Naat.

If this is not spam, open a new topic rather than hi-jacking this thread. --gt