| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
weird layout problem | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() hi
two pages of one of my carts are displaying with a weird layout it appears that these pages are calling the bottom template too early and that pushes the menu down below the product listings here is that the page should look like http://ntphealthproducts.com.au/cart/Current-Specials/ these are the two pages that are not displaying correctly http://ntphealthproducts.com.au/cart/Flora-Chocolate-Truffles/ http://ntphealthproducts.com.au/cart/Current-Specials/?page=2 it does not seem to be product related and I have made the product it appears "not available" and the next product just moves up and the problem still exists can anyone help me out ??
__________________
4.4.3 |
|||||||
#2
|
|||||||
|
|||||||
![]() on analysing the code in Firebug for both the Current Specials page
the incorrect page has the following code <body class="normal-page"><img role="presentation" class="twisty "><div id="page-container"> <img role="presentation" class="twisty "><div id="page-container2"> <img role="presentation" class="twisty "><div id="content-container"> <img role="presentation" class="twisty "><div id="content-container2"> <img role="presentation" class="twisty "><div id="center"> </div> </div> <img role="presentation" class="twisty "><div id="left-bar"> </div> </div> and the correct page has <body class="normal-page"><img role="presentation" class="twisty "><div id="page-container"> <img role="presentation" class="twisty "><div id="page-container2"> <img role="presentation" class="twisty "><div id="content-container"> <img role="presentation" class="twisty "><div id="content-container2"> <img role="presentation" class="twisty "><div id="center"> <img role="presentation" class="twisty "><div id="center-main"> </div> <img role="presentation" class="twisty "><div id="left-bar"> </div> </div> the page is throwing in an extra </div> I think thsi si what is throwing the menu ("left-bar") to the bottom of the page given it is using the same template etc any idea why this is occuring ?
__________________
4.4.3 |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Use validator.w3.org to validate the site, it will tell you where that extra div is
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||
|
|||||||
![]() thanks steve - I can see where they are - just don't understand why one page has an extra </div>
I would have thought all the pages with identical layouts should have the same code (excusing the different products) it would seems to me that it is not template related - but may be something in the layout code that is causing it (pardon my ignornace but I ain't no expert in this kind of stuff!) is it something you could take a look at and if so what would the charge be (I haven't been too impressed with price or service from the folk as x-cart lately)
__________________
4.4.3 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() You have something that is differnet on that page and it has additional div in it. Some language variable, or other text. You can email with details if you need professional help with this
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#6
|
|||||||
|
|||||||
![]() yes - I realize what the problem is - I was just hoping someone could explain to me why it is happening
__________________
4.4.3 |
|||||||
#7
|
|||||||
|
|||||||
![]() I mean is it something I can fix with editing templates or css - or is it a deeper problem?
__________________
4.4.3 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() It is what I advised you in the other thread you opened - you have an extra </div> inside one of your product descriptions.
Look at the description for the product called: Bija Hazelnut - If you look closely at the page - you will see that things start falling apart with that product. You need to look at the product description - but not using a WYSIWYG editor. You will see that there is an unmatched </div> inside that description right after "Click on the image for a list of ingredients" If that does not clear it up - you have to look at the W3C report - where you have a errors with tags opened and not closed, or extra closed tags reported - those need to be fixed, or you are likely to have cross-browser display problems. If you have not modified the templates - the issues are probably inside the product descriptions and language variables that you updated with a WYSIWYG by pasting from another source. --- ---
__________________
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) |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() Yes, you can fix like gb2world said if the error still appears http://validator.w3.org/ can help you check the errors.
extra </div> is causing all this. You will have to fix this in html editor not in WYSIWYG editor
__________________
If you need professional help on your x-cart site or any website. Feel free to PM me or Skype me to discuss your project. |
|||||||||
#10
|
|||||||
|
|||||||
![]() you guys are awesome !!
thanks so much - as you said there was an extra </div> in the product descriptions of two of the products in a particular category I knew it had to be coming from somewhere ![]() I guess it came from my clients copy & pasting from word into the wysiwyg editor
__________________
4.4.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|