Solved

display 2 centered boxes side by side with titles

Posted on 2013-06-20
3
161 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

729 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