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)
-   -   Main Content Padding Issue (https://forum.x-cart.com/showthread.php?t=32861)

scoobie 07-28-2007 09:18 PM

Main Content Padding Issue
 
1 Attachment(s)
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?

Jayk 07-28-2007 10:04 PM

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

scoobie 07-28-2007 10:33 PM

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?

scoobie 07-30-2007 12:03 AM

Re: Main Content Padding Issue
 
Any other suggestions? I am struggling to fix this issue in Firefox and I am all out of ideas.

scoobie 07-30-2007 03:23 AM

Re: Main Content Padding Issue
 
I found the issue. I feel like a real Noob. :oops: I had a missing > on my div statement. All is well in the land of Firefox.


All times are GMT -8. The time now is 12:41 AM.

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