-
AuthorPosts
-
dieudonne Friend
dieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
October 17, 2011 at 3:19 pm #169756Hello,
how to change the h3, h4, h5 and h6 only in articles.
If I add lines like this (in the end of template.css)
h3 { color:#584; }
ou body h3 { color:#584; }
or h3.body { color:#584; }The color change but everywhere.
I want to change only in the articles.I try this, but it change nothing :
.content.h3 { color:#584; }So what can I do to add a css’s line which change only the h3 or h4 only in the artiles
Thank you in advance.pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 17, 2011 at 3:35 pm #419806Hi
I think you can create a new css class
.articleclass {font-face: arial; font-size: 10px;}
then in your article you can apply this code
<p class="articleclass">your text here</p>
jneubauer Friendjneubauer
- Join date:
- August 2011
- Posts:
- 141
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 23 times in 23 posts
October 17, 2011 at 3:36 pm #419807hmm – is this something you’ll be using throughout the site?
If it’s only going to be used a couple times it might be best to just have local styling.
You’re right, if you change it in the css files it is going to be changed for every instance of that in the entire site.dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
October 17, 2011 at 6:31 pm #419840Yes I know this.
But I don’t want to add a class for each h3, h4, etc…I think it is possible to add a css code to change automatically the h4, h3, etc, only in a article.
The properties for the ja-news featured module is :
.ja-zinfp-normal h4.ja-zintitle a {
display: block;
padding: 4px 8px;
}The css properties for the janewspro module is :
.default .ja-zincat h3 a {
color: #FFFFFF;
}So, how to add specifics properties for a article ??
Thank in advance.
dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
October 18, 2011 at 1:12 pm #420000Any news ??
jneubauer Friendjneubauer
- Join date:
- August 2011
- Posts:
- 141
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 23 times in 23 posts
October 18, 2011 at 2:24 pm #420010I think your reference above is exactly what Pavit was suggesting earlier.
You have two options here:- Add your own CSS classes, then use them whenever you want the unique styling options. You stated above that you want to do that, then when Pavit suggested it, you said you didn’t want to. So that leaves us with the second option.
- Use local styling to modify the appearance of the item on an individual basis.
I’m not sure which of those options you want to use – they will both work fine, and may have individual pros or cons depending on your situation, how many times you want to use them, etc.
1 user says Thank You to jneubauer for this useful post
n6rej Friendn6rej
- Join date:
- November 2006
- Posts:
- 1040
- Downloads:
- 0
- Uploads:
- 63
- Thanks:
- 79
- Thanked:
- 145 times in 90 posts
October 18, 2011 at 2:45 pm #420016jon, Pavit, could he apply a suffix to the category?
dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
October 26, 2011 at 12:36 pm #421675Where is Jon and Pavit ?
n6rej Friendn6rej
- Join date:
- November 2006
- Posts:
- 1040
- Downloads:
- 0
- Uploads:
- 63
- Thanks:
- 79
- Thanked:
- 145 times in 90 posts
October 26, 2011 at 2:31 pm #421688your going to have some work to do, modules and “articles” behave differently. While its very easy to supply a suffix to a module its not for an article… HOWEVER.. there is a solution.
if you’ll look @ the image you’ll see 2 areas I’ve circled.
one is a general article class, another is a category class ( blog ) and specific article class’s… one of these will do as you request.
Again, firebug will help you tremendously here by allowing you to “play” w/o any permanent changes occurring.
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 4 voices, and was last updated by n6rej 13 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How to change the h3, h4, h5 and h6 just in a article ?
Viewing 9 posts - 1 through 9 (of 9 total)