Jump to content

Question


timmy0320

Recommended Posts

Let me re-phrase my question because I need some help. lol. Take a look at this test page

 

 

The left and right boxes should display next to each other not on top of each other like they code.

 

<div id="headerbox"> <!-- begin headerbox -->
  
  <div id="logo"> <!-- begin logo -->left side</div> 
  <!-- end logo -->
  
  <div id="search"> <!--begin search -->right side test</div> 
</div> 
<!-- end headerbox -->

 

#headerbox {
position: relative;
width: 1000px;
text-align: center;
margin-bottom: 0;
}

#search {
position: relative;
height: 100px;
width: 300px;
text-align: left;
margin: 0;
}

#logo {
position: relative;
height: 100px;
width: 400px;
text-align: right;
margin-bottom: 0
} 

 

 

Link to comment
https://forums.phpfreaks.com/topic/98463-question/#findComment-503916
Share on other sites

Alright I fixed the boxes. Now how do I make the 'headerbox' force everything to stay at the width of 1000px? It seems to not be doing it . Check out the link you will see. Here is updated CSS code:

 

#headerbox {
position: relative;
width: 1000px;
text-align: center;
margin-bottom: 0;
}

#search {
float: right;
height: 100px;
width: 300px;
text-align: center;
margin: 0;
}

#logo {
float: left;
height: 100px;
width: 400px;
text-align: center;
margin-bottom: 0
} 

Link to comment
https://forums.phpfreaks.com/topic/98463-question/#findComment-503927
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.