henoida
Coder
I have a general questions about items on the top of the page which are positioned on the left side (such as a logo) and on the right side (such as a search box and global elements), using float: right. When minimizing the browser or looking at it on a small screen of a phone, these two elements run into one another. My question is: how can this running-into-one-another be avoided. I use an absolute positioning for the logo:
[CODE lang="css" title="logo"]#logo {
position:absolute;
top: 30px;
left: 50px;
width: 220px;
height: 63px;
background: url("../img/dynomotion-logo.png");
background-color: transparent;
}
[/CODE]
But have the right-side elements just float, e.g. the search box:
[CODE lang="css" title="search"]#searchNav {
float:right;
margin:-1px 0 1px 0;
display:block;
color:#888;
font-size:11px;
width: 250px;
top: 15px;
padding:0;
}
[/CODE]
But of course this way the run into each other. Any pointers would be very much appreciated. Thanks in advance for your time!
See example here: http://dynomotion.com/dev
[CODE lang="css" title="logo"]#logo {
position:absolute;
top: 30px;
left: 50px;
width: 220px;
height: 63px;
background: url("../img/dynomotion-logo.png");
background-color: transparent;
}
[/CODE]
But have the right-side elements just float, e.g. the search box:
[CODE lang="css" title="search"]#searchNav {
float:right;
margin:-1px 0 1px 0;
display:block;
color:#888;
font-size:11px;
width: 250px;
top: 15px;
padding:0;
}
[/CODE]
But of course this way the run into each other. Any pointers would be very much appreciated. Thanks in advance for your time!
See example here: http://dynomotion.com/dev