Solved

Add a outer box inside the table just like experts-exchange

Posted on 2006-11-01
5
155 Views
Last Modified: 2010-04-09
I want to add a outbox inside the table. I know the both corner are the image files, but i dont know i to do it just look like expert-exchagne here.

  ~-----------------------------------------~
  | My text here                                 |
  |  * 1.                                            |
  |  * 2.                                            |
  |                                                    |
  ~-----------------------------------------~

0
Comment
Question by:LeanMoreTryMore
  • 2
  • 2
5 Comments
 
LVL 28

Expert Comment

by:gamebits
ID: 17854989
A very simple way to do something similar is by using fieldset <fieldset>text text text text </fieldset>

Gamebits
0
 
LVL 17

Expert Comment

by:gops1
ID: 17854996
Have a look at this:

<html>
      <head>
            <title>Script Demo</title>
          <style>
               div.rounded-box {
               position:relative;
               margin: 5px;
               }
               div.top-left-corner, div.bottom-left-corner, div.top-right-corner, div.bottom-right-corner
               {position:absolute; width:20px; height:20px; background-color:#ffffff; overflow:hidden;}
               div.top-left-inside, div.bottom-left-inside, div.top-right-inside, div.bottom-right-inside {position:relative; font-size:150px; font-family:arial; line-height: 40px;}
               div.top-left-corner { top:0px; left:0px;}
               div.bottom-left-corner {bottom:0px; left:0px}
               div.top-right-corner {top:0px; right:0px}
               div.bottom-right-corner {bottom: 0px; right:0px}
               div.top-left-inside {left:-8px;}
               div.bottom-left-inside {left:-8px; top:-17px;}
               div.top-right-inside {left:-25px;}
               div.bottom-right-inside {left:-25px; top:-17px;}
               div.box-contents {
               position: relative; padding: 8px; color:#000;
               }
          </style>

      </head>

<body>
      <div class="rounded-box" style="background-color: #cddef0; width: 200px; height: 9em;font-family:verdana;font-size:10px;">
            <div class="top-left-corner">
                  <div class="top-left-inside" style="color:#cddef0;">&bull;</div>
            </div>
            <div class="bottom-left-corner">
                  <div class="bottom-left-inside" style="color:#cddef0;">&bull;</div>
            </div>
            <div class="top-right-corner">
                  <div class="top-right-inside" style="color:#cddef0;">&bull;</div>
            </div>
            <div class="bottom-right-corner">
                  <div class="bottom-right-inside" style="color:#cddef0;">&bull;</div>
            </div>
            <div class="box-contents">
            - Place your content here -
            <ol style="margin-top:2px;">
                  <li>Point 1</li>
                  <li>Point 2</li>
            </ol>
            </div>
</body>
</html>
0
 

Author Comment

by:LeanMoreTryMore
ID: 17862333
Thanks qops

  <style>
               div.rounded-box {
               position:relative;
               margin: 5px;
               }
               div.top-left-corner, div.bottom-left-corner, div.top-right-corner, div.bottom-right-corner
               {position:absolute; width:20px; height:20px; background-color:#ffffff; overflow:hidden;}
               div.top-left-inside, div.bottom-left-inside, div.top-right-inside, div.bottom-right-inside {position:relative; font-size:150px; font-family:arial; line-height: 40px;}
               div.top-left-corner { top:0px; left:0px;}
               div.bottom-left-corner {bottom:0px; left:0px}
               div.top-right-corner {top:0px; right:0px}
               div.bottom-right-corner {bottom: 0px; right:0px}
               div.top-left-inside {left:-8px;}
               div.bottom-left-inside {left:-8px; top:-17px;}
               div.top-right-inside {left:-25px;}
               div.bottom-right-inside {left:-25px; top:-17px;}
               div.box-contents {
               position: relative; padding: 8px; color:#000;
               }
          </style>

===
How do i increase the width / height of the inside box?
I try to increase the size of the
position:absolute; width:20px; height:20px; background-color:#ffffff; overflow:hidden;

but it turns up very messy
0
 
LVL 17

Accepted Solution

by:
gops1 earned 300 total points
ID: 17863438


And to change the height and width use the first DIV tag:

<div class="rounded-box" style="background-color: #cddef0; width: 98%; height: 300px;font-family:verdana;font-size:10px;">


Use this:

<html>
      <head>
            <title>Script Demo</title>
          <style>
               div.rounded-box {
               position:relative;
               margin: 5px;
               }
               div.top-left-corner, div.bottom-left-corner, div.top-right-corner, div.bottom-right-corner
               {position:absolute; width:20px; height:20px; background-color:#ffffff; overflow:hidden;}
               div.top-left-inside, div.bottom-left-inside, div.top-right-inside, div.bottom-right-inside {position:relative; font-size:150px; font-family:arial; line-height:42px;}
               div.top-left-corner { top:0px; left:0px;}
               div.bottom-left-corner {bottom:0px; left:0px}
               div.top-right-corner {top:0px; right:0px}
               div.bottom-right-corner {bottom: 0px; right:0px}
               div.top-left-inside {left:-8px;}
               div.bottom-left-inside {left:-8px; top:-18px;}
               div.top-right-inside {left:-26px;}
               div.bottom-right-inside {left:-26px; top:-18px;}
               div.box-contents {
               position: relative; padding: 8px; color:#000;
               }
          </style>

      </head>

<body>
      <div class="rounded-box" style="background-color: #cddef0; width: 98%; height: 300px;font-family:verdana;font-size:10px;">
            <div class="top-left-corner">
                  <div class="top-left-inside" style="color:#cddef0;">&bull;</div>
            </div>
            <div class="bottom-left-corner">
                  <div class="bottom-left-inside" style="color:#cddef0;">&bull;</div>
            </div>
            <div class="top-right-corner">
                  <div class="top-right-inside" style="color:#cddef0;">&bull;</div>
            </div>
            <div class="bottom-right-corner">
                  <div class="bottom-right-inside" style="color:#cddef0;">&bull;</div>
            </div>
            <div class="box-contents">
            - Place your content here -
            <ol style="margin-top:2px;">
                  <li>Point 1</li>
                  <li>Point 2</li>
            </ol>
            </div>
</body>
</html>

0
 

Author Comment

by:LeanMoreTryMore
ID: 18004989
just last question.
Why i always found there are corner image used to drawing the outerbox
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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 embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

776 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