| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
html font tags in language-OK ?? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() 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 |
|||||||
#12
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|