tags:

views:

883

answers:

9

I want to build a CSS template of my imagination: this means from SCRATCH.

I want to do it like if I'm doing it with a pen, but just with the mouse. I have no idea about this field (css),that's why I'm asking. Many developers had made fantastic templates that rocks.

I want to know how do you create your CSS templates? (if you did) Do you start them from scratch, using a framework, using an application? Is that hard or easy?

Simply how you do it?

+1  A: 

You may want to read up on CSS.

Lyndsey Ferguson
A: 

I start mine from scratch, just type it using VS or Aptana etc.

I work out the basic layout, for example 3 column.

I then use inline style to create the basic layout, adding the markup and html until I have it how I like it. I then continue this way until I have the basic skeleton of my website.

From here I put the css into an external file and start adding my elements, styling as I go.

Before you know it you'll have something looking sweet, it happens surprisingly fast!

Fermin
+7  A: 
*
{
    margin: 0;
    padding: 0;
    border: 0;
    border-collapse: collapse;
}

Cue imagination

Nick Allen - Tungle139
+1 This reeks of sheer brilliance!
Chris Ballance
How is this helpful ? How can the OP apply this to his question? You know, people have to start __somewhere__.. -1
Tim Post
Cue imagination works well if you __already__ know CSS.
Tim Post
The OP emphasised the word SCRATCH in his question. Frameworks, resets etc are not SCRATCH. This is the most concise way to acheive a consistent starting point across... I won't say all but most browsers. The OP said he wanted to use his imagination, if you don't know css, searching google for "css tutorials" would be a good use of imagination. Imagination suggests delving into your own creativity for answers to problems, not being told how to code CSS, hence Cue imagination. The answer is not intended to be flippant, I think it's an appropriate response
Nick Allen - Tungle139
+4  A: 

Don't re-invent the wheel, find a good established css base and build upon it.

Chris Ballance
+2  A: 

My typical course of action:

  1. Apply a CSS reset
  2. Find a layout template
  3. Find a color scheme
  4. ???
  5. Profit!
Chris Pebble
Thanks, those are the best tips so far, although they didn't upvote you :)
Omar Abid
how to use the color scheme?
Omar Abid
+6  A: 

Everything and anything you ever wanted to learn about css can be found at a list apart. You might also like css garden. Great, real world examples you can pick apart and hack.

Please pay no attention to the people who know css through and through down voting your question. You have to start somewhere. Some template engines make the end result 'too easy', beginners flock to what works for them in the least amount of time. Good on you for studying more.

Why, oh why did someone vote to close this? Are we now punishing people for not knowing something on a site that is supposed to be the end-all be-all of programming knowledge? If you get drunk on IRC, forget the down arrow. Good grief.

Tim Post
Thanks for your ideas, the problem with me is not creating the CSS template itself, I have done some simple CSS themes with blueprint.I want to know how to create a "fantastic" very very nice one and tweak it very easily, I'll look for what template engine is, thanks again :D
Omar Abid
+2  A: 

I assume you're going to be re-using this, since you've called it a template, so I'd make sure you organize/group your css elements in a logical way (text, layout, etc). You'll want something you can quickly read and customize later.

Definitely clear default margins and paddings, because different browsers (cough IE) have their own ideas of what margins and paddings various elements should have.

Finally, make use of percentages and ems. This will reduce your duplication considerably. For instance...

body { font-size: 12px };
.wrapper { width: 800px; }

Now you have a base to which everything else can refer. So I could do stuff like this:

h1 { font-size: 2em; }
.content { font-size: 1.2em; }
.sidebar { font-size: 1em; }

.content { width: 70%; }
.sidebar { width: 30%; }

If you decide 800px is old hat, you can change your one width to 900px, and everything will still work.

Jon Smock
+1  A: 

It totaly depends on the situation. If I have to create a template for an existing page that is using CSS, often generated by an editor or something, I would use that as a starting point and change bits and pieces until it does what I want. This would go for wordpress and that kind of apps too.

When I do not have a css to start with I work from the to 'Body' and work my way down to the children of the children of the children etc. From big to small.

I like to use a tool that shows a visual representation of the css tag I'm editing so I can see what it looks like. I like Expression Web because it can navigate to styles very easy and shows me what it looks like.

Sorskoot
+1  A: 

You said in your comment to this reply that you want to be able to tweak it easily?

I highly recommend some of the firefox extensions for this purpose. Firebug is fantastic for quickly seeing the css behind something or for tweaking css. If you hover over something in firebug it will display the css, and let you turn off individual lines of css and see how the browser renders it.

Matt