Is this correct...?

YesYouMay

Junior Member
CSS tells you how the created buttons,bars,footer must look.
Templates tells you how those created buttons,bars,footer must be positioned on a page.
:(
 
TomStutt said:
When you say templates do you mean like the background etc so its the same on every page
Not sure what the difference between the two are. In my software I 'm given themes which have their own individual css style sheets that determine the colour of the menu bar, buttons and I can upload, switch them whenever.
In my admin I have a templates section, with css coding to edit the homepage layout.

Lol, what's the difference between CSS and Templates?
 
my understanding
css - deals with layer backgrounds, positions, fonts, hover's, anything that you would define a class/id to etc

templates - a default page which all others are based off and can then adjusted if needed (ie add extra images) without having to go through every page.

Note css can also do the some of the same things as a template depending on how pages are setup :)
 
Templates -> designed in whatever, ps, fw whatever. Coded up together USING CSS, then assigned to each page using a CMS.
 
Ant said:
Templates -> designed in whatever, ps, fw whatever. Coded up together USING CSS, then assigned to each page using a CMS.

Well..you can't code a site with CSS. CSS is just the presentation. The markup and page structure is done with HTML/XHTML.

So basically you design your site in your preferred software, then you create your markup and page structure with XHTML and then you use CSS to style it (position the different elements, colours, fonts etc.).

If you're using Wordpress I.E (I don't know if that's what you're using YesYouMay?), the templates are .PHP files containg the XHTML. So that you can chop up the different bits of your pages to be repeated. For example you could have header, footer, content, and sidebar. They are the templates. In Wordpress you can create a new content template containing your content area and sidebar for example if you want a particular page to have a different layout. Then you can assign a specific page to use that template.

All this together will make a theme. So you can create your own from scratch or use an existing theme like you're doing. So a theme is just templates with XHTML and PHP and then the CSS takes care of the presentation.

Hope that makes sense!
 
Aarlev said:
Well..you can't code a site with CSS. CSS is just the presentation. The markup and page structure is done with HTML/XHTML.

Alrightttt smarty pants. I guess my wording was off. I knew what i meant though.
 
Ant said:
Alrightttt smarty pants. I guess my wording was off. I knew what i meant though.

Sorry Ant, I didn't mean it to come across like a smart arse comment. My apologies if it sounded like that. :)
 
Aarlev said:
Sorry Ant, I didn't mean it to come across like a smart arse comment. My apologies if it sounded like that. :)


Ahh, no, no worries mate. Was just making a little joke out'a it :D
 
Back
Top