How do I style my HTML code so that the output follows the same styling as the "Page Title" and "Page Text"?
Author: Ciro S.
Visited 1569,
Followers 1,
Shared 0
I wrote a small PHP script to output items from a database using the HTML block embedded in the program. I am trying to style the output so it is similar to that of the "Page Title" and "Page Text" which is an option that can be changed in the WebsiteX5 software. Is there any way you can share the styling tags used so that when I change the color/size/font etc. in the website X5 software, the output from the HTML block will be the same?
Thanks,
Ciro
Posted on the
Hello Ciro
There is a little free compact program - ColorCop : http://colorcop.net/
With this you can pickup a color from anywhere of the screen, and use this value in the styling section.
It is very easy to use.
Kind regards
John S.
Author
Thansk, but can't I just use the default WebsiteX5 style tags and embed them in the HTML? What are the default css style tags that websiteX5? This way, when I make a change in the program, my custom code will update as well.
I think you can find them in the admin/css for your project - but I can't see how you should be able to use them.
If the values were variables, these could be used in the styling section via using some php ( and then it is getting complicated ) but I think it is taken from a CSS-scheme.
I still think that "grabbing" of the color-value will be the easiest and not complicated.
BUT - if you find an elegant solution, I would like to know how you have done.
Maybe someone cleverer on this, can help.
Kind regards
John S.
Author
Ok thanks for the help, I'll try that. I'll let you know if I'm able to figure it out.
Maybe make a php-script that reads the X5 CSS schema. and put the value in a variable. In the html-object make a php-section that via include, get the value and then via php use this value in the styling section.
I still think that the "hardcoded" solution is the logical solution, unless you change the values for your template more times every day.
But maybe the reason is the same as for the man that climbed the Everest :
It had no purpose - I just wanted to test if I was able to.