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)
-   -   Head Logo (https://forum.x-cart.com/showthread.php?t=43888)

GreatLakesVacuum 01-20-2009 12:03 PM

Re: Head Logo
 
Yup, Victor is right, I just did this in mine, I ripped the width and height tags out of main.css completely, they are not needed. It is not very smart of x-cart to include stuff like this by default. They should just have a "company logo" part of the admin panel where you set the logo for each size necessary and it makes all the adjustments.

HotrodOffroad 01-22-2009 06:23 PM

Re: Head Logo
 
OK, I hate to be ignorant, but I'm new to smarty, etc.
How do I change the width from 100% to 900 or another fixed width?

This doesn't work:

{*
$Id: rectangle_top.tpl,v 1.26 2008/08/21 09:52:40 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<table class="Container" cellpadding="0" cellspacing="0" width="{$width|default:900px}">
<tr><td class="Container">

I'm sure I'm missing something....

ARW VISIONS 01-22-2009 06:32 PM

Re: Head Logo
 
its in the CSS file.

Victor D 01-23-2009 12:03 AM

Re: Head Logo
 
If you are dealing with version prior to 4.2 just edit skin1/customer/home.tpl
find there the line
Code:

{include file="rectangle_ top.tpl"}

and change to
Code:

{include file="rectangle_ top.tpl" width="900"}

HotrodOffroad 01-27-2009 03:57 PM

Re: Head Logo
 
It's not in /rectangle_top.tpl ?
v 4.2

HotrodOffroad 01-27-2009 06:20 PM

Re: Head Logo
 
OK, I checked main.css for any width that looked like it should be global and I couldn't find anything.
I just want to make the site a specific width in 4.2 but I'm having no luck. This should be easy....
I can't find any other forum postings that explain this for 4.2.

HotrodOffroad 01-27-2009 06:35 PM

Re: Head Logo
 
So in relation to the head logo width and the whole website width in 4.2 I am now being a dork and adding to my last 2 posts.
In the main.css file at the top I did see a height tag, so I added a fixed width tag and now have a fixed width site, but it is somehow set to the left of the screen.
Here is how I added the html (the align: center tag does nothing):
/*
general tags styles
*/
html,body {
align: center; height: 100%; width: 900px;
background: #180000 url(images/golfsunsetshot.jpg) no-repeat;
margin: 0px;
padding: 0px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
min-width: 780px;
border: 0px none;
}


Any ideas?

ARW VISIONS 01-27-2009 07:51 PM

Re: Head Logo
 
the width should be controlled by page-container

#page-container {
min-height: 100%;
position: relative;
width:975px;
margin:0 auto 0 auto;
}

the margin is what centers the page.

ARW VISIONS 01-27-2009 07:56 PM

Re: Head Logo
 
read this,

bookmark it,

love it!!!!!!!!!!!!!!!!!!

HotrodOffroad 01-27-2009 08:01 PM

Re: Head Logo
 
Thanks Ashley,
But I added the

width:900px;
margin:0 auto 0 auto;

and it didn't center.


All times are GMT -8. The time now is 05:19 PM.

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