dev_chris Posted April 9, 2010 Share Posted April 9, 2010 My apologies if this should have gone in the CSS forum. I want to preface my question with this: I'm a complete web noob. I've been doing desktop C++ for the past 3 years. Ok... I've got some shopping cart code and there are a number of includes (header, footer, nav, etc...) that are all written using html tables/inline formatting. I am trying to figure out a way to include external css into all these different includes. Since the 'header' with the <head></head> tags is in one include, how to you get all the other css for all your other includes in there? I can't think that you just put every css your sites uses in the head tags and then just that header include for everything. That can't be right. There has to be a more organized way that my n00bness hasn't allowed me to realize yet...or do you HAVE to you use internal styles? Please let me know if this isn't clear so I can further explain. Thanks. Link to comment https://forums.phpfreaks.com/topic/198146-question-with-php-includes-and-styles/ Share on other sites More sharing options...
ddubs Posted April 9, 2010 Share Posted April 9, 2010 All CSS should be kept in the head section or linked in externally in the head section. You can independently style elements by using style="css:here" on the actual HTML element but keeping track of changes to that is a pain. Link to comment https://forums.phpfreaks.com/topic/198146-question-with-php-includes-and-styles/#findComment-1039657 Share on other sites More sharing options...
dev_chris Posted April 9, 2010 Author Share Posted April 9, 2010 ^^After re-reading my initial post, I'm not sure I fully explained my question. However, as I was reading your reply the solution hit me. One of those "D'oh" moments. So, thanks for the response. Link to comment https://forums.phpfreaks.com/topic/198146-question-with-php-includes-and-styles/#findComment-1039668 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.