Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > HTML, XML, Javascript, AJAX
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
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
Old 11-28-2006, 08:43 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
i think you have too much going on. move the posts out to a seperate HTML page and only add CSS to format the posts how you want.

then you will know exactly how it is without all the other CSS affecting it. once you do have that, then bring it back into your page and it will be pretty obvious if the cause of this weirdness is other parts of your CSS.

i think it will be a more approachable problem at that point. as of right now, i'm confused at your description and there is too much CSS to make a quick suggestion.
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 11-29-2006, 04:26 AM   #3 (permalink)
DavH27
PHP Pilgrim
 
DavH27's Avatar
 
Join Date: Aug 2004
Location: London
Posts: 167
DavH27 is on a distinguished road
Hey thx sde 4 reply (yet again...you'd think you'd run the place...)

The page I've got there is basically the same as my index.php (well, page.php is nested in index.php) except I've tried an IF statment with a $counter to make the first entry have a border.

It's all very complicated and impossible to explain without going on for hours, but I'll have another look at my loop and HTML later after work.

Thx again.
__________________
Davy - Programming since 1998 [CV]
Currently working on: n/a
Status: n/a
DavH27 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple guide to CSS Rifat HTML, XML, Javascript, AJAX 3 05-03-2006 04:46 AM
css issues sarah31 HTML, XML, Javascript, AJAX 3 12-23-2005 06:43 AM
CSS List Navigation geek HTML, XML, Javascript, AJAX 0 03-03-2005 07:06 PM
CSS Positioning d8uv HTML / CSS 0 03-22-2003 04:13 AM
An Introduction to XHTML/CSS Rie HTML / CSS 0 03-07-2003 06:50 PM


All times are GMT -8. The time now is 06:30 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle