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
  #11  
Old 08-28-2006, 01:44 PM
 
Paul H Paul H is offline
 

eXpert
  
Join Date: Sep 2005
Posts: 246
 

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

I think any book is better than nothing for me as I don't know anything at all about code.I'm interested in web stuff and like to be able to do a bit of stuff on my sites and fix a few problems.As far as up to date CSS and HTML most of the web sites out there are not built using the latest code and browsers will have to deal with the old stuff.
Just a quick question about the CSS before I get my book.
I added a H5 line into the CSS and changed the template to this.

page_title.tpl

{* $Id *}
<H5 align="center">{$title}</H5>

Now this changed the font size and colour but no way would it center the text.
I added span tags to the language to fix it
__________________
Xcart Gold 4.1.11-Gone
= 4.7.11-Live
Reply With Quote
  #12  
Old 08-28-2006, 02:20 PM
 
balinor balinor is offline
 

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

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

Well see, you are missing the point. Coding to the current standard ensures that your site will display well in the newest browesrs (including the new version of IE coming out this winter). So no, the browsers WILL NOT have to deal with the old stuff, the people who write the old stuff will have to deal with the new browsers.

Also, cleaner coded web sites RANK better and load quicker which is the whole point. Take the time to learn the correct code or don't bother as it will just hurt you to use old, depreciated code.

align=center is a perfect example, that is depreciated code, which is why it won't center. The correct way to code that would either to assign a style to the h5 tag like this:

<h5 class="center"> and then define 'center' in your stylesheet

or

<h5 style="text-align: center;">

As you can tell, the first method uses less code so it is the preferred method.
__________________
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 12:15 PM.

   

 
X-Cart forums © 2001-2020