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

Main Content Padding Issue

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-28-2007, 09:18 PM
  scoobie's Avatar 
scoobie scoobie is offline
 

Advanced Member
  
Join Date: Dec 2006
Location: Sydney
Posts: 84
 

Default Main Content Padding Issue

Hi,

I am having an issue applying a margin to my main content. Basically I have removed code from head.tpl to line up my left vertical column right under my banner and navigation bar. As a result my welcome message and everything else line up straight under the nav bar too. I was hoping I could just apply some sort of padding or margin to an element to fix this.

I put the following code into my css file:-

.content_position {
margin-left:70px;
margin-top:50px;
}

and in my home_main.tpl on the first line, I added the following div statement because it would take into account all templates.

<div class= "content_position"</div>

My change worked fine in Internet Explorer but only the margin-top value worked in Firefox. Can someone give me some help with this?
Attached Thumbnails
Click image for larger version

Name:	layout2.jpg
Views:	149
Size:	39.3 KB
ID:	495  
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox)
PHP 4.4.4
SQL 4.1.21
Linux O/S
Reply With Quote
  #2  
Old 07-28-2007, 10:04 PM
  Jayk's Avatar 
Jayk Jayk is offline
 

eXpert
  
Join Date: Nov 2003
Location: Calgary, Alberta, Canada
Posts: 333
 

Default Re: Main Content Padding Issue

Quote:
Originally Posted by scoobie
I put the following code into my css file:-

.content_position {
margin-left:70px;
margin-top:50px;
}

Try adding padding to your css. Example:

Code:
padding: 0 0 0 70px;

The order for the values are: top right bottom left. I used a value of 70 for the left as that's what you used above.

Jason
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote
  #3  
Old 07-28-2007, 10:33 PM
  scoobie's Avatar 
scoobie scoobie is offline
 

Advanced Member
  
Join Date: Dec 2006
Location: Sydney
Posts: 84
 

Default Re: Main Content Padding Issue

Hi Jayk,

Thanks for replying. I tried your suggestion unfortunately it didn't work. It did nothing in Firefox and moved the content even more left in Internet Explorer.

Got any other ideas?
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox)
PHP 4.4.4
SQL 4.1.21
Linux O/S
Reply With Quote
  #4  
Old 07-30-2007, 12:03 AM
  scoobie's Avatar 
scoobie scoobie is offline
 

Advanced Member
  
Join Date: Dec 2006
Location: Sydney
Posts: 84
 

Default Re: Main Content Padding Issue

Any other suggestions? I am struggling to fix this issue in Firefox and I am all out of ideas.
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox)
PHP 4.4.4
SQL 4.1.21
Linux O/S
Reply With Quote
  #5  
Old 07-30-2007, 03:23 AM
  scoobie's Avatar 
scoobie scoobie is offline
 

Advanced Member
  
Join Date: Dec 2006
Location: Sydney
Posts: 84
 

Default Re: Main Content Padding Issue

I found the issue. I feel like a real Noob. I had a missing > on my div statement. All is well in the land of Firefox.
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox)
PHP 4.4.4
SQL 4.1.21
Linux O/S
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 02:54 PM.

   

 
X-Cart forums © 2001-2020