Bob42
04-14-2008, 04:44 PM
I use a HTML table to display my news, and I realize that it can be coded into CSS. I've attached a file of how I want the news to look like, but I'm having some trouble coding it.
Here's the CSS that I have so far:
.news {
width:100%;
margin:auto;
border:solid 1px;
padding:1px;
}
.news_title {
padding:0px;
border:solid 1px;
text-align:center;
}
.news_footer {
border:solid 1px;
margin-left:0;
padding:1px;
text-align:left;
}
And here's my HTML:
<div class="news">
<p class="news_title"><strong><?=stripslashes($row['title'])?></strong></p>
<p><?=stripslashes($row['news'])?></p>
<div class="news_footer">
<p><a href="profiles.php?name=<?=$row['name']?>"><em><?=$row['name']?></em></a><br />
<?=$row['date']?></p>
</div>
</div>
Take a look at the attachment. If someone could please point me out to the right direction, it would be appreciated.
Here's the CSS that I have so far:
.news {
width:100%;
margin:auto;
border:solid 1px;
padding:1px;
}
.news_title {
padding:0px;
border:solid 1px;
text-align:center;
}
.news_footer {
border:solid 1px;
margin-left:0;
padding:1px;
text-align:left;
}
And here's my HTML:
<div class="news">
<p class="news_title"><strong><?=stripslashes($row['title'])?></strong></p>
<p><?=stripslashes($row['news'])?></p>
<div class="news_footer">
<p><a href="profiles.php?name=<?=$row['name']?>"><em><?=$row['name']?></em></a><br />
<?=$row['date']?></p>
</div>
</div>
Take a look at the attachment. If someone could please point me out to the right direction, it would be appreciated.