Answer the question
In order to leave comments, you need to log in
Is there a tool to automatically generate CSS templates from HTML source?
The layout process for me usually looks like this:
1. I study the layout, cut the pictures.
3. I write the HTML markup according to the layout, coming up with names for the styles as I go. (At this stage, the output is a "porridge" of text)
4. I describe the styles so that everything looks like on the layout.
So it would be convenient at the beginning of the 4th stage, so that based on classes from HTML, a view blank was generated:
.wrapper {}
.header {}
.header-logo {}
.content {}
.content-header {}
.footer {}
Answer the question
In order to leave comments, you need to log in
Create a similar structure several times, almost all layouts have the same structure (for example - header, sidebar, content and footer), in this case you will not forget, and blanks are not a good idea, even worse, it is a terrible idea.
I usually type in parallel. Wrote a module in HTML, wrote styles for it.
If I were you, I would take bootstrap, customize it, and develop a second css file with helper classes that I would use in all projects. It turns out like this:
Simply put, you need a universal base that will pass from project to project and my-project.css which will contain the styles of a specific project. At the same time, we never touch the top two files (do not change).
Try the opposite. Phpstorm and others have a reverse function. We write CSS, and then in the IDE it suggests classes that have already been described.
I use Emacs as an editor, so both files, the template and styles, are right in front of my eyes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question