octonapewno
Użytkownik
- Dołączył
- Maj 22, 2008
- Posty
- 110
Kod:
<div id="news">
<div id="date">
<?php
$day = explode("-", $tblnews[6]);
print "<h1>".$day[2]."</h1><br />";
print $day[1].".".$day[0];
?>
</div>
<div id="cont">
<a href="<?php print $tblnews[4]?>"><img src="<?php print $tblnews[5]?>" /></a>
<p>
<?php
print "<b>".$tblnews[1]."</b><br />";
print $tblnews[2];
?>
</p>
</div>
</div>
Kod:
#news {
width: 630px;
margin-top: 20px;
color: #030;
}
#date {
background-color: #48BF3C;
float: left;
width: 80px;
height: 60px;
font-size: 9pt;
font-family: Verdana, Geneva, sans-serif;
text-align: center;
/*-webkit-border-top-left-radius: 15pt;*/
-webkit-border-bottom-left-radius: 15pt;
/*-moz-border-radius-topleft: 15pt;*/
-moz-border-radius-bottomleft: 15pt;
}
#news #cont {
display: block;
clear: right;
border: solid 1px #48BF3C;
margin-top: 0;
margin-left: 80px;
width: 530px;
padding: 5px;
text-align: justify;
-webkit-border-top-right-radius: 15pt;
-webkit-border-bottom-left-radius: 15pt;
/*-webkit-border-bottom-right-radius: 15pt;*/
-moz-border-radius-topright: 15pt;
-moz-border-radius-bottomleft: 15pt;
/*-moz-border-radius-bottomright: 15pt;*/
}
#news img {
float: left;
margin-right: 10px;
border: 0;
width: 100px;
}
#news h1{
font-size: 25pt;
margin: 0;
margin-bottom: -15px;
}
#news b {
font-size: 14pt;
font-weight: lighter;
}
#news p {
margin-top: 0;
}