Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

html font tags in language-OK ??

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-23-2006, 11:53 PM
 
Paul H Paul H is offline
 

eXpert
  
Join Date: Sep 2005
Posts: 246
 

Default html font tags in language-OK ??

I had a few problems getting the CSS to change the colour of certain bits of text and not others
so I tried inserting html tags into the edit language via webmaster mode.This was on the intro to gift certificates which for some reason wasn't following on from the CSS and it worked fine
Is it OK to do this or will it create other problems ? I did post a screen shot of what I was trying but xcart deleted it !

Seems they didn't delete it - I just couldn't find it in the new forum
__________________
Xcart Gold 4.1.11-Gone
= 4.7.11-Live
Reply With Quote
  #2  
Old 08-24-2006, 02:37 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: html font tags in language-OK ??

<font> tags are depreciated and should not be used. Use <span> or <div> tags to format text, or just add a class to the <p> tag like this:

<p class="classname">

And yes, you can use html formatting in the language variables.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-25-2006, 01:54 AM
 
Paul H Paul H is offline
 

eXpert
  
Join Date: Sep 2005
Posts: 246
 

Default Re: html font tags in language-OK ??

It'll take me a while to get my head round that.
Do I put the span and div stuff in the pop up box in webmaster mode or the tpl file ?

I tend to use dreamweaver as my editor so I can see my wysiwyg changes in code form.
Then cut n paste the bits of code into the wherever and see what happens. Dreamweaver produces lots of <font> tags and I haven't seen it produce span and div stuff which leaves me in the dark a bit. I will search the net for a tutorial somewhere.

I wish I had had come to you for my site makeover but I got too far in to turn back and start again and no one seems to want to fix the little bits
__________________
Xcart Gold 4.1.11-Gone
= 4.7.11-Live
Reply With Quote
  #4  
Old 08-25-2006, 03:21 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: html font tags in language-OK ??

You need to upgrade your version of Dreamweaver, the new versions handle W3C compliant code. You can use the code in the languages section or the template itself.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 08-25-2006, 04:08 PM
 
Paul H Paul H is offline
 

eXpert
  
Join Date: Sep 2005
Posts: 246
 

Default Re: html font tags in language-OK ??

I've had a good go at this tonight and managed to get my Dreamweaver up to speed using the newer code which made things a bit easier . Changed the font using span tags, couldn't get the p tags to work and had a little success with CSS although I think there is some sort of heirarchy going on somewhere. Why do some of the CSS lines have a dot in front and others don't ??

Cheers
__________________
Xcart Gold 4.1.11-Gone
= 4.7.11-Live
Reply With Quote
  #6  
Old 08-26-2006, 04:52 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: html font tags in language-OK ??

Sounds like you need a good CSS tutorial or book. I'd recommend this one:

'Cascading Style Sheets - The Definitive Guide' by Eric Meyer
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 08-28-2006, 10:26 AM
 
Paul H Paul H is offline
 

eXpert
  
Join Date: Sep 2005
Posts: 246
 

Default Re: html font tags in language-OK ??

That's seems like a good book but I prefer something more appropriate like "CSS for Dummies"
__________________
Xcart Gold 4.1.11-Gone
= 4.7.11-Live
Reply With Quote
  #8  
Old 08-28-2006, 10:28 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: html font tags in language-OK ??

No, you don't want a Dummies book for this. Seriously, the Meyer book is very straightforward, easy to read and doesn't take a degree in computer programming to understand. It is the best book out there for beginners or experts alike.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 08-28-2006, 12:38 PM
 
Paul H Paul H is offline
 

eXpert
  
Join Date: Sep 2005
Posts: 246
 

Default Re: html font tags in language-OK ??

I checked out Amazon here in the UK and the Meyers book wasn't available so I got
"Head First HTML with CSS & XHTML"
by Eric Freeman
__________________
Xcart Gold 4.1.11-Gone
= 4.7.11-Live
Reply With Quote
  #10  
Old 08-28-2006, 12:46 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: html font tags in language-OK ??

Just make sure it is current and covers CSS 2.1 as that is the standard. CSS 3 is not far off either....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:23 AM.

   

 
X-Cart forums © 2001-2020