0

Is there a specific drupal way to focus on one specific part of a nodes element in the css path? For example if I change the H2 element within my theme css it changes all H2... How can I change one specific one on the page. The object is to be able to focus on particular elements to make them unique... If this is possible how do I write the style declarations?

closed as not a real question by kiamlaluno Oct 22 '12 at 17:27

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Your node should have a class on it. – Alex Gill Oct 18 '12 at 16:16
  • my nodes have classes... What I am referring to is the css declaration path... it looks somewhat like this in drupal ---- html body.question-page div.container div#content div div#mainbar div#question.question table tbody tr td div#comments-48081.comments table tfoot tr td.comment-form form#add-comment-48081 table tbody tr td input ----- – Sun Rhythms Oct 18 '12 at 16:18
  • I am asking for general practice on focusing on one element to be able to change that one element in my css... hopefully that makes sense. – Sun Rhythms Oct 18 '12 at 16:19
0

Drupal allows your site to have many Themes installed. Themes can define their own HTML structure to make your site look a certain way. Drupal has a few themes the ship out-of-the-box.

Depending on the theme you use it may or may not contain HTML classes or ids in the source to easily target specific items on the page. Typically, themes and Core html is fairly darn flexible.

Looking at the Zen Theme HTML and CSS markup you can see it has fairly specific rules to get at and theme alot of the content from Zen and also core drupal themes: Useful CSS selectors to add to your stylesheets

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