Solved

display 2 centered boxes side by side with titles

Posted on 2013-06-20
3
162 Views
Last Modified: 2013-06-20
I am trying to style an old table based page with css
I am trying to put 2 div boxes side by side both with a title on this page:
http://roofgenius.com/RoofCalcWriter/test.asp
The page i am replacing boxes displayed in table cells bottom of page
http://roofgenius.com/RoofCalcWriter/SpellCheck.asp
What am doing wrong ?
0
Comment
Question by:isnoend2001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 43

Expert Comment

by:Chris Stanyon
ID: 39263115
See if this gets you in the right direction:

<div id="wrapper">
    <div id="left">
        <h2>This is the left</h2>
        <div class="content">
            This is where the content goes
        </div>
    </div>
    <div id="right">
        <h2>This is the right</h2>
        <div class="content">
            This is where the content goes
        </div>
    </div>
</div>

Open in new window

//CSS
#wrapper { width: 500px; overflow:hidden }
#wrapper h2 { text-align:center;}
#left { width: 48%; float:left; }
#right { width: 48%; float:right; }
.content { border: 1px solid green; }

Open in new window

You seem to have got your DIVs wrapped inside one another!
0
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 500 total points
ID: 39263163
Here's some code to have a play with if you need to :)

http://jsfiddle.net/ChrisStanyon/EYhd6/
0
 

Author Closing Comment

by:isnoend2001
ID: 39263194
amazing you do it in a few minutes that i work on for hours
Thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Suggested Courses

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question