Hi, everyone. Sometimes the top of the webpage is just a graphic, so you can code it with just CSS, like this:
But then the HTML looks weird because it's empty:Code:#header { height: 154px; background: #FDF7F1 url(images/banner.gif) no-repeat center; }
So I've taken to inserting a heading, like thisCode:<div id="header"> </div><!-- header -->
And then in CSSCode:<div id="header"> <h1>Name of Website</h1> </div><!-- header -->
What is your opinion? Are there any drawbacks to this? Is there a better way of doing it?Code:#header h1 { display: none; }



Reply With Quote



)

Bookmarks