![]() |
Table width's and borders
Hi, take a look here - www.wyzeshop.com/store - and you'll see what I'm about to rant on about.
There seems to be a tiny gap between all of the menu boxes on the left of the screen that I can't seem to get rid of. Anybody know where the code is hiding that is causing this? Also, Am I just being really stupid about table widths as I can't seem to get my templates to display properly. I'll set a width of say 159px for the left column but when the table is called it's way wider than that and messes up the middle and right columns too. Cheers :) |
Take a look at menu.tpl, it will show you what styles could be causing that border.
|
Quote:
Thanks again man :) One other question - I can't seem to make the column run to the bottom of the page and meet up with the footer - http://wyzeshop.com/store/home.php?cat=7 When I try to label the table cell with a background colour (white) it stretches the table wider than the menu colums. I think this is due to my html editor (dreamweaver) and the fact that even though you can set the column widths by number when you drop the smarty code in there it stretches the column by about another 80px. In the code it is still saying that the width is set to 157px but on the wysiwyg it stretches the coloumn filling the background with the selected colour & this is somehow being replicated when home.tpl is called. Here is the code for my home.tpl Quote:
I can see that after uploading it the table width has changed to 184px - when I try to change this manually to 157px from the edit templates section in x-cart admin it gives me a File couldn't be saved error? Is there anyway around this. Or am I just missing something obvious? |
Do you have the smarty plug-in for Dreamweaver? If not, you are probably shooting yourself in the foot by using DW.
Be sure to call your images using smarty, and code your table cells using CSS, not the old fashioned way like you have: background="http://www...etc" will cause all sorts of issues, but mainly security issues when you go into https. Get yourself a good book on CSS, it is the standard for formatting these days. |
Haha fixed it!
Ok so Word Pad is my new best friend ;) |
Thanks for all your help so far balinor - if I become too much of a pain just say ;)
|
Ya...edit the templates right in X-Cart or use your favorite text editor. Ultraedit is a VERY good editor.
|
Quote:
I know how to call a regular image with smarty code but how would I call a background image? |
background: url(images/imagename.jpg);
|
All times are GMT -8. The time now is 07:38 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.