Webuilder 10 format CSS code

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
DaleyLife
Posts: 7
Joined: Tue Dec 08, 2009 4:40 pm

Webuilder 10 format CSS code

Post by DaleyLife »

On the misc tab you have the option Color format Hexidecimal short.
I would expect it to convert all colors to this format but it does not seem to? :?
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: Webuilder 10 format CSS code

Post by Gatis »

Hi,

Hexadecimal short is applied only where there is no loss in information (color value).
For example, #334455 will be converted to #345, and no loss of information will occur. However, #123456 can not be converted to hexadecimal short format without any loss of color information.
Kind regards,
Gatis Avots
DaleyLife
Posts: 7
Joined: Tue Dec 08, 2009 4:40 pm

Re: Webuilder 10 format CSS code

Post by DaleyLife »

I now understand that it has to be duplicate pairs. But it seems to miss out rgb values in shorthand properties.
eg; #custom2 {background: rgb(99, 145, 169) url(images/authorbg.jpg) repeat-x repeat-y center; border-bottom: 1px solid rgb(0, 0, 0);}
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: Webuilder 10 format CSS code

Post by Gatis »

Yes you are right, there is a problem. I am afraid we have not planned to change this in nearest future. Because this is the first problem report we have received about it so far in 2 years.
Colors are handled in CSS color properties only. It does not work on CSS color values inside shorthand properties.
It was technically challenging to support also colors in shorthand properties, so we did not implement it.
Kind regards,
Gatis Avots
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Re: Webuilder 10 format CSS code

Post by daredare »

what's the purpose of shorthand properties ?
webuilder 2010 version 10.02 (10.0.2.118) is the best !!
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Re: Webuilder 10 format CSS code

Post by MikeyB »

As far as I know it's just slightly shorter CSS, nothing else as far as I know.

I can't imagine it makes much difference unless you have hundreds of colours in your CSS
Post Reply