News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

Html Coding & Oscommerce

Started by shiftlocked, July 11, 2006, 11:02:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neXus

Quote from: Clockd 0NeMaybe Ive not caught up then, in which case Ill admit its not the most efficient method and M3ta7h3ad was right to suggest divs, but for someone new such as shiftlocked it might be throwing him in at the deep end. I suppose if youre going to learn though, might as well learn the best way first.

I find the odd problems pop up between browsers, but its easy enough to spot them and know how to deal with them. Its essentially more difficult for me to switch over to because some of the site work I do runs around sams Java which relies on certain element nesting.

Tables shouldnt be disregarded altogether though.

True, but its harder to go from doing lots of tables to learning divs and having to adjust your thinking, lucky that I learnt this i as learning web code at Uni, and so changed my approach.

Tables still have their use, yes, but as i said once in a blue moon.

M3ta7h3ad

aye its a proper pain in the arse to unlearn tables. oh dear god yes.

Buuuuttt... if you get it nailed now, its easier in the long run :)

Serious

Quote from: neXusTables still have their use, yes, but as i said once in a blue moon.

Eating *your man* sized dinners off?  :mrgreen:

shiftlocked

Ive just had a quick poke about with DIVS an understanding of how to use css with then.  Not sure how you do table style stuff with them ie.

------------- | -----------------
left col        | right col

It doesnt seem to be that more efficent code wise, in some respects even bigger still worth a dig about

That aside as a seperate issue, did anyone take alook at te code i posted/

Clock'd 0Ne

Looking at it I can see no reason why the tables are behaving that way. I still think my original suggestion is the best in this case, set the width on the table to 100% then the width on td.smallText to a suitable size to encompass the image. Let the browser do the rest.

Mardoni

Remember, theres a *right way* and a *correct way* and theyre not always the same.

If the solution you have is easiest for you and it does the job then its good enough.

Clock'd 0Ne

DIVs irritate me with the lack of inline-block support in browsers. They just dont work as well as tables when you are trying to do automatic spacing, took me a minute to make a table to do what I wanted, just dont see the problem with it really. :?

neXus

Quote from: Clockd 0NeDIVs irritate me with the lack of inline-block support in browsers. They just dont work as well as tables when you are trying to do automatic spacing, took me a minute to make a table to do what I wanted, just dont see the problem with it really. :?
Its not the actual creation its the update and the long term use as well as code size
Twice as many lines of code from a table and when it comes to change you have to do a lot more with tables.
Div inline stuff, again, there is the solution, once you know it, your fine.