Difference between revisions of "Template: FrontpageBox~"
From Teknologisk videncenter
m |
m |
||
Line 16: | Line 16: | ||
|3=AAAAC8 | |3=AAAAC8 | ||
}}; font: 11pt; font-weight: bolder; position: relative;border-top-right-radius:5px; -moz-border-radius-topright:5px; -webkit-border-top-right-radius:5px;border-top-left-radius:5px; -moz-border-radius-topleft:5px; -webkit-border-top-left-radius:5px;"> | }}; font: 11pt; font-weight: bolder; position: relative;border-top-right-radius:5px; -moz-border-radius-topright:5px; -webkit-border-top-right-radius:5px;border-top-left-radius:5px; -moz-border-radius-topleft:5px; -webkit-border-top-left-radius:5px;"> | ||
− | + | <div style="position: absolute; top: 0; left: 0;">[[Image:{{{picture}}}|left|{{{picturesize|35}}}px|link=]]</div> | |
<div style="padding-left: {{ | <div style="padding-left: {{ | ||
#if: {{{picturesize|}}}|{{#expr: {{{picturesize}}} + 3}}|38}}px; color:#333;">{{{headline}}}</div></div> | #if: {{{picturesize|}}}|{{#expr: {{{picturesize}}} + 3}}|38}}px; color:#333;">{{{headline}}}</div></div> | ||
− | |||
<div style="clear: both; font-size: 95%; margin: {{{margin|1.5em 0.5em 0.5em 0.5em}}}"> | <div style="clear: both; font-size: 95%; margin: {{{margin|1.5em 0.5em 0.5em 0.5em}}}"> | ||
{{{content}}} | {{{content}}} | ||
Line 36: | Line 35: | ||
}} 1px solid; text-align: right; font-size: 90%; padding-right: 0.5em;border-bottom-right-radius:5px; -moz-border-radius-bottomright:5px; -webkit-border-bottom-right-radius:5px;border-bottom-left-radius:5px; -moz-border-radius-bottomleft:5px; -webkit-border-bottom-left-radius:5px;">{{{bottombox}}}</div>}} | }} 1px solid; text-align: right; font-size: 90%; padding-right: 0.5em;border-bottom-right-radius:5px; -moz-border-radius-bottomright:5px; -webkit-border-bottom-right-radius:5px;border-bottom-left-radius:5px; -moz-border-radius-bottomleft:5px; -webkit-border-bottom-left-radius:5px;">{{{bottombox}}}</div>}} | ||
</div> | </div> | ||
+ | |||
<noinclude> | <noinclude> | ||
<pre> | <pre> |
Revision as of 06:50, 1 August 2011
[[Image:{{{picture}}}|left|35px|link=]]
{{{headline}}}
{{{content}}}
{{FrontpageBox |colorcombination = 1(blue) 2(yellow) 3(purple) |width = box width in percent - (Optional) |picture = |picturesize = in px (Optional) |headline = Headline in top box |margin = textmargin to boxedge - (Optional) |bgcolor = (box backgroung color - (Optional) |content = The main content of the box |bottombox = (Optional) }}