Print Design Templates Take a look at these creative Graphic Design templates for brochures, flyers, newsletters, stationery, postcards, ads, menus and posters for a variety of businesses.
Invoicing 4 Freelancers A complete, secure, online billing application that maintains hourly service billing, flat fee billing and recurring charges. Integration with Authorize.Net and other leading payment gateways provides hands-free recurring billing with a sophisticated CRM system.
Free Design Magazines Browse through our extensive list of free Graphic Design, Web Design, Business, Computer, and Computer Graphics magazines, white papers, downloads and podcasts to find the titles that best match your skills and interests; topics include management, marketing, operations, sales, and technology. Simply complete the application form and submit it. All are absolutely free to freelance professionals who qualify.
Suggested Links Photoshop Tutorials
Logo Designer's Logos
Web Design Tools List
Layouts & Templates Directory
Web Design & Graphic Design Blog
Photoshop, Flash, 3D Studio Max Tutorials
Web Designers & Developers
Crafts for Kids
Photoshop Tutorial Man
Tutorial Guide -- Free Webmaster Tutorials
Design Contests
How to Draw
Work From Home Job Search
OTHER SITES WE OWN
AllFreelance
Graphic Design Resources Directory
Graphics Tutorials Directory
Social Networking Articles
Design Sites Up
All Freelance Work & Portfolios
Graphic Design Community
Education & Learning Directory
![]() |
home > Web Design Tutorials >How to Content Box that Expands with Rounded Edges - Tutorial for Photoshop and Dreamweaver
Have you ever wondered how other web designers have created those neat tables with rounded-cornered borders that expand as content is added within them? The Ones that look like the table below.
|
|||
If I were to type into this table you would see that the table's border expands with it. Look below, this is the same exact table:
|
|||
No. This table isn't magic, it is actually quite simple to create if you follow this tutorial carefully. If you don't have Dreamweaver, you can copy and paste the html from here into your html editor. Also, if you feel like skipping the Photoshop section, I have zipped the images that you need into a folder. You can download them here.
(1) Open up Adobe Photoshop or a similar image editing application. Before we open up a new document, we are going to set the background color to #E9DAB3. This will be our background color. Click on the Toolbar's Foreground color square, this is the box that is circled in red below.
Photoshop's Color Picker will open up. Next to where you see the "#", type in E9DAB3. This will be our background color. Obviously after this tutorial, you can change the background color to meet your needs, however, for the purpose of this tutorial, please use this color. Click the 'OK' button to select the color.

Click on the 2-sided curvy arrow next to these color squares to switch the foreground color to the background color.

(2) Open up Photoshop and Create a New Document by Going to the Top Menu and Clicking on 'File' > 'New' as shown below.

The 'New Document' Window Appears. For both the Width box and the Height box, type in '500' For Contents, click on the 'Background Color' radio button. This will open up a new document with the background color that we just selected in number 1 (above).

(3) Now we are going to start making the rectangle with rounded corners. This will be what our expandable table will be created from. Go to Photoshop's Toolbar and Select the 'Rounded Rectangle Tool'. If this tool isn't present, hold down your mouse on the icon 2 above the magnifying glass icon (look below) and a little screen will open up, from there you can select the 'Rounded Rectangle Tool'.

(3) On the very top of Photoshop you should see a toolbar that opens up that looks like the below image. When you find it, type in '15' for Radius, 'no style', and 'white' for the color.

The radius is to tell Adobe Photoshop how much of a curve you want on your rounded corners. The lower the radius number the more that the rounded cornered rectangle will look like it has corners ....and the higher the number, the more your rounded cornered rectangle will look like a circle.
Here is the difference. This one has a radius of 60
and this one has a radius of 5 ![]()
(4) Click on the Photoshop Screen and drag down to the size that you want, making sure to leave some room around the borders for the glowing edges that we create later.
This is what our rounded rectangle looks like so far.

(5) Is your 'Layers' window open yet? If not, go to the top menu bar and click on 'Windows' > 'Layers'. Now the below window will open up. You will see a new layer above the 'Background' Layer. Double click on the name of the layer, and rename the layer to 'Resizable Table'.

