Jump to content

Don E

Members
  • Posts

    996
  • Joined

  • Last visited

Everything posted by Don E

  1. That there is called a Internal Style Sheet. You can do that. Basically three ways to add CSS: Inline Style, Internal Style Sheet, and External Style Sheet(Recommended). External: <head><link rel="stylesheet" type="text/css" href="mystyle.css" /></head> Internal(like what you pasted): <head><style type="text/css">hr {color:sienna;}p {margin-left:20px;}body {background-image:url("images/back40.gif");}</style></head> Inline: <p style="color:sienna;margin-left:20px">This is a paragraph.</p> That is a HTML document. Maybe you're use to seeing this: <!DOCTYPE html><html><head><link rel="stylesheet" type="text/css" href="mystyle.css" /></head><body><h1>CSS example!</h1><p>This is a paragraph.</p></body></html> The mystyle.css would have all your styling for that page(s). mystyle.css (just an example): body (background-color: lightblue;} p { color: grey; text-indent: 50px;} h1 {background-color: yellow;}
  2. Check out these links: http://w3schools.com/css/default.asp http://w3schools.com/css/css_howto.asp
  3. Noticed it's your birthday.. Happy Birthday Fox!

  4. Just thought I'd write and say thanks for your input/help whenever I have a question. It's always appreciated.

  5. Just thought I'd say thanks for your input. You really know your stuff! I appreciate it.

  6. Are you referring to something like this: <!doctype html><html><head><title>TD</title><script type="application/javascript">window.onload = function init(){var td = document.getElementsByTagName("td");for(var i=0; i<td.length; i++){ if(td[i].id == "productID") { alert(td[i].innerHTML); }}} </script></head><body><table><tr><td id="productID">260871544234</td></tr><tr><td>Hello world!</td></tr></table></body></html> If so, you just make it more simple by just using document.getElementById;
×
×
  • Create New...