Forum Moderators: not2easy

Message Too Old, No Replies

<div> Vs <td>

         

marksbsteam

10:59 am on Oct 23, 2008 (gmt 0)

10+ Year Member



Hello,

I have created Menu Bar in my site in which i have used both <DIV> and <TD> both... Is it feasible for Browser dependency? But there is a problem in Firefox browser... But the format is not proper...

One more confusion is that some SEO Experts says that it is not good to use both <div> and <td>... Is it affect in Site SEO?

Please give me feedback

essiw

11:54 am on Oct 23, 2008 (gmt 0)

10+ Year Member



if there is a problem in firefox your code is not right, IE handles the code on his own will (IE 8 should have this fixed) so post your code ;)

swa66

12:50 pm on Oct 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not an SEO expert. But there really is no need to abuse tables to do layout.

Once you know CSS, a lot more should be possible with CSS than you ever had as ability in thinking in terms of cells in a table.

Don't make the mistake of thinking you need lots of <div>s in your html code. It's probably equally bad as using tables to go overboard on divs, spans and the like.

I think the advanced CSS "settled" menu-structure in html is:


<ul id="menu">
<li><a href="#">item1</a></li>
<li><a href="#">item1</a></li>
...
</ul>

Add in a method to choose which item is "selected" in the menu (e.g. the section you're in) by adding a class="select" on the appopriate <li> and that's it for the html.

Next comes the CSS, there are literally thousands of ways to get a menu out of that list, so it's limited by your fantasy on one end and what IE6 will support.

So what do you like your menu to look like ?

essiw

1:29 pm on Oct 23, 2008 (gmt 0)

10+ Year Member



@swa66
since CSS3 isn't here yet and much people don't have browsers who do support CSS3 in the next few years, I use a table for an image border ;) i know it should be possible whit CSS2.1 but it is just to difficult and you get to much divs