Skip navigation.

Ramblings

a test …

Posts tagged with "my.opera"

Adding a disclaimer to your blog

, , , ...

Some of you have asked how I added a disclaimer to my blog. It's basically a simple CSS addition.

By going to My Account -> Change design -> custom stylesheet adding the following CSS in the form presented and making sure Use my custom style sheet together with the current theme is selected you can quickly add a nice and shiny disclaimer showing on top of all your blog. Nice and easy :wink:

Using the :before selector on the main element lets you add a fake element right before the main content starts. The content: attribute lets you even fill out the text.

So, go ahead, and feel free to show me how you use it!


#mainwrap:before {
      content: "The views expressed in this blog are my own and do not necessarily reflect the views of any former, current or future employers or employees of mine.";
      color: black;
      background-color: #ffff99;
      font-style: italic;
      border: solid #aaaa77 1px;
      padding: 10px;
      white-space: normal;
      margin-bottom: 15px;
      margin-right: 210px;
      float: none;
      width: auto;
      display: block;
}
Download Opera, the fastest and most secure browser
December 2009
M T W T F S S
November 2009January 2010
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31