Hey everyone,
I just wanted to know what was everyone's easiest and best method of creating standards compliant XHTML/CSS directly from PSD (basically the coding part)?
Hey everyone,
I just wanted to know what was everyone's easiest and best method of creating standards compliant XHTML/CSS directly from PSD (basically the coding part)?
umm
code it.
seriously, there isnt a best method to creating code other than coding.
first of all cut all the images out and optimize them... then you make your directory structure. make css and html files. code your html file [add your content, structure w/ tags, make sure doctype, head, etc..]. code your css. then upload it
Look at http://www.w3schools.com/
Memorize css and xhtml. Hint: Make sure the doctype is xhtml 1.1, so firefox with complain if you forget to close a tag or something.
But what is your best method of setting the margins so that it equally matches the pixels in Photoshop? ![]()
That only happens if you're serving the page as application/xhtml+xml.Look at http://www.w3schools.com/Memorize css and xhtml. Hint: Make sure the doctype is xhtml 1.1, so firefox with complain if you forget to close a tag or something.
I thought that in the css, you just set the margins to the same pixels in photoshop that certain parts are positioned, such as the content area, banner, and etc... so you are saying that you dont?
you can do that..
ie if you have your text 25px from the sides of your white box you can add a 25px padding to it..
also i recommend xhtml 1.0 strict b/c xhtml 1.1 requires the document to be declared as xml, but IE will shit on it unless it is declared as text+html