Class reference

If you are already comfortable using ANU styles, the code snippets below might help trigger your memory for the code patterns and class names. It is meant to be a quick reference only, so please visit the corresponding pages to read full details, including when we recommend you use the classes and examples of what they will look like.

$BodyBanner = '<div id="devlmsg">This is the development version of this site</div>';

All id options

devlmsg, acepmsg, testmsg, archivemsg

All class options

  • Text: text-left, text-right, text-center
  • Other: left, right, absmiddle (images only), clear, noclear

Position & weight class options

  • Sides (one of these must be specified): bdr-solid (all sides), bdr-left-solid, bdr-right-solid, bdr-top-solid, bdr-bottom-solid
  • Thickness: bdr-thick
<div class="box-header">
  <h2>Box heading</h2>
<div class="box-solid">
  <p>First paragraph</p>

Note: Box header is optional.

All class options

  • Header: box-header, box-header-black, box-header-grey
  • Box: box, box-solid, box-solid-black, box-solid-grey, box-bdr2, box-bdr2-uni
  • see background colours and borders
<div id="breadcrumb">
   <a href="homepage">Sitename</a> &raquo; <a href="item-a">Menu item a </a> &raquo; Page title

All class options


Inside a narrow div

<div class="narrow">
  <div class="anu-enq-uni">
    &raquo; <a href="">Enquire now</a>

Inside any other grid class div (eg wide)

<div class="wide">
  <div class="anu-enq-uni w-narrow">
    &raquo; <a href="">Enquire now</a>

All class options

anu-enq-uni, anu-enq-cass, anu-enq-cap, anu-enq-cbe, anu-enq-cecs, anu-enq-col, anu-enq-chm, anu-enq-cos

<script src="//" type="text/javascript">

<h2 class="nounderline">
  Undergradate students
<div class="anutoggle">
  <p>Content for undergraduate students.</p>

All class options

anutoggle, nounderline (see links)

All class options


text-white, text-gold, text-black


  • Colours: bg-black, bg-white, bg-tint
<div class="clear">
  <div class="dateblock">
    <div class="day">15</div>
    <div class="month">Jan</div>    
  <div class="datetext">
    <p>Text for block one.</p>

All class options

  • Date block: dateblock, dateblock-line, time, day, month, year, datetext
  • Time block: timeblock, timeblock-line, time, timetext
  • Generic block: dateblock, top-label, middle-label, bottom-label, datetext
  • Month calendar: calendar, eventday
  • Other: clear
  • see boxes, alignment, divider lines
<div class="divline-solid doublewide"></div>

All class options

  • Solid: divline-solid
  • Bold: divline-boldheading-gold, divline-boldheading-black
  • Width: w20, w30, w40, w50, w60, w70, w80
<p class="msg-error">
  This is an error message

All class options

msg-error, msg-warn, msg-info, msg-success

<form class="anuform" action="myscript.php" method="post">
    <legend>First fieldset heading</legend>
      <label for="requester" class="req">Name</label>
      <input type="text" class="text" id="requester" name="requester" size="32" />
  <p class="text-right">        
    <input type="submit" name="submit" value="Submit" />

Note: See forms for a more detailed example which uses other class options.

All class options

  • Form: anuform, labelwide, labelfull
  • Fields:text, textinactive, req, instruction
  • Input buttons: btn-uni-grad, btn-black-grad, btn-tiny, btn-small, btn-medium, btn-large, btn-xlarge
<div class="doublewide">
  <p>First paragraph</p>

All class options

  • Grid: narrow, doublenarrow, wide, doublewide
  • Responsive options: show-rsp1, show-rsp2, show-rsp3, show-rsp4, show-rsp, hide-rsp, anu-col-right, anu-right-swap1, anu-right-swap2, anu-right-swap3, anu-left-swap1, anu-left-swap2, anu-left-swap3
<a href="">
  <img src="//" class="icon-app-store" alt="Download on the App Store" />

All class options

  • iTunes App Store: icon-app-store, icon-app-store-small
  • Google Play: icon-android-app, icon-android-app-small, icon-google-play, icon-google-play-small
<img class="w50px" src="200x200.jpg" alt="description">

All class options

  • w16px, w32px, w48px, w50px, w64px, w75px, w100px, w120px, w150px, w200px, w320px, w440px

You should only fix the width of images in certain circumstances. See images size for details.

Read more link

<p class="readmore">&raquo; <a href="#">read more</a></p>

No underline

<p>This is an example of the <a href="#" class="nounderline">no underline</a> class.</p>

Lists of links

<ul class="linklist">
  <li><a href="#">List item 1</a></li>
  <li><a href="#">List item 2</a></li>
  <li><a href="#">List item 3</a></li>

All class options

  • readmore, nounderline, linklist
  • see text and background colour options
<ul class="extraspace">
  <li>List item 1</li>
  <li>List item 2</li>
  <li>List item 3</li>

All class options

  • Spacing: extraspace, extraspace2
  • Bullets and numbering: nobullet, alpha and roman (<ol> only)
  • Indent: noindent, hangindent
  • Icons: iconlist, horus, isis, wattle, admin, mail, lib, is, dates, timetable, alliance
  • Other: linklist (see links)

iTunes App Store

<a href="">
  <img src="//" class="icon-app-store" alt="Download on the App Store" />

Google Play

<a href="">
  <img src="//" class="icon-android-app" alt="Android app on Google Play" />  
  • iTunes App Store: icon-app-store, icon-app-store-small.png*
  • Google Play: icon-android-app, icon-android-app-small*, icon-google-play, icon-google-play-small*

* Note that for small icons, add '-small' to the end of the image src.


<img src="image.jpg" alt="description of image" class="right marginleft">


<div class="doublenarrow nopadbottom">
  • Padding: nopadtop, nopadbottom, nopad, padtop, padbottom, padleft, padright
  • Margins: nomargintop, nomarginbottom, nomargin, margintop, marginbottom, marginleft, marginright
  • Other: squish, extraspace (see lists)
<div class="pagetabs-nav">
    <li><a href="link1">2010</a></li>
    <li><a href="link2" class="pagetabs-select">2009</a></li>
    <li><a href="link3">2008</a></li>
    <li><a href="link4">2007</a></li>

All class options

  • pagetabs-nav, pagetabs-select
<img src="//" alt="no photo available" class="w100px" />

All class options

  • caption-2line, caption-3line
  • see images for widths class options
<div class="pullquote right">
  <p>Text of the right aligned pull quote.</p>

All class options

RSS icon in menu

  <a href="#" class="menu-rss">
    <img src="//" class="w16px right" alt="RSS feed" />
  <?php echo $SiteShortName ?>

All class options

See RSS for all RSS icons and instructions on inserting a feed.

Share bar

<div class="anu-share noprint"></div>

or, including Pinterest:

<div class="anu-share noprint"

Follow icons

<div class="social-icons">
   <a href="">
    <img src="//" alt="ANU on Facebook"/>
<table class="tbl-row-bdr">
     <th>Heading 1</th>
     <th>Heading 2</th>
     <td>Cell 1 contents</td>
     <td>Cell 2 contents</td>

*Note: For floating headers or sideways scrolling tables, the following JavaScript must be called:

<script src="//" type="text/javascript"></script>
<p class="large">
  This will display as large text.

All class options

See the text page for elements such as bold, italics, headings.

Updated:  7 June 2021/ Responsible Officer:  Director Marketing/ Page Contact:  Webstyle