Simple HTML Code for Horiz Bar doesn't work for Google Sites -


i"m trying add piece of html code google sites html box. new this, please bear me! i've tried code out on html test sites, , works fine no errors. once copy/paste google sites html box, gives me error follows:

6+1 - 2: expected <selector> not < 

my frankenstein (pieced crudely myself) html follows:

<body> <style type="text/css"> body {background-color:#;} #header {background-color:#ccc;             width: 100%;                             }  <div style="overflow:auto”   </style> <div id="header"> <p> <img src=  http://tctechcrunch2011.files.wordpress.com/2012/08/gmail-logo-icon.png?w=300 align="center">...some text... </p>  </div>   </body> </html> 

can shed light on why doesn't work in google sites html box?? in advance!

ok try you.

  1. always format code. it's better , others read later.
  2. i don't know doctype use u missing close img tag.
  3. try using stylesheets files instead of writing line css.


<head>     <style type="text/css">     body {background-color:#;} /*<----- missing color*/     #header {         background-color:#ccc;         width: 100%;     }      /* <div style="overflow:auto” <----------- shouldn't here */     </style> </head> <body> <div id="header">     <p>         <img src="http://tctechcrunch2011.files.wordpress.com/2012/08/gmail-logo-icon.png?w=300" align="center" />...some text...     </p> </div> </body> 

if have question ask. try if know.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -