View css styles on demo page

Is there an application that takes a .css file and displays a demo page on it?

How to take all span / div / a elements and display how they will look on the html page?

+4
source share
4 answers

... without an associated (X) HTML file?

If what you need to do is CSS related without knowing its associated structure (X) of HTML documents or classes or identifiers ... then it’s just not enough to just write a small page and view it in a browser

Not to offend, but personally I think that previewing CSS without an (X) HTML document is a bit strange. A few reasons:

If you start with CSS, you can try to make your HTML code your CSS when it's the other way around. Starting with CSS and then writing your page down, you feel like a good way to end up with messy HTML, and if I need to choose between (messy HTML and plain CSS) or (plain HTML and messy CSS), I personally would choose blank HTML code every time.

You also specify the <div> and <span> targeting. This is a personal opinion, but I’m very sure that people should not aim at <div> and <span> without class or identifier attributes. Since <div> and <span> have no semantic meaning, I just can’t imagine why you would need to style them if you didn’t reset or comply with the CSS requirement and your client is more likely to ask β€œall employee names should be underlined "or" spaces should be underlined "? ... but as soon as you target the class and id, you need your HTML document to work with your CSS.

+2
source

Although this will not automatically generate any of your css, this is a great XHTML test page that includes all the standard tags, pages, and form elements that you probably used. Apply your stylesheet to this page and you will be 80% of it. Then just add areas for your custom classes, etc. http://snipplr.com/view/8121/html-test-page-for-css-style-guide

+1
source

TopStyle does this with an internal view. This is a great tool.

http://www.topstyle4.com/

0
source

Try rendur: http://rendur.com/

I agree with Richard that you should not expect much if you style the raw div and span elements. :)

0
source

Source: https://habr.com/ru/post/1302919/


All Articles