An alternate way of renaming this layer is to click on the little triangle that is pointing towards the right and a new window will open, drag down and click on 'Layer Properties'. Here you will have the option to choose another name for the layer.
(5) You should still have your 'Layers' window open. There should be 2 squares in the 'Resizable Table' layer. Now you should right click on the square that is on the left of the 'linked' icon. (it might be on the right in your Photoshop) A window pops up...you should drag down and select 'Blending Options...'.

A new window opens up called 'Layer Style'. Click on 'Outer Glow' so that it is checked and highlighted, like the picture below. Now you should set the Blend Mode to 'Normal', Opacity to '30', Noise to '0', Technique to 'Softer', Spread to '44', Size to '16', and Range to '100'. Then click 'OK'. When you finish this tutorial, I suggest that you come back here and create your own special effects with this tool. The images that you can create with the 'Outer Glow' and the other 'Layer Styles' are limitless. Try it out when you get a chance (although I have a feeling that you already have in the past).

(5) I suggest that you hide the path so that you can see the way the rectangle is looking without the annoying path showing up. This might already be hidden on your settings, but if it isn't, go to the top Photoshop menu, and click on 'View' and drag down to 'Show' and if 'Target Path' has a 'checkmark' next to it, select it so that this path will be hidden. (A check next to an option, means that it is on.)

This is What the Rectangle looks like so far.
(6) Now it is time to slice and cut up our rectangle so that we can bring these pictures over to Dreamweaver and eventually the web. Go to the Photoshop 'Toolbar' and select the 'Rectangle Marquee' tool pictured below:

At the top of your Photoshop screen, you will see a box that says 'Feather' (pictured below). Make sure that it says '0 px'. If not, type in '0'.
![]()
(7) Drag and select a section of the top part of the rectangle. You need to get the entire rounded part of the corners selected, like I did below. You don't need to select further than where the shadow (glowing edges) stop.

After you have selected the top portion of the rectangle, go to the top Photoshop menu and click on 'Edit' > 'Copy Merged'.

Now go to Top Photoshop Menu and click on 'File' > 'New'. A new Photoshop window will open at the same window size that the picture you just copied. Go to the top Photoshop menu and click on 'Edit' > 'Paste'. Now the image you just copied is pasted in a new Photoshop Document. Now Click on 'File' > 'Save for the Web' in order to save and optimize your web graphic properly for the web.

The 'Save for the Web' Window will open up. Under Settings, scroll down to 'GIF' and for Colors choose '16'. Click on 'Save' to save your images to a folder.

Save your file as 'tabletop', 'save as type' should already have 'gif' selected. Hit Save.

You can either do the same thing again for the bottom border of the table or you can simply flip the canvas (image) over. Go to the top Photoshop menu, click on 'Image' > 'Rotate Canvas' > 'Flip Canvas Vertical'.
Save this bottom image as 'bottomtable.gif'
(7) Now we are going to save the background image that will be tiled later in the center of our table. This will be the part of the table that allows us to expand it without losing the border's continuity. On the Photoshop toolbar, click on the 'rectangle marquee tool' again. On the top of Photoshop screen, you will see the options that are pictured below appear. For Style, scroll down and select 'Fixed Size'. for width, type in '455' and for Height, type in '1'.
Below is what this will look like after you type in these options.

Now you should select 'Copy Merged' again, by going to the top Photoshop Menu and clicking on 'Edit' > 'Copy Merged'.

Open up a new Photoshop Document and Paste it in by clicking on 'Edit' > 'Paste'. And this is what it will look like (below).

Save for web as 'middle.gif'.
(8) Now it is finally time to use Dreamweaver. Create a New Dreamweaver Document by Clicking on the top Dreamweaver menu and select 'File' > 'New'. You will be taken to the 'New Document' Window. Select 'Basic Page' under Category and 'HTML' under Basic Page.

(9) Go to the top menu bar of Dreamweaver and click on 'Modify' >'Page Properties'.

A new window will open up, where it says 'Background Color'. Type in the same background color as our Photoshop document used..."#E9DAB3".

(10) Now it is time to insert our table. Go to the top Dreamweaver menu bar and click on 'Insert' > 'Table'.


The 'Table' window will open up. Enter '3' for Rows, '1' for Columns, and '455' for Pixels. Make sure that the cell padding, border, and cell spacing are all '0'.
(11) Now it is time to save our Dreamweaver file, otherwise Dreamweaver will give you a warning message when you try to add images. Go to the top menu bar and click on 'File' > 'Save as'.

