var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Converting tags like topmargin to valid xhtml
I tried to validate a test page and amongst other things I get this
(First I used Dreamweaver's MX convert to xhtml):
there is no attribute "topmargin", leftmargin, topmargin, marginwidth, marginheight
this is usually fixed by using CSS to achieve the desired effect instead).
there is no attribute "background"
...acing="0" cellpadding="0" background="images/backd.gif">
This is the code I have now
I use these attributes so as not to have extra margins on my site but I am not sure how to move them to the css. Similar with the bacground attribute Any css gurus there?
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" vlink="#FF6633" link="#FF6600" background="../images/home.gif">
Last edited by spiros; 06-23-2005 at 11:03 AM.
Check out CSS Margin Properties
You can use something like:
And I would also take a look at CSS Pseudo-classes to apply the appropriate classes to your hyperlinks as well.