Jump to content



Latest News: (loading..)

kantarou

Member Since 30 Sep 2008
OFFLINE Last Active Jul 23 2012 08:15 PM
-----

Posts I've Made

In Topic: for expert of CSS alignment problems

09 July 2012 - 07:08 PM

Well it's a complete mess.

I assume you want to align those 3 elements (button, input, quantity label) vertically.
  • Put "quantita" inside a <span>,
  • Take <input> and the button out of their common <div> container,
  • Remove all the float properties,
  • Give all 3 elements "vertical-align:middle;" property,
  • Give their parent container (the gray background box) a "line-height:64px;"
CSS is an amazing tool. The sooner you understand it the better. To get you started, use a good browser, install the Firebug extension, and read some tutorials and examples at W3C School.

In Topic: for expert of CSS alignment problems

09 July 2012 - 06:41 PM

I don't really know what you're trying to achieve. The images on the page you're showing seem to be aligned correctly.

However using so much inline styling (in fact using any inline styling) is a very bad practice. Also, you should output images as images (<img> elements) and not as backgrounds of <div> elements. You should also provide "title" and "alt" attributes for such images (and preferably "width" and "height" too) so that your images look like this:
<img src="path-to-image" alt="t-shirt thumbnail" title="Adidas Football T-shirt" width="100" height="100">

In oscommerce you use the tep_image function for that. To align it, make the image a block-element via CSS and set its left and right margin to auto.

The Laughing Man, eh? ;)

In Topic: Heavily modded industrial website - c&c welcome :)

08 July 2012 - 07:21 PM

Thank you Burt :)

At the time the best two solutions I could find were the STS and BTS contributions. I chose the first. Today I use only its main, vanilla functionality by assigning box or module I want to use (for example a /includes/boxes/facebook.php box) a placeholder and putting it in my layout. I can hardly think of a more flexible way and in fact never looked at another template contribution since. I had to modify the STS class a little bit, because it expected the content it extracted from oscommerce files to be inside a table (now it looks for the <!-- body start --> marker).

You seem surprised. What better template solution do you recommend?

In Topic: Heavily modded industrial website - c&c welcome :)

08 July 2012 - 05:48 PM

This is good advice that I'm well aware of, however it's a little bit off topic, won't you agree?

It's difficult to me to start from scratch because of all the time that I committed to this version, and since I'm not experiencing any problems I can't handle with my other stores, I plan to follow your advice only after a more complete v3 is released :)

In Topic: Heavily modded industrial website - c&c welcome :)

08 July 2012 - 05:33 PM

Well, I updated it in the meantime to v 2.3...