Forum Moderators: not2easy
I am getting better though, and slowly
migrating my sites to CSS.
I get frustrated, and often tempted
to use nested table 'work-a-rounds',
but I am trying to stop that now.
My new endeavour is trying to trim and clean up my code,
by linking style sheets and javascript files.
I am not having much luck yet, and wondering if someone can point me in the right direction.
When I am doing mouseover images (specifically in DW), I get all kinds of javascript that I would LOVE to link off-page. Not quite sure if this is possible but I would be ecstatic if it was. I am FAR from a java programmer, so in many cases this code baffles me, and I try not to touch it, or quickly press CNTRL+Z if I accidently do.
Please help me continue my resistance of tables.
Im just getting into external .js and css, but still use tables, mainly because i know it works in most browsers, whereas layers im not sure.
Should i change, and will i see a big difference in SEO and download speed if i do?
Also, not knowing much about layers, what can layers do that tables cant, or vice versa.
thanks
Should i change, and will i see a big difference in SEO and download speed if i do?
It should also reduce download time, depending on the amount of tables you use.
This is what I'm really hoping for.....
I seemed to have noticed that very 'simple' pages have been ranking high in G lately....
If not, then purely for the joy of something new, and having 'cleaner' code...
Woohoo! <does cabbage page dance>
I just finished uploading an update to my 150+ page site.....I was able to convert the table-based mess into a nice 3 layer style sheet.
I am very happy because I also discovered (for the first time) how to externally link the .js and .css files so my content is close to the top. It works....it really works!
Next step.....any suggested appreciated.....
getting rid of all my outdated <font> and other formatting tags in the 'content' section of my pages.....
Next step.....any suggested appreciated.....
getting rid of all my outdated <font> and other formatting tags in the 'content' section of my pages....
Get rid of the font tags, and set them up in your font styles in the external CSS file... and use the class in your html attributes instead...
e.g (home.css as the external file)
-- contents of the file (home.css) --
.normaltext
{
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
FONT-SIZE: 10px
}
-- End of file --
<html>
<head>
<link rel="stylesheet" type="text/css" href="home.css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="normaltext">Hello World
</td>
</tr>
</table>
</body>
</html>
<link rel="stylesheet" href="../newstyle4.css" type="text/css" />
I've been linking to external stylesheets like this too, but I've found that validating to HTML 4.01 transitional gives me the following error at the w3c validation service:
Error: end tag for element "HEAD" which is not open; try removing the end tag or check for improper nesting of elements
If I remove the closing forward slash at the end of the link tag it validates fine, same situation but with a different error with strict.
Can you think of a feasible way to do a find and replace SITEWIDE?
It's lookin' pretty grim to me, but thought somebody else might have an idea. I know I will certainly be trying to stay away from <font> tags in the future.....it's amazing how much bloat they add to each page.
What I've done:
1. Globally replace all </font> tags with nothing.
2. Do a global search on <font.
3. Copy the COMPLETE font open tag from < to >
4. Paste that tag into the search "find" function
5. Do a global "null" replace for that specific flavor of font tag.
6. Search again on <font, and delete the next flavor you find.
7. Keep repeating until you can't find anymore instances of <font.
One of the places where I could not do without tables was in captions below images. I tried starting another thread [webmasterworld.com] about this problem, but the consensus seems to be that there's no better alternative.
I haven't done much research into this lately and am wondering, from a spidering & ranking point of view, whether things have changed?
I've always found the highest ranked pages to have very simple, table based html code. Am I out of the loop?
However, div based layouts offer many advantages - not the least being absolute positioning that allows you to push your essential content closer to the top of the HTML document.