X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Newbie Template editing (https://forum.x-cart.com/showthread.php?t=32862)

johnrobholmes 07-29-2007 01:59 AM

Newbie Template editing
 
I am trying to work my way through some basic editing here. Say I want a pic in my head.tpl behind the main banner so that the header stretches across the entire page no matter what screen. Would I just add another

<TD><A href="{$http_location}"><IMG src="{$ImagesDir}/EXAMPLE.jpg" width="100%" height="100%" border="0" alt="RC Rock Crawler"></A></TD>

after the main Banner script? Is my syntax right to make the size stretch to 100%? I want the header pic to be behind the Banner.

Thanks in advance for helping me get the ball rolling on a decent looking site. Any websites to help me with basic CSS language?

johnrobholmes 07-29-2007 10:42 AM

Re: Newbie Template editing
 
Alright, I just entered that in for kicks after some sleep and it didnt do what I wanted. The 100% commands squeezed my EXAMPLE.jpg to the proper size, but it is beside my banner instead of behind. Gonna do some more investigating.

On the same note, what if I want to place another graphic on the top right of my webpage?

balinor 07-29-2007 11:28 AM

Re: Newbie Template editing
 
I think perhaps you should start by learning about CSS. Good place to start is here:

http://www.w3schools.com/css/default.asp

If you enjoy books more, the O'Reilly guides are excellent.

johnrobholmes 07-29-2007 12:24 PM

Re: Newbie Template editing
 
Thank you Balinor. I have been studying some CSS sites and have been trying to see how it all fits together. I will try entering some background commands and see what happens.

johnrobholmes 07-29-2007 02:14 PM

Re: Newbie Template editing
 
alright, got some CSS language under my belt. Wasn't to hard to understand since I have been staring at it for a long time now.

My question now is this, do I modify my head.tpl to include a background in the header, or should I do it in my CSS style sheet? I guess that both ways will work?

balinor 07-29-2007 02:58 PM

Re: Newbie Template editing
 
Keep all of the classes themselves in the stylesheet, and just call the class from the template. All formatting should be in skin.css.

johnrobholmes 07-29-2007 06:43 PM

Re: Newbie Template editing
 
Cool, I will do that. Thanks Balinor!


All times are GMT -8. The time now is 06:45 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.