html - Divs get messed up when on lower resolution -


i have added 2 screenshots below, understand problem , i'd achieve.

i have layout: enter image description here

now if @ page on lower resolution, try rearange divs on left , right, ending them overlapping middle div.

enter image description here

i'd set page scroll horizontally when on lower resolution doesn't happen. i've tried setting positioning fixed , messing around it, takes no effect or worse effect.

my html:

<div id="middle">      <div id="next_event">         <p class="no"><h4><u>next event: 13.04</u></h4></p>         <p class="no" style="font-size: 18px; text-align:left;"><span style="color: #0565a8;">thema:</span> sozialwissen         <br><span style="color: #0565a8;">&nbsplocation:</span> waehringer-strasse 38, wien         <br><span style="color: #0565a8;">&nbspeintritt:</span> freier eintritt         <br><span style="color: #0565a8;">&nbspgast:</span> max musterman         <br><span style="color: #0565a8;">&nbspinfos:</span>          <a href="events.html" style="color: #333; text-decoration:none;"><u>hier klicken</u></a></p>     </div>      <div id="team">         <p class="no"><h4><u>team</u></h4></p>         <img src="img/photo.png" hspace="5" vspace="0">         <img src="img/photo.png" hspace="5" vspace="5">         <br>         <img src="img/photo.png" hspace="5" vspace="5">     </div>      <div id="content"><p class="big">the thesis statement sentence or 2 in text ..</p><hr> 

my css:

#middle {     overflow:visible; }  #content {     font-size: 17px;     font-family: lucida sans unicode, lucida grande, sans-serif;     min-height: 800px;     margin:100px auto 100px;     width:800px;     padding: 10px; /*  border: 1px solid #373737;     box-shadow: 1px 0px 2px #000000; */     position:relative;     word-wrap: break-word;     /* background-color: white; */     z-index:50;     /* --- add scroll --- */     /*  overflow: scroll;         height: 700px;  */ }   #team {     position: fixed;      color: black;      left: 100;     margin-top:20px;     width: 400px;     height: 200px;     border-style: solid;     border-width: 3px;     border-color: #0565a8;     text-align: center; }  #next_event {     position:fixed;      color: black;      right: 100;     margin-top: 20px;     width: 400px;     height: 200px;     border-style: solid;     border-width: 3px;     border-color: #0565a8;     text-align: center; }  

so have figured out. needed change width of middle divs % instead of px. means login, next_event , team id have width: 21%.

#team {     position: fixed;      color: black;      left: 100;     margin-top:20px;     width: 21%;     height: 200px;     border-style: solid;     border-width: 3px;     border-color: #0565a8;     text-align: center; } 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -