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

quick question about welcome message alignment

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-21-2008, 09:50 AM
 
Janel Janel is offline
 

Member
  
Join Date: Feb 2007
Location: Mitten Dweller
Posts: 27
 

Default quick question about welcome message alignment

This SHOULD be easy...but I've tried for 2 days and I know I'm probably just missing something.

If you go to my shop you can see how my welcome message goes past the table container background image. I've tried adding a padding and a margin to the right but both mess up the site...so I'm figuring I'm just adding it in the wrong spot on the css.

I've tried to add a margin or padding both to the BODY,DIV,TH,TD,P,INPUT,SELECT,TEXTAREA,TT (does the trick on the welcome message but that makes the header not centered) and to the HTML,BODY but nope...not working.

Any suggestions???

www.blueowlstudio.com/shop

Thanks in advance
__________________
xcart ver. 4.1.11 gold
Reply With Quote
  #2  
Old 12-21-2008, 10:48 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: quick question about welcome message alignment

One possible solution is to put a div inside the td of your central space. In home.tpl look for the comments that say "central space". After the first td add a new div:

Code:
<td valign="top" width="100%"> <!-- central space --> <div style="margin-right:20px">


then close the div where the central space /td is:

Code:
</div> <!-- /central space --> </td> adjust the value as required
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #3  
Old 12-21-2008, 10:51 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: quick question about welcome message alignment

I usually name that TD main and use CSS to style it.


<td id="main">
__________________
xcart 5.1.2
Reply With Quote
  #4  
Old 12-21-2008, 11:33 AM
 
Janel Janel is offline
 

Member
  
Join Date: Feb 2007
Location: Mitten Dweller
Posts: 27
 

Default Re: quick question about welcome message alignment

Quote:
Originally Posted by gb2world
One possible solution is to put a div inside the td of your central space. In home.tpl look for the comments that say "central space". After the first td add a new div:

Code:
<td valign="top" width="100%"> <!-- central space --> <div style="margin-right:20px">


then close the div where the central space /td is:

Code:
</div> <!-- /central space --> </td> adjust the value as required

So...this worked for my main page...but then when you go to product pages my header and my footer are not centered anymore. How do I keep them from moving on the subsequent pages???
__________________
xcart ver. 4.1.11 gold
Reply With Quote
  #5  
Old 12-21-2008, 11:45 AM
 
Janel Janel is offline
 

Member
  
Join Date: Feb 2007
Location: Mitten Dweller
Posts: 27
 

Default Re: quick question about welcome message alignment

figured it out...just had to mess with the padding on vert menus to get everything where it needed to be.

Thanks bunches.
__________________
xcart ver. 4.1.11 gold
Reply With Quote
  #6  
Old 12-21-2008, 12:26 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: quick question about welcome message alignment

why are you using inline styles. us the stylesheet.
__________________
xcart 5.1.2
Reply With Quote
  #7  
Old 12-21-2008, 04:15 PM
 
Janel Janel is offline
 

Member
  
Join Date: Feb 2007
Location: Mitten Dweller
Posts: 27
 

Default Re: quick question about welcome message alignment

Quote:
Originally Posted by Ashley
why are you using inline styles. us the stylesheet.

ummm....cuz I'm still kinda learning all this stuff as I go so ??? How would I just use the stylesheet? I use that for a lot of the stuff but not sure how to add something to it so I can achieve what I want.

I keep saying when I quit my "real job" I'm going to just learn this all from top to bottom. But as it is I'm learning what I can when I have the time to play with it. I wish I knew a lot more than I do.
__________________
xcart ver. 4.1.11 gold
Reply With Quote
  #8  
Old 12-21-2008, 04:24 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: quick question about welcome message alignment

MAKE A BACKUP!!!

open the skin1.css in the skin1 folder.

I usually make a comment at the top called custom styles to kep them separate from the original styles.

you can make a comment like this.

/*
Custom styles
*/

to make a custom class use this

.customClass{
color:#66000;
fontweight:bold;
line-height:1.5em;
}

to call the class use this <div class="customClass">my content</div>


- this an have any name that is not already used in the style sheet. Classes can be used repeatedly in the .tpl files.

to make a custom ID use this

#customId{
color:#66000;
fontweight:bold;
line-height:1.5em;
}

to call the class use this <div id="customClass">my content</div>
- id should only be used once per page so use them sparingly.

hope this helps
__________________
xcart 5.1.2
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 11:48 AM.

   

 
X-Cart forums © 2001-2020