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
Corel is on a Quest for the Best.
Over the past 25 years, Corel has grown from a tiny start-up company to a global software brand. So to celebrate, they’re throwing one heck of a virtual party for fans and customers across the world. Kicking off the bevy of special events and offers is the Quest for the Best Creativity Challenge, an open [...]
![]() |
![]() |
|
![]() |
![]() |
|
How to Design an iPhone Application: Part 2
So the last post started you down the road to iPhone app stardom. Now let?s talk about how to execute your big idea and actually get it up and running in the iTunes store:
5. Get going on the design work.
While you?re waiting for Mac?s Software Development Kit (SDK) and Xcode files to download, work on [...]
How to Design an iPhone Application: Part 1
Earlier this week, the New York Times reported that Apple banished app developer Thuat Nguyen and all of his applications from the iTunes online store. It was a severe punishment for a prolific book app provider, but a necessary one. It seems that Nguyen was breaching user?s accounts to make purchases (of his own applications) [...]
Time-saving Tools You Shouldn?t Miss
Smashing Magazine recently posted an excellent roundup of powerful time savers for web designers–a whopping 50 of them. Funny, trolling through a list of 50 web design tools built to help you save time doesn?t seem very efficient. That?s why you can find a recap of 4 of the most helpful/innovative/time saving ones below. They?re [...]
Using Open Source Fonts from Google
Until recent history, the folks working in print were having all the fun with fonts. On the digital side, web designers have had to resort to workarounds and text-filled images to even come close to the richly diverse fonts available to print designers.
But the good folks at Google are working to change that, one open [...]
Don?t Miss Out: Summer 2010 Hot Web Design Conventions
It?s easy to let the creative juices cool off during the summer, what with all the sun and sand and vacation time. So how about a day or two of intensive inspiration therapy? Conventions can be a great way to put some fire under your well-tanned bum. You meet like-minded colleagues, hash out the latest [...]
Fall Fashion Forecast: Innovative Web Design
After a rough year, the fashion industry is making a comeback–but not without some help from innovative new web concepts. Leading the charge is fashion mega-mag InStyle, which plans to complement its jam-packed fall issue with an online pop-up store powered by StyleFeeder, an online product recommendation service.
During its 5 week run, the online mini-store [...]
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.
Call of Duty World at War
Has anyone set up a resell hosting?
I think I am becoming a camera junky
ok so im a painter and a graphic designer
Interview Questions?
Check this out!
Removing background from images
Dreameaver Resource List
Post of Unfinished 9 x 22' Outdoor Latex Mural
Getting into DMOZ
Custom Eraser printer
My First Portrait Photos
AGD......what a wonderful site
What Camera Do You Use?
15 Beautiful and Inspiring Nature Photographs ? Whoaa!
Is this a good buy?
List of Freehand Sites
Starting a new blog?