# Class in php

**URL:** <https://forum.kirupa.com/t/class-in-php/96793>\
**Category:** Uncategorized\
**Created:** [December 13, 2003, 7:08pm UTC](https://forum.kirupa.com/t/class-in-php/96793 "2003-12-13T19:08:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![neverrain](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@neverrain](https://forum.kirupa.com/u/neverrain)\
**Post date:** [December 13, 2003, 7:08pm UTC](https://forum.kirupa.com/t/class-in-php/96793/1 "2003-12-13T19:08:45Z")

</div>

Hey All,

Once again one of my n00b questions but I couldn’t find the answer to this one on [php.net](http://php.net).

I’ve been writing a small flatfile blog and wanted to add a little style to it with css but when I enter the class=“whatever” tag it doesn’t show up.

Is there a special tag for class in php?

Thanks a bunch,  
-Data :sketchy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 7:14pm UTC](https://forum.kirupa.com/t/class-in-php/96793/2 "2003-12-13T19:14:53Z")

</div>

post your code, can’t help you otherwise

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 7:17pm UTC](https://forum.kirupa.com/t/class-in-php/96793/3 "2003-12-13T19:17:07Z")

</div>

```auto
<html>
<head>
<title>Blog</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles.css" rel="stylesheet" type="text/css">
</head>

<body>
<?php
// Gets contents of a file into a string
$filename = "entry.txt";
$handle = fopen ($filename, "r");
$contents = fread ($handle, filesize ($filename));
// Explodes data at line breaks
$line = explode("|", $contents);
fclose ($handle);
?>
<table width="75%" height="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="entry">
  <tr>
    <td height="30" class="entryTitle">Poster: <?php echo ($line[0]); ?> Date: <?php echo ($line[1]); ?> Subject: <?php echo ($line[2]); ?></td>
  </tr>
  <tr>
    <td><?php echo ($line[3]); ?></td>
  </tr>
</table>
</body>
</html>

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 9:23pm UTC](https://forum.kirupa.com/t/class-in-php/96793/4 "2003-12-13T21:23:57Z")

</div>

no that has nothing to do with the php. What is the page that this is on… i could probably help better if you post the example page and I can actually see what its doing…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 9:35pm UTC](https://forum.kirupa.com/t/class-in-php/96793/5 "2003-12-13T21:35:53Z")

</div>

Ok sorry about the wait I was busy but the problem was a weird CSS problem not in the php. I’m not sure what it was but I rewrote my entire CSS and it worked. Very very odd.

Thanks again guys sorry for all the qustions.  
-Data :sketchy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 11:13pm UTC](https://forum.kirupa.com/t/class-in-php/96793/6 "2003-12-13T23:13:04Z")

</div>

yeah i figured it was a problem in the css. glad you got it working…
