Jump to content

Recommended Posts

Hi

 

I am trying to replace all of my tables with divs because everyone says that divs are faster/better or something.

 

I am having one little problem though.. when I use divs instead of tables, my stuff is no longer lined up.

 

Can somebody please tell me how to fix this?

 

And on a side note.. I've seen on some websites that use divs for navigation, the box containing the link is bigger then the link itself, but it isn't padded with spaces. And if you click the blank area around the link, it works just like clicking on the link. How can I make mine like this?

Link to comment
https://forums.phpfreaks.com/topic/59432-replacing-tables-with-divs/
Share on other sites

For clarity's sake.  Use tables to display tabular data; nothing more. The table element is intended for ... tables. The table element is NOT intended as a layout device.

 

CSS for layout

TABLES for tabular data.

 

As to your questions about CSS navigation - http://css.maxdesign.com.au/listamatic/

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.