CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 13th, 2001, 05:03 PM
rght_99 rght_99 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Canada
Posts: 7 rght_99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to rght_99 Send a message via Yahoo to rght_99
CSS in Table Field

Why is it that when I put a tag like <div class="sub">Text</div> in a field in my table, the class="sub" does not work (the word "Text" is printed though) when I print the field using PHP? I'm sure the link to the style sheet is correct, because I tested it by printing something other than from the db.

P.S.
I did try <div class=\"sub\">Text</div>, but that did not work also.
Comments on this post
JimmyGosling agrees!

Last edited by rght_99 : May 13th, 2001 at 05:05 PM.

Reply With Quote
  #2  
Old May 17th, 2001, 01:49 PM
Emperor Emperor is offline
Divine Wind
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Mongo
Posts: 24 Emperor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Emperor
Obvious answers

Some obvious answers spring to mind :

1. Server side:

Have the < and > been converted to entities? See this and related functions (in left bar):

PHP.net

2. Client side:

a) Is the class on the page or linked to it?

b) Is the CSS written correctly (easy ways to mess things up include leaving off the # from colours and the ; from the end of each style.

These are all pretty obvious problems but also the most likely possible cause.

If it isn't anything to do with this then post more of the code.

Emps

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS in Table Field


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway