Jump to content

Help!! I'm a begginner.


Vincenza

Recommended Posts

I'm new at this and I'm starting my website pages. I have a problem and I'm not able to correct it, Please help.Here are the steps that I'm doing to start my page. I already have a index and style page per made ( free template)Open NotepadCopy and paste the index or style page.Save asFile name: style.htmlSave as type: all files.saveView it in my browser and this is what i see:/* CSS Document by Dieter Schneider 2007 | www.csstemplateheaven.com */ * {margin: 0; padding: 0;} body { background-image: url(images/body.jpg); font-family: Georgia, "Times New Roman", Times, serif; font-size: 62.5%; } /*---------------- Main structure --------------*/ #container { width: 885px; font-size: 1.2em; background-image: url(images/container.jpg); background-repeat: repeat-y; } #header { background-image: url(images/header.jpg); height: 288px; margin-top: 0px; } #sideheader { background-image: url(images/sideheader.jpg); height: 576px; width: 145px; position: absolute; left: 740px; top: 0px; } #left_column { width: 180px; margin-top: 0px; float: lEverything is all bunched together.What am I doing wrong. Do I need to open up two separate notepad pages. And save them with different file names ( .html and/or text. Am I missing a step.I have tried this many time and it's turning out correct.Please help.Vincenza

Link to comment
Share on other sites

What you show there is CSS code, not HTML code. If you have a CSS-only file then save it as .css, not .html. If you want to put the CSS info directly into the HTML file then it goes between <style> tags in the head of the HTML document.

Link to comment
Share on other sites

Also, you might want to include some standard code for the template document you are putting together. The following is standard "XHTML 1.0 Strict" code for a basic blank page.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title></head><body></body></html>

If you are learning things at this point, as I am relearning much, try to focus on XHTML rather than HTML. That's what I was advised to do and I think that it's reflected in my programing habits.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...