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.
- always format code. it's better , others read later.
- i don't know
doctype
use u missing closeimg
tag. - 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
Post a Comment