Hi chaps, I wonder if you can help me with something. I am looking into responsive design a bit, and I was testing something here http://antobbo.webspace.virginmedia.com/test/responsive/test.html
Now, if you try to resize the window the cnes logo gets pushed under the "this is an extra bit" div: what I would like to happen instead is - when the cnes logo touched the "extra bit" - the "extra bit" div to be positioned under the star logo but still within the black background: in other words, I'd like the black background to extend and accomodate the "extra bit" div when that gets pushed down by the cnes logo. How would I achieve that please? Here's my code:
<!DOCTYPE html>
<html>
<head>
<title>TEST</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="wrapper">
<div id="page">
<div id="banner">
<div id="logo1">
<img src="small_LOGO.gif">
</div>
<div id="logoText">
<p>This is an extra bit</p>
</div>
<div id="cnes">
<img src="cnes.jpg" >
</div>
</div><!-- banner-->
</div><!-- page-->
</div><!-- wrapper-->
</body>
</html>
and the css:
#wrapper{
width:100%;
border:1px solid red;
min-height:43em;
}
#page{
width:75%;
border:1px solid magenta;
height: 40em;
margin:0 auto;
}
#banner{
background:url("banner.jpg") repeat-x 0 0;
height:65px;
border:1px solid blue;
}
#logo1{
border:1px solid red;
float:left;
}
#logoText {
width:350px;
float:left;
}
#logoText p{
border:1px solid blue;
color:white;
}
#cnes{
float:right;
height:60px;
border:1px solid yellow;
}
I just can't get that to work!
thanks