Saturday, 15 March 2014

css - How can I specify img tag inline? -



css - How can I specify img <header> tag inline? -

i using bootstrap 1 page wonder template , develop sinatra web site.

http://ironsummitmedia.github.io/startbootstrap-one-page-wonder/

i alter img in every time accessing site.

so commented out .header-image in css file.

/*background: url('http://placehold.it/1900x500') no-repeat center center scroll;*/

and write in html file. within header tag ,

<meta http-equiv="content-style-type" content="text/css">

and add together this.

<header class="header-image" style="background: url('http://placehold.it/1900x500') no-repeat center center scroll;">

but won't work. how can specify background img in inline header tag ?

give overflow auto body because ie takes body height 100% default advertisement margin within extends height alter default behavior u can utilize overflow auto !

body { margin: 0; background-color: black; font-size: 2em; color: white; overflow:auto; }

css html5 header background-image

No comments:

Post a Comment