My head is starting to hurt just thinking about all the possabilities and impossabilities of mixing html and css with php and I'd like to understand how's this works. I did a php project for a guy one time and I came close to shooting myself in the face and I may be starting another project for my current employer, and I'd like it go to a little better this time around. When programming in php you often use php to generate a lof, if not all, of a page's html. When so much of the html is generated via php instead of being statickck in the file, can and does your css rules apply to the php generated html?
Another thing I'd like to understand is about writing static html but doing so within a php if/else block. One of the problems I had in the past was that I was php coding over a lot of pre existing html that had all the attributes double quoted (""), which of course is a pain when dealing with php. What I'd like to be able to do when that happens is to start a php if block, end the php with a ?> tag, leave the static pre-existing html code alone and at it's end start the php up again with <?php elif. Can I count on the static html only showing up if the condition is met? It would be between and if/elfi block but not in active php tags. If not then I either have to manually remove the (") quotes and change them to singel quotes (') and then wrap each and every line of the stacick html code with a php echo statement. This stuff always gets out of hand, at least when I try my hand at it. Thanks.