PDA

View Full Version : sw_frame not centering


Mel
19-11-07, 20:01
Hi everyone,

I use the following CSS in non shop window websites that I have designed in the past and the frame which I usually call a wrapper sits in the center of the page on all browsers without problem

#sw_frame {
float:none;
background:#FEFEFE;
border: 1px solid #FF0000;
margin: 0pt auto;
width:700px;
padding: 0pt;
}

have also tried

#sw_frame {
background:#FEFEFE;
border: 1px solid #FF0000;
margin-left: auto;
margin-right: auto;
width:700px;
padding: 0pt;
}

Result being Opera Firefox fine but IE displays on the left hand side of the page and not in the center

Is the problem anything to do with fact that the various .tpl pages are calling in other stuff from the shop window?

Even stripped my index.tpl page down to just a logo to try and retrace my footsteps but no joy

Having checked several of the sites posted in the forum they are all showing centered in IE6

Has anybody got any ideas what could be happening?

Thanks Mel :(

Mel
21-11-07, 19:36
I posted a message about sw_frame not centering in this section

As was not able to get a response from the forum (and I am not slating the forum members as several have already been helpful to me but I needed an answer to this problem sooner rather than later) so I contacted AW

Their response ' suggest you wait for a reply on the forum '

Don't take this the wrong way admin but if you are going to launch a product then be prepared to support it fully which means taking a very active roll in the forum

When you look through this forum there are several questions that have no real answers as us mere mortals do not always know the answers - but you designed the software so you should at least have a better idea of the answers

I also posted another question in the widgets section about the buy button, followed up by a comment about the ' powered by ' being plastered on each widget box - whilst it is pointless using the widgets with powered by in each box it would have still been a good idea to answer the question about the buy button

Many of us would probably like to have a crack at using API - so why not provide some really good in depth howto documentation rather than just technical details on hoe to implement API ?

Whilst I cannot speak for other members in the forum - I think Shop Window has great potential but it really should be supported more by admin - you after all designed the stuff so help us all make full use of it surely this is in everbody's interest

Mel

authcode
21-11-07, 22:27
Hi Mel,

I don't usually check this forum but if you're still having a problem I can take a look if you want to post (or PM) your URL so I can see the code. However, I can't initally see anything wrong with what you've already tried.

Confuscius
21-11-07, 23:01
How about coding the following into your template files as a temporary 'fix':

....
<body>
<center>

....

</center>
</body>
</html>

I like a simple life!

Paul

Mel
22-11-07, 03:43
How about coding the following into your template files as a temporary 'fix':

....
<body>
<center>

....

</center>
</body>
</html>

I like a simple life!

Paul

Thanks Steve & Paul for your input

The <center> option worked but what I ended up using was

<div align="center">sw_frame div tag+content </div>

Which worked as well - but a real puzzle why the the auto margins did not work with IE - never had that problem before on normal sites that I have designed the auto margins have always worked in IE Firefox Opera without problem - good game

Mel:)

chartfieldconsultants
22-11-07, 17:47
Sorry to come late to this.

Earlier versions of IE (5 and 5.5) are notorious for not accepting margin:0 auto; for centring purposes - you don't say which version you're looking at it in but my understanding is that by v7 (or even 6, which I use when I have to) that method worked.

A work-round is to centre the whole page, then left-align the contents of the div you're centring - see here, in point six: http://www.webcredible.co.uk/user-friendly-resources/css/internet-explorer.shtml

Adrian
22-11-07, 18:25
Don't take this the wrong way admin but if you are going to launch a product then be prepared to support it fully which means taking a very active roll in the forum

When you look through this forum there are several questions that have no real answers as us mere mortals do not always know the answers - but you designed the software so you should at least have a better idea of the answers.

Whilst I cannot speak for other members in the forum - I think Shop Window has great potential but it really should be supported more by admin - you after all designed the stuff so help us all make full use of it surely this is in everbody's interest

Mel

Hi Mel,

As a technology provider and leading affiliate marketing company, we understand the importance of a strong support base behind our developments. This is the reasoning behind us having a support channel directly accessible through each individual affiliate account, and specifically for ShopWindow; this forum. Although we monitor the forum and provide support where necessary, we are not here to customise or develop solutions for you. The aim for the forum was for affiliates like yourselves to develop and benefit from an online community. We feel that through the strong efforts of many (including those that have helped you in this thread) this objective has been achieved.

