| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Is it correct to use html in labels? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Is it correct to use html in labels?
Hi forum,
I'm hoping someone may be able to help here. Where the home page reads 'Featured Products', or, 'Winter Season Featured Products', I want to change the font and size. Is it correct and preferred practice to simply enter the label as html, like this: <font face="Arial, Helvetica, sans-serif"><b><font size="4" color="#330000">Winter Season <font color="#CC0000" size="5">Featured</font> Products</font></b></font> or, should this be done another way? Instead of text, how would I enter an image? Thanks in advance.
__________________
4.7.7 Light Responsive |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Is it correct to use html in labels?
You can use html formatting in language variables although this is not a prefer way of doing it. If you or someone else want to change it later it is a pay to find out what exactly was done.
Also you should not use <font> tag - this has been deprecated for years. Instead use <span> and style it. Better yet use it with a class and add css rules for that class.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: Is it correct to use html in labels?
Thanks Steve. I was thinking that.
Quote:
Not too sure how to go about that...... How about replacing text with a pic?
__________________
4.7.7 Light Responsive |
|||||||
#4
|
|||||||
|
|||||||
Re: Is it correct to use html in labels?
When adding css rules, do I edit skin/common_files/css?
__________________
4.7.7 Light Responsive |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Is it correct to use html in labels?
<span class="wordX">Word X <span class="wordY">Word Y</span></span>
span.wordX {color:red;font-weigh:bold} span.wordY{color:blue} You can add the css in common_files or alt skin you use, either one should work.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#6
|
|||||||
|
|||||||
Re: Is it correct to use html in labels?
Works like a charm - thanks!
I revised as follows, but I also wanted to change the font and maybe underline a word. } span.wordX {color:red;font-size: 26px} span.wordY{color:#339900} Adding 'arial' after 26px didn't work.
__________________
4.7.7 Light Responsive |
|||||||
#7
|
|||||||
|
|||||||
Re: Is it correct to use html in labels?
Found it - just added the 'font: arial;'.
.... would love to add a pic in place of text though... .
__________________
4.7.7 Light Responsive |
|||||||
|
|||
X-Cart forums © 2001-2020
|