Rewriting html and css to my format