The 'Save' window opens up. Where it says 'File Name', type in expandabletables.html.

(12) Now click in your table within the top row as shown below. Now go to the top Dreamweaver menu bar and click on 'Insert' > 'Image'.

The 'Insert Image' window will open up. Find the image that you saved from Photoshop, called 'toptable.gif', and select the file. Click on the 'OK' button.

Now click in the table's bottom row. Repeat the above step to find the image called 'bottomtable.gif'. Now your table will look like this.

(13) Now for the tricky part of this tutorial, the part that most people don't know how to do. For the middle of the table we are going to use the 455 pixel x 1 pixel image that we created in Photoshop called 'middle.gif'. We are going to tile 'middle.gif' within the table's middle row. If this table gets larger, this image will repeat itself and expand from top to bottom and appear as if that 1 pixel wide image is as big or as small as the table gets.
Is your 'Properties' toolbar opened on the bottom of your Dreamweaver screen? If not, go to the top Dreamweaver menu bar and click on 'Windows' > 'Properties'. The Properties bar will now open. If there is a triangle pointing downwards at the far right of the 'Properties' bar, then click on it in order to expand the bar further. The arrow will point upwards if you do this correctly.
![]() |
![]() |
(13) Now click in the table's middle row and then find the folder next to the 'Bg' as shown below. (This folder will allow you to browse your computer for the image we are going to use as the tiled background). You should then find the image 'middle.gif' and insert it.

(14) Your table is starting to come together. Look at it, it looks just like the first image that I showed you in the beginning of this tutorial.

(15) Now all that is left to do is to insert a second table within the middle row. This will allow the text to stay within the table as you type. Otherwise, without this embedded table, the text would go outside the border walls. So put your cursor in the table's middle row and go to Dreamweaver's top menu bar and click on 'Insert' > 'Table'. When the 'Table' window opens, create '3' columns, '1' row, and a width of '100%'. You will see 2 draggable column borders. Drag these towards the outside of the table (drag the one on the right towards the right, and the one on the left towards the left). You can drag them as close or as far away to the border as you want, It depends on how much padding you want around your text. In the picture below, you can see what these draggable column borders look like.

