Reply
PHP and CSS Vs. PHP and HTML
Old 11-10-2006, 01:18 AM PHP and CSS Vs. PHP and HTML
Novice Talker

Posts: 10
Hi All
I need to build a site that will have a database with some php code handling all the work.
The layout will be based on a design of the companys print catalog.
And the Print design isnt ready. So I need to start working on the php code already.
I was thinking of whipping together a site in dreamweaver with some tables etc just to place all the elements and links and so on, and then have someone write the php code I need.I would then test the system and later as the design is ready, layout the actual site with css, then have the coder attach the code tto the new site.
Can anyone estimate is that a method that will end up wasting time and effort as the eventual site will be done in css with no tables if possible?
I mean I understand that some php code will surely have to look different but how big will the difference be, wil it be worth it?
I would appreciate any advice.At this moment the layout of the final desig is not ready, but an online prototype is needed.
Thanks
Sami

Last edited by sambkk : 11-10-2006 at 01:21 AM.
sambkk is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-10-2006, 05:16 AM Re: PHP and CSS Vs. PHP and HTML
Super Talker

Posts: 124
Name: Chris
Well if you know what you are doing with PHP just make it all OOP then all you have to do is go back through your layout and add your classes/functions.

My method is, if you are going to do it, do it right the first time (or try to).

Also html and CSS aren't two seperate things so I dont know why you refer to them seperately. CSS and html go hand in hand. Style sheeting meets all standards set by www.w3.org .

The only thing you need the html/css pages for at all is debugging when you have built all your classes.
__________________
Chris - Trying to help others and learn myself!
http://www.nvision-media.com
ctess is offline
Reply With Quote
View Public Profile
 
Old 11-10-2006, 11:05 AM Re: PHP and CSS Vs. PHP and HTML
LadynRed's Avatar
Super Moderator

Posts: 6,743
Location: Tennessee
You would save yourself, and the coder, time and aggravation if you layout the site with CSS from the very beginning. Converting from tables can be a real PITA.

HTML is the structure.
CSS is the styling
PHP takes care of the backend and there's no reason PHP can't write to a DIV rather than a table.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-14-2006, 03:38 AM Re: PHP and CSS Vs. PHP and HTML
ChipJohns's Avatar
I don't know! Do you?

Posts: 489
Name: Chip Johns
Location: Savannah Georgia
That's the beauty of css.

If you structure your pages properly, you can make it look any way you need it to look after the fact. Get the info on the page generated by php into the proper elements, p, div etc. Then just use css to make it look the way it needs to look.

For some ideas as to how this works take a look at css Zen Garden: The Beauty in CSS Design

One page with proper use of html and css. This same page is given drastically diferent looks by the use of css, and css only. Because every one of these pages uses the exact same html document this can be done so effectivley because the document was designed with excellent structure.

Pretty cool stuff.

~Chip
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 11-14-2006, 06:14 AM Re: PHP and CSS Vs. PHP and HTML
northbeach23's Avatar
Ultra Talker

Posts: 380
Quote:
Originally Posted by LadynRed View Post
You would save yourself, and the coder, time and aggravation if you layout the site with CSS from the very beginning. Converting from tables can be a real PITA.

HTML is the structure.
CSS is the styling
PHP takes care of the backend and there's no reason PHP can't write to a DIV rather than a table.
Yah I agree with this statement.
northbeach23 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP and CSS Vs. PHP and HTML
 

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13328 seconds with 12 queries