473,563 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot center two DIVs next to each other

1 New Member
First time working in Dream Weaver. Using HTML and CSS. I want a menu page on the left side and an about me section on the right. I wrapped the DIVs in a wrapper DIV with the height and width of both, but can't get them next to each other. Instead, the one of the right stays on the right, but also below the one of the left (so they are diagonal). Here is my code.

Expand|Select|Wrap|Line Numbers
  1. #menu {
  2.     background-color: #0CF;
  3.     height: 300px;
  4.     width: 150px;
  5.     border-top-width: thin;
  6.     border-right-width: thin;
  7.     border-bottom-width: thin;
  8.     border-left-width: thin;
  9.     border-top-style: solid;
  10.     border-right-style: none;
  11.     border-bottom-style: solid;
  12.     border-left-style: solid;
  13.     border-top-color: #000;
  14.     border-right-color: #000;
  15.     border-bottom-color: #000;
  16.     border-left-color: #000;
  17.     float: left;
  18.     position: relative;
  19.     font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  20.     line-height: 25px;
  21. }
  22. #aboutme {
  23.     background-color: #FFF;
  24.     height: 300px;
  25.     width: 400px;
  26.     float: right;
  27.     position: relative;
  28.     border-top-width: thin;
  29.     border-right-width: thin;
  30.     border-bottom-width: thin;
  31.     border-left-width: thin;
  32.     border-top-style: solid;
  33.     border-right-style: solid;
  34.     border-bottom-style: solid;
  35.     border-left-style: none;
  36.     border-top-color: #000;
  37.     border-right-color: #000;
  38.     border-bottom-color: #000;
  39.     border-left-color: #000;
  40.     clear: none;
  41.     font-family: Tahoma, Geneva, sans-serif;
  42.     padding-left: 0px;
  43.     margin: 0px;
  44. }
  45. #wrapper {
  46.     margin: auto;
  47.     height: 300px;
  48.     width: 550px;
  49.  
Nov 14 '13 #1
0 1212

Sign in to post your reply or Sign up for a free account.

Similar topics

8
1934
by: Floris van Haaster | last post by:
Hi All! I have a question, i have a web application and I store some member information in a variable i declared in a module like: Public some_info_variable as string in module1.vb But when another user comes to my website he is getting the same values from the variable!!!
6
2817
by: liu | last post by:
Hi all, in my vb.net solution, i have 3 project: 1. Main-this is the startup or the base of my window application. 2. Sales-this is the project that contains all the sales info 3. Product-this is the project contains all product info in my Sales project, i added the reference of the Product to Sales project because I need to shows the...
0
4946
by: friendlycoder | last post by:
Hi there, How do you align DIVS next to each other? I have 3 images, each image is assocated in the style sheet as background image. I want the images to align to each other like this example http://www.btinternet.com/~lee_friend/layers/layerexample.jpg
2
2201
by: =?iso-8859-1?B?Sm/jbyBNb3JhaXM=?= | last post by:
Hi there guys, My doubt is related to PHP and MySQL usage, and it's related to check if performed queries are performed with success, since we know that: Each time we perform an sql query, we can check if it was performed with success like this:
2
6527
by: jc | last post by:
RE:Two gridviews next to each other without a TABLE? In another post I can't seem to find somebody suggested I use use <divwith style=float:right to place two divs next to each other and this works great. However for some reason I cannot make it work when the content of the Divs are gridview. Is there any reason?
1
1628
dlite922
by: dlite922 | last post by:
On my home computer, when I have many program open, If i open something like firefox all the firefoxes are next to each other, NOT grouped. They just open next to each other. Anyone know how this functionality is controlled? I have the Anthracite Vista theme installed on both computers by the way. Thanks, guys,
10
4602
by: removeps-groups | last post by:
How to display table and select next to each other? <html> <body> <table border=1 style="display:inline-table"> <tr><td>Hello1</td></tr> <tr><td>Hello2</td></tr> <tr><td>Hello3</td></tr> <tr><td>Hello4</td></tr> <tr><td>Hello5</td></tr>
0
2886
by: removeps-groups | last post by:
Now I'm wondering how to display 3 elements next to each other. I came up with the following solution using float:left, but would like opinions if this is the right way to go. The idea is to have an outer div, which in my example below is id="available". Inside this div is a table with float:left. Then is another div with...
7
9015
by: ismailc | last post by:
Hi, I have a textbox and a button next to each other but i would like to decrease the space between them - so that they like part of one another <input type="text"> <input type="button"> Is there a way of playing with spacing between the two?
0
1237
by: Steve Chong | last post by:
First post! So I've been trying to figure out how the heck I'm gonna do this. It's been driving me up the wall this past week so I figure this website would maybe be of some help. I'm new to using JavaScript (programming languages as a whole actually) and thought I should join a community where I can maybe learn a few things :] Basically...
0
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7945
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5481
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.