[SOLVED] 2 boxes within 1 not horizontally inline

This is a discussion on "[SOLVED] 2 boxes within 1 not horizontally inline" within the Web Page Design section. This forum, and the thread "[SOLVED] 2 boxes within 1 not horizontally inline are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 28th, 2007, 09:10
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] 2 boxes within 1 not horizontally inline

Hello again,
Where am I going wrong? boxone is the outer box then boxonert and boxonelt are within but will not go horizontal to each other.

Cheers Dan

HTML: Select all
<div id="boxone">
<div id="boxonelt">
<img src="assets/topbanner.jpg" width="308" height="200" border="1" class="centerimg" />
<div id="boxoneh1">XXXXtextXXXX</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXTEXTXXXXXXXXXXXXXXXXX</div>
<div id="boxonert"></div>
 </div>
Code: Select all
#content {
 width: 780px;
 color: #000000;
 display: block;
 margin-top: 0;
 margin-right: auto;
 margin-bottom: 0;
 margin-left: auto;
 

}
#contenth1 {
 background-image: url(assets/H1.gif);
 height: 33px;
 background-repeat: no-repeat;
 background-position: left;
 width: 730px;
 font-family: Arial, Helvetica, sans-serif;
 font-size: 24px;
 font-weight: bolder;
 color: #FFFFFF;
 margin-top: 5px;
 background-attachment: fixed;
 padding-left: 50px;
 padding-top: 7px;
}

.centerimg {
 border: 2px solid #333333;
}

#boxone {
 float: left;
 width: 500px;
 border: 2px solid #CCCCCC;
 margin-left: 7px;
 text-align: center;
 margin-top: 5px;
 font-size: 16px;
 font-weight: normal;
 padding: 10px;
}

#boxoneh1 {
 font-size: 18px;
 font-weight: bold;
 margin: 0px;
 padding: 0px;
}

#boxonelt {
 width: 320px;
 border: medium solid #FF0000;

}
#boxonert {
 float: right;
 width: 50px;
 border: medium solid #FF0000;
 display: none;
}
Reply With Quote

  #2 (permalink)  
Old Nov 28th, 2007, 09:37
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 16 Times in 14 Posts
Re: 2 boxes within 1 not horizontally inline

you can add float:left to #boxonelt and see if that helps
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #3 (permalink)  
Old Nov 28th, 2007, 10:07
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 2 boxes within 1 not horizontally inline

Thanks Welshstew,

I knew it would have been something simple.

Also i had put display none on boxonert (dont know why)

Cheers
Dan
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CSS boxes not showing in IE6 bulldog Web Page Design 2 Mar 14th, 2008 19:45
[SOLVED] Creating multiple dynamic list boxes from mysql database davibugi PHP Forum 11 Nov 20th, 2007 06:12
[SOLVED] Curved boxes in CSS R8515198 Web Page Design 5 Nov 18th, 2007 21:41
[SOLVED] Centering horizontally and vertically Emzi Web Page Design 4 Nov 1st, 2007 16:07
Scrolling a Div Horizontally jwalker80 Web Page Design 2 Feb 20th, 2007 21:43


All times are GMT. The time now is 08:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43