Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

If have a problem with the componentheading and the contentpagetitle.

I got a sectionblog for my articles. The title of the page is a componentheading. The title of the articles (intro) is a contentpagetitle.

If I click on the title of a article, I can see the entire article. The title of the page is now the title of the article (contentpagetitle), and that is good.

The problem is, this title now needs the same layout as the componentheading. But if I do this, the titles of the articles also get this layout in the sectionblog

How can I make sure I got 2 different styles, or the contentpagetitle changes in a componentheading while looking at the full article?

I you don't uderstand what I'm saying just go to http://csm.infowebpreview.be/nl/realisaties, and click on the first title 'Realisatie'. The full article opens and the title 'Realisatie' should be underlined now.

Or this is also correct: if an article is the only article on a page the title should get another layout

Thanks

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

This is the answer:

You can do this by being more specific with the CSS selector -

This one will apply to all of the titles, make this one the one for the main heading with the underline -

h2.contentheadingrealisaties{border-bottom: 1px solid #333}

Then use this to single out the article titles in a listing:

.leadingrealisaties h2.contentheadingrealisaties{border:0;}

Obviously you will need to add in the rest of the CSS, but this will get you started.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.