Our ShopWindow tools are provided to you under the GPL Licence, as a consequence makes customising the sole responsibility of the affiliate.

The below quote is taken from the SW Client Software code, that outlines our policy on this:

“This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.”

We appreciate that the tools are quite complex and require a certain level of understanding, and appreciate your difficulties. To aid you in your developments, I would like to provide you with my direct contact details (included below) to ensure that you achieve your marketing objectives through the use of ShopWindow.

Please don’t hesitate to give me a call to discuss any of the above or any integration issues.

Regards

Adrian
SW Integration & Technical Support

Email: adrian.botelho@digitalwindow.com
Tel: 020 8269 4010
www.digitalwindow.com

Mel
23-11-07, 00:19
Sorry to come late to this.

Earlier versions of IE (5 and 5.5) are notorious for not accepting margin:0 auto; for centring purposes - you don't say which version you're looking at it in but my understanding is that by v7 (or even 6, which I use when I have to) that method worked.

A work-round is to centre the whole page, then left-align the contents of the div you're centring - see here, in point six: http://www.webcredible.co.uk/user-friendly-resources/css/internet-explorer.shtml

Hi Andy,

Thanks for the reply and useful link

IE was version 6.0 which has not caused me a problem in the past using margin: 0 auto; - the only difference being that tpl's were not involved just standard php & html pages

Still all the workarounds including yours work so at least if anybody else comes into the forum with the same problem we have the answer for them

Mel:D

Mel
23-11-07, 00:48
Hi Mel,

As a technology provider and leading affiliate marketing company, we understand the importance of a strong support base behind our developments. This is the reasoning behind us having a support channel directly accessible through each individual affiliate account, and specifically for ShopWindow; this forum. Although we monitor the forum and provide support where necessary, we are not here to customise or develop solutions for you. The aim for the forum was for affiliates like yourselves to develop and benefit from an online community. We feel that through the strong efforts of many (including those that have helped you in this thread) this objective has been achieved.

Our ShopWindow tools are provided to you under the GPL Licence, as a consequence makes customising the sole responsibility of the affiliate.

The below quote is taken from the SW Client Software code, that outlines our policy on this:

“This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.”

We appreciate that the tools are quite complex and require a certain level of understanding, and appreciate your difficulties. To aid you in your developments, I would like to provide you with my direct contact details (included below) to ensure that you achieve your marketing objectives through the use of ShopWindow.

Please don’t hesitate to give me a call to discuss any of the above or any integration issues.

Regards

Adrian
SW Integration & Technical Support

Email: adrian.botelho@digitalwindow.com
Tel: 020 8269 4010
www.digitalwindow.com

Hello Adrian,

Thanks for your reply will give you a call next week

Mel

authcode
23-11-07, 08:54
Hi Andy,

Thanks for the reply and useful link

IE was version 6.0 which has not caused me a problem in the past using margin: 0 auto; - the only difference being that tpl's were not involved just standard php & html pages

Still all the workarounds including yours work so at least if anybody else comes into the forum with the same problem we have the answer for them

Mel:D

It occured to me yesterday that this problem might be caused by the DOCTYPE. I don't have the client installed but check what DOCTYPE it's using. Try switching it from strict to transitional or vice versa.

Confuscius
23-11-07, 12:27
I thought that I would have a dig around to see if I could find anything useful to help me improve some of my lack of skill in certain areas css, etc!

Anyways, I came across this : https://addons.mozilla.org/en-US/firefox/addon/1843 : I have to say that I think it is pretty neat for inspecting code and also monitoring page load times as you can see every file, size, etc - only just started playing with it but it is great fun!

Enjoy!

Paul

Mel
23-11-07, 23:00
I thought that I would have a dig around to see if I could find anything useful to help me improve some of my lack of skill in certain areas css, etc!

Anyways, I came across this : https://addons.mozilla.org/en-US/firefox/addon/1843 : I have to say that I think it is pretty neat for inspecting code and also monitoring page load times as you can see every file, size, etc - only just started playing with it but it is great fun!

Enjoy!

Paul

Yes I started using this addon a few weeks back and found it really useful

Whilst on CSS - anybody just starting out with CSS could find the following book really informative " CSS The Missing Manual " by David Sawyer McFarland

I find it a really useful reference book with plenty of examples in the book + it has links to download the CSS files and pages used in the lessons - clearly written and for the most part easy to understand

Mel