Below is the HTML to use if you don't have dreamweaver. Just put your cursor in the box below and click on 'Ctrl' A to select all and 'Ctrl' C to copy it. You can then press 'Ctrl' V to paste it into your HTML Editor.
You can download the images here (zipped).
CSS and Round Corners: Build Boxes with Curves - One of the main reasons why designers use images on a Web page is to create curves and round corners. It's currently impossible to create any kind of curved shapes using pure HTML, so images need to be applied. The problem? Putting these images into an HTML document with a table layout can create a large amount of superfluous code. In this tutorial, we'll use CSS to create this box with round corners, without an <img> tag in sight!
How to Create an Expanding Header for HTML and Photoshop - If you thought that tutorial was cool then you will love this expandable header tutorial.
Design a Coded Box - This tutorial uses Adobe Photoshop and Dreamweaver as well. Keep in mind this tutorial will not give you every color used. Allthough source files will be provided if need be.
Slicing and Coding a Content Box in Photopaint and Dreamweaver - This tutorial will show you how to slice up a basic content box and use DreamWeaver to create the tables and format the box to accept content without displaying a mess whenever the content is too much or the size of the browser window is changed etc.
Advanced Slicing - A tutorial for advanced ImageReady slicing. Learn how to cut up and slice an rounded box in ImageReady in order to create a content box and bring it into any HTML or text editor to use it for content.
The Trick to Rounded Corner Tables - One technique that has always been of interest to new Web designers is building rounded corners for the tables in their site.
Adobe GoLive Rounded Corners - This tutorial is going to explain how make a nice curved border around some text. The trick is to make the border look the same in all the common types of browsers, which is not as obvious as it might seem.
Free! Fireworks Basics: From Navigation Graphic to Stretchy Table - In this free tutorial Joyce J. Evans author of many well-respected books including Macromedia Fireworks MX 2004 Zero to Hero, takes us through some basic Fireworks manipulation to build an effective curved navigation graphic. Then Joyce extends this to show us how we can use the graphic to build a stretchy table in Dreamweaver
Flash Clipart / Flash Graphics
Flash Galleries / Flash Portfolios
Flash Tools and Utilities - Flash Miscellaneous
Flash Tools and Utilities - Flash Organizers and Viewers
Flash Tools and Utilities - Flash Browsers and Addons / Extras
Flash Tools and Utilities - Flash Audio / Sounds / Voices / Lipsyncing
Flash Tools and Utilities - Flash Screensaver Tools
Flash Tools and Utilities - Flash Projectors Files
Flash Tools and Utilities - Flash slideshows
Flash Tools and Utilities - Flash Optimization Tools
Flash Tools and Utilities - Flash Navigation Tools
Flash Tools and Utilities - Flash Graphics and Animations Alternatives and Tools
Flash Tools and Utilities - Flash Encryption and Protection
Flash Tools and Utilities - Flash Chart Makers
Flash Tools and Utilities - Flash Actionscript Editors and Generators
Flash Tools and Utilities - Flash Desktop Wallpaper Tools
Flash Tools and Utilities - Flash Video Convertor Tools
Flash Tools and Utilities - Flash Text Effects Tools
Flash Tools and Utilities - Flash Server-Side Tools
Flash Tools and Utilities - Flash Screensaver Tools
Flash Tools and Utilities - Flash Prentations, Demos, and Simulations Tools
Flash Tools and Utilities - Flash Mobile Development Tools
Flash Tools and Utilities - Flash Extraction and Decompiling Tools
Flash Tools and Utilities - Flash SWF Conversion Tools
Flash Tools and Utilities - Flash 3D Tools and Engines
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
||
RECENT ARTICLES from Graphic Design BloG
[CaRP] Can't open cache file.
Business Cards: Ideas and Inspiration, Part II
Today we continue looking at business cards that stand out, and here’s hoping you get some inspiration and ideas! After all, you only get one first impression, so your business card should be something that showcases the best of your design abilities. On Wednesday we looked at the use of interesting shapes, 3D business cards, [...]
![]() |
![]() |
|
![]() |
![]() |
|
[CaRP] Can't open cache file.
Making the Move from Freelance Work to Full-Time Employment
If you are like me, after graduating from a graphic design school, your goal was to make it as a freelance web designer. The lure of flexible hours, working from home and the freedom to manage your own time was too much to resist. At some point, I decided it may be ?easier? to work [...]
Tips for Asking for a Raise
At some point in our careers, there is a time when we open our paychecks and breathe a sigh of disappointment. After years of studying at a graphic design school and countless hours spent devoted to learning from colleagues and researching new design techniques, the numbers on our pay stub just don?t seem to measure [...]
Stock vs. Original Digital Photography
A picture is worth a thousand words. Graphic design schools teach us that photos on web sites have the potential to capture our attention, motivate us to read more or even propel us to navigate to another web site entirely. They inflict emotion and can establish a connection between site visitors and the goods or [...]
3 Tips to Manage Content Updates
While walking through the pharmacy I passed the aisle filled with red heart-shaped boxes filled with chocolates and remembered Valentine?s Day is quickly approaching. Even though I was surrounded by so many representations of love, it reminded me of one thing that I actually despise ? web content updates! Graphic design schools teach many, many [...]
Should You Drop the Drop-Down Menus?
I was recently on a home improvement web site searching for ideas for renovating my bathroom. After a few minutes on the site I realized that I was not going to find what I was looking for ? it certainly could have been there, but I just could not find it. Menu after menu had me [...]
Sharpen Your Skills and Gain an Edge at 2011 Web Design Conferences
Graphic design schools prepare us well for our immediate future, but it takes effort to stay on top of the ever-changing field of web design. Following are a few of the upcoming conferences and trade shows meant to help you stay a step ahead of the competition.
Interaction Eleven In its fourth year, Interaction Eleven is [...]
All Web Design Resources is a Directory & Blog Full of Tools for Web Site Designers
All Web Design Resources Portal is a Web Site Design education directory with resources & articles for Graphic Designers, Web Developers, & Web Designers including a Web Design forum, blog, graphics software tips, web development resources, web programming tools, web design jobs, advice for new web designers about web design schools and education as
well as tips for freelance web design business owners, and much more.