Any way to simplify WeBuilder CSS after cleanup?

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
mrenner
Posts: 7
Joined: Mon Sep 27, 2004 3:24 am

Any way to simplify WeBuilder CSS after cleanup?

Post by mrenner »

When I use WebBuilder to clean up code from a WYSIWYG editor using HTML Tidy it moves most of the inline styles up into the head of the document, which is a not unexpected behavior.

But the CSS styles are still a bit hard to read because of all the redundancies in the statments. The last document I cleaned up had 61 div.cXX lines in it, all of them only slightly different.

Lots of the code in those lines is redundant. For instance 95% of the lines contained either:
position: absolute; text-align: left; top:
position: absolute; text-align: center; top:

Can WeBuilder be configured to automatically add a couple lines of code to substitute for statements like these? That would make the CSS code easier to read and less top-heavy, whether I leave it in the document or move it to an external style sheet.
David T
Posts: 5
Joined: Tue May 03, 2005 1:48 am
Location: Canoga Park, LA, CA
Contact:

Tidying up Tidy

Post by David T »

If you want clean efficient xhtml/css code you have to craft your pages by hand and stay away for WYSWIG web page builders. If you want to build a web page and then leave it as it is then Front Page and Dreamweaer are great tools. If you want to keep changing, editing and refining your web page then you have to understand the code that creates the page so you can make the page do what you want it to do.

Tidy is a third party add in to HTMLPad/WeBuilder. I use Tidy to help clean and format my code but I turn off the feature that turns the HTML tags into CSS for exactly the same reason you describe.

I have used Front Page and Dreamweaver. The best thing is to live with what they give you. Tools that create and modify programming code for you are inherently inefficient because they use simple rules to solve an infinite solution set. :shock:

If you want powerful clean efficient code there is no getting around leaning HTML, XHML, CSS.
Don't Hate me because I love MS VB
Post Reply