473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Cannot center two DIVs next to each other

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 1199

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

Similar topics

8
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...
6
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...
0
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...
2
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,...
2
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...
1
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...
10
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>...
0
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...
7
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...
0
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.