PDA

View Full Version : Category tree width


strongo
07-23-07, 07:32 PM
Hi,

I've searched for relevant topics in this forum and can't find anything that's directly applicable. After installing Sebenza's Category Tree Template, it seems that the cattree now occupies a larger percentage of the window as I widen the browser window. That is, if I widen my window, the cattree becomes about 50% of the width vs the 20% that it should be. I don't have anything in the global header.

Seems to be related to Firefox, but not IE. The strange thing is that I can't find any place that sets the width of any table (only the 80% value in the main content part of the template).

I'm still fairly new to Miva, and yes, the site is rough, but you can see it here:
http://67.99.201.175/mm5/merchant.mvc?Screen=SFNT&Store_Code=BC

I'd appreciate any help, suggestions, tips, etc. Do I need to specify the table width somewhere rather than relying on the default? (if so, where?) What are some recommended widths for browsers these days? Is using CSS a better way to control these things rather than table width settings?

Thank you

Jeff

Leanne
07-23-07, 09:58 PM
I think you're better to go with CSS if you have the capability, but even with CSS, if your pages don't have a doctype, you'll run into these kinds of issues, particularly with a browser like Firefox. Try adding a doctype to your page and see if that helps.

Biffy
07-23-07, 10:01 PM
I think that CSS is superior to HTML tables.

Just replace all the table code with CSS divs and then specify their dimensions. You can go fixed width or fluid, whichever you like. Horizontal or vertical, any location on the page. You can use CSS rollovers, drop-downs, flyouts, whatever you want. Use the CSS id attribute to control the behavior of the links.

Sebenza's module allows you to apply CSS styles to everything in the category tree.