Help:Cascading Style Sheets: Difference between revisions

Content deleted Content added
Tag: Reverted
Tag: Reverted
Line 109:
<div class="someclass noprint">This will not appear in the print version.</div>
</syntaxhighlight>
 
== Major style blocks ==
[[File:Wikimedia major style blocks example.svg|right|thumb|An annotated desktop screenshot of [[Wikipedia:Example|an example article]], showcasing the style blocks]]
*''column-content'' – overall space within the margins of which the content exists.
* ''firstHeading'' – the class of the heading tag at the top of every page
*''contentSub'' – the name of the wiki immediately underneath the main heading, but above the body text
* ''content'' – the white background, thin bordered box which contains the main page content.
* ''bodyContent'' – the main page content within the content box
 
The portlet class is the style used by all the div blocks around the main content. Identified blocks using that class:
*''p-cactions'' – id for the list of page-related tabs above the main content (page, talk, edit, etc.), top.
*''p-personal'' – id for the list of user-related links above the main content (username, talk, etc.), top.
*''p-logo'' – id for the block that contains the logo, top left.
*''p-navigation'' – id for the block that contains the navigation links on the left of the page
*''p-search'' – the block that contains the search buttons
*''p-tb'' – the block that contains the toolbox links
*''p-lang'' – the block that contains interlanguage links
 
The footer at the bottom of the page includes blocks with the following ids
*''footer'' – overall footer container block
*''f-poweredbyico'' – the powered by MediaWiki image that normally resides to the right of the page
*''f-list'' – id for the list that contains all the bits of text at the bottom of the page
 
== Style depending on a parameter or variable ==