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

Newbie Template editing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-29-2007, 01:59 AM
  johnrobholmes's Avatar 
johnrobholmes johnrobholmes is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 55
 

Default 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?
__________________
version 4.4.5

www.holmeshobbies.com
Reply With Quote
  #2  
Old 07-29-2007, 10:42 AM
  johnrobholmes's Avatar 
johnrobholmes johnrobholmes is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 55
 

Default 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?
__________________
version 4.4.5

www.holmeshobbies.com
Reply With Quote
  #3  
Old 07-29-2007, 11:28 AM
 
balinor balinor is offline
 

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

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 07-29-2007, 12:24 PM
  johnrobholmes's Avatar 
johnrobholmes johnrobholmes is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 55
 

Default 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.
__________________
version 4.4.5

www.holmeshobbies.com
Reply With Quote
  #5  
Old 07-29-2007, 02:14 PM
  johnrobholmes's Avatar 
johnrobholmes johnrobholmes is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 55
 

Default 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?
__________________
version 4.4.5

www.holmeshobbies.com
Reply With Quote
  #6  
Old 07-29-2007, 02:58 PM
 
balinor balinor is offline
 

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

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 07-29-2007, 06:43 PM
  johnrobholmes's Avatar 
johnrobholmes johnrobholmes is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 55
 

Default Re: Newbie Template editing

Cool, I will do that. Thanks Balinor!
__________________
version 4.4.5

www.holmeshobbies.com
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:32 PM.

   

 
X-Cart forums © 2001-2020