Hello, I am a noob when it comes to HTML and CSS, and I need some help. What I have been trying to do is that I created a div with a width of whole screen and height of 80px. Then I proceeded to create two div within that div - those two div will be positioned in the same line, not up and down. Now I can do that, but the problem are the words. When I resize the browsers to reduce width, the texts all begin to shrink, meaning they become positioned one after another. I think these two attached images will explain my problem.
Now what I want to do is that I want to place "Blog Outta Hell" on the left side of the screen and the "Beware" staff on the right side of the screen, and I don't want them to be fixed or absolute. I want those two div within the main div and not exceeding the boundary. I also want those words not to be placed one after another when I resize my browser window, meaning I want them to be constant. What can I do to achieve that? I can show you guys what have I done so far with CSS, please check my code out and help me find this solution.
Code:
div#header //this is the main div
{
width:100%;
height:80px;
display:block;
background-color:#3B5998;
position:relative;
}
div#header_content //this is the left div
{
font-family:"lucida grande",tahoma,verdana,arial,sans-serif;
float:left;
font-size:41px;
font-weight:bolder;
color:white;
outline:none;
padding-left:15px;
padding-top:15px
}
div#header_content2{ //this is the right div
font-size:21px;
text-align:right;
font-family:"tahoma",Helvetica,serif;
color:#99F5FF;
outline:none;
padding-right:20px;
padding-top:25px;
text-shadow:2px 2px 2px #31CDDE;
}
Please help me find this solution, this has been bugging me for days. Thanks in advance!