html - dynamic div container with multiple content -


i try make kind of banner css. div contain 2 images , bit text splittet 2 lines. looks on display if load side on other display smaller resolution and/or 4:3 whole container "falling appart" :( have tried different methodes nothing seems work. may of can point me in right direction :)

here css , html:

css:

#head_box_banner { position: absolute;     height: 150px; width: auto; right: 13px; left: 13px; top: 4px; background-color: #dbdbdb; border-radius:3px; }  .logo1 { margin-top: 19px; margin-left: 139px; }  .logo2 { margin-top: -112px; margin-left: 1380px; }  .text_banner_1 { margin-top: -125px; margin-left: 426px; font-size: 46px; color: #062916; font-weight:bold; font-family: comic, serif; font-style: oblique; text-shadow: 0 1px 0 #ccc,             0 2px 0 #c9c9c9,            0 3px 0 #bbb,            0 4px 0 #b9b9b9,            0 5px 0 #aaa,            0 6px 1px rgba(0,0,0,.1),            0 0 5px rgba(0,0,0,.1),            0 1px 3px rgba(0,0,0,.3),            0 3px 5px rgba(0,0,0,.2),            0 5px 10px rgba(0,0,0,.25),            0 10px 10px rgba(0,0,0,.2),            0 20px 20px rgba(0,0,0,.15);    }    .text_banner_2 { margin-top: 12px; margin-left: 668px; font-size: 46px; color: #062916; font-weight:bold; font-family: comic, serif; font-style: oblique; text-shadow: 0 1px 0 #ccc,             0 2px 0 #c9c9c9,            0 3px 0 #bbb,            0 4px 0 #b9b9b9,            0 5px 0 #aaa,            0 6px 1px rgba(0,0,0,.1),            0 0 5px rgba(0,0,0,.1),            0 1px 3px rgba(0,0,0,.3),            0 3px 5px rgba(0,0,0,.2),            0 5px 10px rgba(0,0,0,.25),            0 10px 10px rgba(0,0,0,.2),            0 20px 20px rgba(0,0,0,.15);    } 

html:

<div id="head_box_banner">                       <div class="logo1"><img src="png/logol.png" width="110" height="112" /></div>                       <div class="text_banner_1">förderverein grundschule</div>                       <div class="text_banner_2">hindeburgstrasse e.v.</div>                       <div class="logo2"><img src="png/logor.png" width="110" height="112" /></div> 

if want use banner browsers , resolutions, should use percentages instead pixels... example :

#head_box_banner { position: absolute;      height: yourheight%;  width: auto; 

note using percentages height , width banner, not pictures. ps: try play height percentages see how many percents best option you.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -