How can I make a header like this in css and html -


i want have profile picture on left side black border on right side. want picture on left side border on left side , want logo in middle. pictures 82px 82px , whole header 100% 82px. write me in html , css?

here pic of want http://s1167.photobucket.com/user/unlivedgears/media/image-10.jpg.html

html

<div class="header">     <div class="img l"></div>     <div class="img r"></div>     <div class="img logo"></div> </div> 

css

.header{     background:red;     width:100%; }  .img{     width:50px;     height:50px;     background:blue; }  div.l{     float:left;     border-right:5px solid black; }  div.r{     float:right;     border-left:5px solid black; }  div.logo{     width:200px;     margin:0 auto; } 

see working example here: http://jsfiddle.net/sdvgc/


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 -

CSS3 Transition to highlight new elements created in JQuery -