SunQuest
           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 November 15th, 2002, 11:02 AM
jbuckle24 jbuckle24 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Burlington, VT
Posts: 343 jbuckle24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 24 m 14 sec
Reputation Power: 0
PHP->CSS converter?

Hello,

I know this may be a difficult request, and I don't have my hopes up too high... But, I am looking for a means of converting cascading style sheets to their html equivalent tags/properties using PHP, of course. A little background - I trying to build an html emailer that allows a user to type in a URL - most likely their own (that they just created using part of my content management softare). Now, I am doing this using the file() function and processing the output to the email's message. However, there are always setbacks with this. First was the absolute path issue (knew about this for a long time graphics/links, etc.), but now I have to deal with stylesheet limitations not rendering the proper page design? I have tried hotscripts.com for some scripts, but I also figured I try here for some real feedback.

thanks for any help,
-jbuckle24

Reply With Quote
  #2  
Old November 15th, 2002, 12:03 PM
crazytrain81 crazytrain81 is offline
Always Learning
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2002
Location: Port Neches, TX, USA
Posts: 1,173 crazytrain81 User rank is Corporal (100 - 500 Reputation Level)crazytrain81 User rank is Corporal (100 - 500 Reputation Level)crazytrain81 User rank is Corporal (100 - 500 Reputation Level)crazytrain81 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 7 h 45 m 43 sec
Reputation Power: 10
Send a message via AIM to crazytrain81 Send a message via MSN to crazytrain81
You're going to have to get familiar with regular expressions, and parse the code. You need to look for tags that are <xxx style="property:x;"> . So, you want to parse for style=", read what's between "" into an array, cut off the ; ,explode it on :, and then parse the property to make sure it's valid. You also have to be careful to parse the value for % or px, or pt even. It's a pretty big job..
__________________
David Fells
If my post helped you, please click the above my post and leave a comment. Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > PHP->CSS converter?


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 3 hosted by Hostway