954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Are tables considered bad coding practise?

Like, would a potential employer think badly of someone who had used tables for instance to structure the header and footer of their website?

asif49
Posting Whiz in Training
245 posts since Dec 2010
Reputation Points: 5
Solved Threads: 0
 

I don't know about other employers, but I wouldn't look twice at a potential employee or contracter who used tables for the layout of a website instead of css in this day and age (obviously if the table had been used for what it was meant, to display data, then that wouldn't be a problem).

simplypixie
Posting Pro in Training
447 posts since Oct 2010
Reputation Points: 116
Solved Threads: 82
 

haha okay^^ thanks for that

asif49
Posting Whiz in Training
245 posts since Dec 2010
Reputation Points: 5
Solved Threads: 0
 

Also, what about using negative margins?

asif49
Posting Whiz in Training
245 posts since Dec 2010
Reputation Points: 5
Solved Threads: 0
 

Can you provide an example of where you think you would need to use negative margins (so I can advise)?

simplypixie
Posting Pro in Training
447 posts since Oct 2010
Reputation Points: 116
Solved Threads: 82
 

Okay, I'll try to describe it the best I can

So I have a banner (header) on top of my website with several elements inside of it. Some of the elements are of bigger height than others and I want them all to be centered within that banner (in terms of height) according to their own heights. I use padding on that banner but it doesnt center all elements accordingly to their heights so I have to change one of their margins to go slightly above the padding.

Hope that made some sense...

asif49
Posting Whiz in Training
245 posts since Dec 2010
Reputation Points: 5
Solved Threads: 0
 

In this case then no, there is nothing wrong with using negative margins (I would use margins on the elements instead of padding in the header as I find it works better cross-browser and is easier to manipulate).

There are a few examples of how to do it on this website - http://bit.ly/uybHGA . Hope this helps

simplypixie
Posting Pro in Training
447 posts since Oct 2010
Reputation Points: 116
Solved Threads: 82
 

Dont worry,
use tables for layout, you would not be a potential employee anywhere,
problem solved

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 
Dont worry, use tables for layout, you would not be a potential employee anywhere, problem solved

A bit rude. I doubt you, yourself were born knowing how to code - everyone starts somewhere.

It looks like you stopped after learning HTML and CSS, could do with learning some manners too.

asif49
Posting Whiz in Training
245 posts since Dec 2010
Reputation Points: 5
Solved Threads: 0
 

I did use the intervening time learning how to read,
and think,
a simple search, either of Google or the search box on this site,
would return the consensus, current best practice, and negate the requirment for such a question.
Perhaps the rudeness of the reply is balanced by the ignorance of the question.

dilligaf

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

They poster is not being ignorant, they are asking for genuine advice and at least they asked unlike some who still seem to just go ahead and use tables for layout - we all started somewhere. All you had to put was that it was a no-no and suggest they search on Google. There is no need for rudeness.

simplypixie
Posting Pro in Training
447 posts since Oct 2010
Reputation Points: 116
Solved Threads: 82
 

true,
'49 I apologise snide comments are unfair, and mine were snide

I would like you to consider as well, I am your potential employer, the ceo of a below fortune 500 company, we do our 1 thing, and do it very well
assuming the resume submitted was syntactically and grammatically correct enough to not be binned
If you begin any part of your in-person interview with 'like', you are out the door.
my generation are remarkably, as demonstrated by me, intolerant.

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

I did use the intervening time learning how to read, and think, a simple search, either of Google or the search box on this site, would return the consensus, current best practice, and negate the requirment for such a question. Perhaps the rudeness of the reply is balanced by the ignorance of the question.

dilligaf


No.

asif49
Posting Whiz in Training
245 posts since Dec 2010
Reputation Points: 5
Solved Threads: 0
 

for a potential customer, Yes.. one who is in Professional Enviroments,.
but for a Beginner,.. not that bad,.
atleast, you will create somethiing based on your knowledge for the start,
after that you can learn Css and create Header and Footer of the site..

Zahinize
Newbie Poster
9 posts since Nov 2011
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: