Template:NewsBox

From UIT
(Difference between revisions)
Jump to: navigation, search
 
(47 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
<pre>{{NewsBox|title|content}}</pre>
+
<pre>{{NewsBox|title|date|content}}</pre>
 
</noinclude>
 
</noinclude>
 
 
<div style="
 
<div style="
 +
/* global container */
 
   background-color: #f1fdff;  
 
   background-color: #f1fdff;  
 
   border:          1px solid #dedede;
 
   border:          1px solid #dedede;
   float:           left;
+
   border-radius:   10px;
   width:            46%;
+
   width:            90%;
  max-height:          150px;
+
   margin:          5px auto;
   margin:          5px;  
+
 
   padding:          0px;
 
   padding:          0px;
  overflow:        auto;
 
/*  margin-bottom:20px;*/
 
  border-radius:10px;
 
  border-bottom:1px solid abd5f5;
 
 
">
 
">
 
   <div style="
 
   <div style="
     border-bottom:1px solid abd5f5;  
+
  /* date container */
     background-color:#d0e5f5;  
+
    background-color: #d0e5f5;
     padding:0.2em 0.5em 0.2em 0.5em;  
+
     border-radius:    10px 10px 0 0;
     font-size:110%;  
+
    margin:          0px;
     font-weight:bold;
+
    padding:         1px 7px;  
     border-radius:10px 10px 0 0;
+
    float:            right;
 +
  ">
 +
{{{2}}}
 +
  </div>  <div style="
 +
  /* title container */
 +
     background-color: #d0e5f5;  
 +
     border-radius:   10px 10px 0 0;
 +
     margin:           0px;
 +
    padding:          1px 5px;  
 +
     font-size:       1.1em;  
 +
     font-weight:     bold;
 
   ">
 
   ">
 
{{{1}}}
 
{{{1}}}
   </div>
+
   </div>
 
   <div style="
 
   <div style="
     padding: 5px;
+
  /* content container */
 +
    border-radius:    0 0 10px 10px;
 +
    margin:          0px;
 +
     padding:         1px 5px;
 +
    max-height:      73px;
 +
    overflow:        auto;
 
   ">
 
   ">
{{{2}}}
+
{{{3}}}
 
   </div>
 
   </div>
 
</div>
 
</div>

Latest revision as of 15:45, 5 June 2013

{{NewsBox|title|date|content}}

{{{2}}}

{{{1}}}

{{{3}}}

Personal tools
Namespaces
Variants
Actions
Navigation
Browse
Toolbox