View Single Post
Old 11-28-2006, 01:55 PM   #1 (permalink)
DavH27
PHP Pilgrim
 
DavH27's Avatar
 
Join Date: Aug 2004
Location: London
Posts: 167
DavH27 is on a distinguished road
My CSS is doing strange things (not a bug)

I'm assembling a loop of blog entries inside a
Code:
<div class="entry"></div>
which shows fine, but I'm trying to then loop a div around the very first entry doing only 3 things - border formatting CSS.

http://www.davy27.neoburn.net/portfolio/

Besides the PHP, the HTML looks to be in order but I can't understand why I'm getting way bigger text. The basic jist of what I want to achieve is

Code:
<div class="entry">
 <div class="newest">
 I am entry number one
 </div>

Post number 2

Post number 3

... etc ...

</div>
It would be great if somebody could shed some light on the problem so I can get this page FINALLY finished version V1.0a

OH and it's not possible to just have a copy of 'entry' except with the extra 'newest' attributes added, as the css file is friggin HUGE enough with the comprehensive <div class="entry"> stuff already without duplicating the info.

Preferrably help in debugging my current solution rather then a new technique (unless it is thoroughly explained )

THANK YOU!!
__________________
Davy - Programming since 1998 [CV]
Currently working on: n/a
Status: n/a
DavH27 is offline   Reply With Quote