Preview

Use Adobe Illustrator to Create a Clean Website Layout

Tutorial Details
  • Program: Illustrator
  • Difficulty: Beginner
  • Completion Time: 1 hour
Download Source Files

Final Product What You'll Be Creating

This tutorial is perfect for the beginning to intermediate Adobe Illustrator artist. We’ll cover how to layout a website and prepare it for use on the web. Also, we’ll use the recently released Website Elements Freebie to mock up the design as well.

Republished Tutorial

Every few weeks, we revisit some of our reader's favorite posts from throughout the history of the site. This tutorial was first published in November of 2008.

Want access to the full Vector Source files and downloadable copies of every tutorial, including this one? Join VECTORTUTS PLUS for just $19/month.


Step 1

Start a new document with a width of 960 px and a height of your choosing. I’ve chosen this width because this website will likely incur internet traffic who have average to large monitors. A width of 960 pixels is a safe size that will favor the majority of visitors. Last, set your Color Mode to RGB.


Step 2

The black border shows the document size (called the Artboard) that we created. I like to place a blank screenshot of a browser window on its own layer while I’m designing, to get a good idea of what my website will look like when it’s done.


Step 3

This next step is very important. Make sure you are aware of what zoom you’re viewing the document at. When all is said and done, your website will be seen at 100%. Feel free to zoom in and out while working on your layout, but be certain all your text and design elements are readable when viewed at 100%. Use the drop down highlighted below (or simply type in the percentage you want) to change the zoom to.

Sidenote: sometimes Adobe Illustrator gets testy and doesn’t show the numbers as you type them into the zoom area highlighted below. For example, if you type 58% sometimes the numbers don’t change as you’re typing. If this is the case, simply press return after you enter your values, and your document will be resized to the number you entered.


Step 4

The Artboard can be toggled between visible and invisible by going to View > Hide Artboard. The problem with this is that it takes a little longer than showing and hiding guides (Command + Semicolon Key) So, I find it best to use guides and hide the Artboard. Over the course of laying out a whole website you will find it much easier to press a quick key command rather than going to the top of the screen and selecting from a list every time.


Step 5

You may find it easy to establish balance and a nice hierarchy by first drawing simple grey boxes on your page. The thin rectangles represent where I plan on using text while the large grey boxes will be images.


Step 6

After you have a general idea of what the layout will look like you can add guides and remove the grey boxes.


Step 7

Using only the guides as a reference, add other elements like navigation, text, and tighten-up where the logo, images ,and icons will go. It is helpful to toggle your guides on and off (Command + Semicolon Key), while you are finessing the layout. If the guides you drew don’t work as well as you thought, definitely adjust them as you see fit.

Sidenote: when you toggle guides on and off they automatically become locked. You cannot move locked guides. To unlock guides quickly press Command + Option + Semicolon.


Step 8

Continue finalizing your header with images, icons, and graphics.

Step 9

Below I’ve decided to add a light blue color to enhance the header.


Step 10

Add styling to your text, making sure to decide what links and headings will look like. I find it much easier and faster to accomplish as many design elements inside Illustrator so I can concentrate on programming and coding the website when the time comes.


Step 11

There are a couple different ways to prepare a design for use inside a WYSIWYG (What You See is What You Get) editor, like Adobe Dreamweaver. The first method is using slices. Slices can be made using guides or a selection. To use guides to make slices first drag guides onto your page around each object that will require its own link. For example, an icon that, when clicked, goes to a specific page. Below I have four icons, each icon will lead the visitor to a different web page or area of the site.

I have drawn guides between each icon and just outside of the blue area. It is usually cleaner if you draw your guides about 1 or 2 pixels outside of the area that you are slicing. This ensures none of your artwork will be cut off.

Sidenote: Do not draw guides over your entire layout at once. Instead, do sections one at a time. For example, first do the header area. Clear all of your guides by going to View > Guides > Clear Guides. Save your slices for the web (discussed in a later step) and repeat this process for other areas of the layout.


Step 12

Once you have your guides drawn the next step is to make slices out of them. To make slices from your guides go to Object > Slice > Create from Guides. On occasion, Illustrator may not make slices the first time you attempt to. I have found that I sometimes need to repeat this step three or four times before Illustrator actually will make slices. Below, the black numbered boxes indicate that the slices have been made.


Step 13

To save your slices for use on a website go to File > Save for Web & Devices… Use the Slice Select Tool (K) highlighted in the upper left corner to select the specific slices that you want to save. Select multiple slices at once by holding down shift. Adjust the settings on the right to suit your needs. JPEG images work best for items that have several colors, while the GIF file format works well for items that have large areas of color and not many colors in general, PNG file format works well for transparent graphics (though may require some work to adjust for older IE browsers). You may want to test quality versus file type and adjust the Quality to save bandwidth. Once your ready, click Save.


Step 14

Decide where you want to save the images to. I’ve chosen the Desktop. Under format select Images Only, then click Save.


Step 15

On your Desktop you will now have a folder called Images. Inside this folder will be the specific slices (images) you selected. These images are ideal in resolution and file size for use on the web.


Step 16

As mentioned in Step 11, clear your guides by going to View > Guides > Clear Guides. Now, draw new guides around the next area that you want to slice. The hover state (when the mouse is over the navigation) will be red, while the off state will be grey. You will need to make both versions of the navigation. To efficiently accomplish this, first make all of your navigation red then go to File > Save for Web & Devices…


Step 17

Select the specific slices you want to save. Since my navigation is not made up of images or an abundance of colors I have decided the best filetype for the navigation will be GIF, then click Save. Also, note that if your user a web supported font, then you may decide to use html text instead of images.


Step 18

You can give your images a new name at this point. However, they are automatically named for you so this is not mandatory.


Step 19

If you saved your images to the same location as before, you will notice the Images folder on your Desktop now includes the additional images you just saved. Repeat Steps 16-18 to make the off state for your buttons.


Step 20

Keep in mind this is just one possible workflow. Alternatively, you could place on and off states somewhere in your document, create all your slices, and export them together.

The other method of creating slices is by selecting an object then going to Object > Slice > Create from Selection. Creating slices using guides or from a selection is fine as well. Use a workflow that you find comfortable and best for the particular project you’re working on.


Step 21

On occasion you will not need to include the text that falls within a slice. For example, the footer will have text that is typed inside of the WYSIWYG editor. If this is the case simply delete the text before or after you make the slices, but previous to saving the slices for the web.


Step 22

Below you’ll notice that I deleted the text after the slices were made.


Final Image

Observe the final website. As you can see, laying out a website in Adobe Illustrator is simple and effective. You can quickly experiment with design and give this phase of the web design process the attention and thought it needs. You can view the final image below or view a larger version here.

Subscribe to the VECTORTUTS RSS Feed to stay up to date with the latest vector tutorials and articles.

  • Pingback: 80 Best-Of Adobe Illustrator Tutorials, Brushes, .EPSs and Resources | Web2.0

  • Pingback: New PLUS Tutorial - Create a Green Landscape Website in Adobe Illustrator - VECTORTUTS

  • Pingback: Eight Tools & Resources for Conveying your Message Graphically « PR Ninja

  • habilfaisol

    stunning tut. new idea of creating website.

    thanks.

  • Pingback: Web Administration devBlog - Favorite Links from November

  • andrew

    anyone know how to link faster between illustrator and dreamweaver. I would like to be able to edit all body copy and text in illustrator and just import images back to dreamweaver, that way I dont have to mess with css and editing inside of dreamweaver. Anyone know if this is possible?

  • http://www.davidrivers.name/ David Rivers

    Thank you so much for this tutorial. This is way more efficient than trying to design a layout from scratch with CSS! And more conducive to designing it effectively!

    Thanks to you I finally feel more comfortable in Illustrator (which was always an enigma to me) than Photoshop. I could never get the hang of using those guides! This newfound confidence with Illustrator shall pay dividends!!

  • Pingback: Intermediate illustrator tutorials «

  • Imelda

    Thanks for these tips! I always wanted to find a tutorial like this.
    Straight foward. Now, it’s time to build my site.

  • Pingback: 50 Amazing Photoshop Illustrator Tutorials For Photoshop Lovers – Part II - Photoshop Website - Tutorials,Brushes & more..

  • Pingback: 125+ Ultimate Round-Up of Illustrator Tutorials | Showcases | instantShift

  • O

    How did you get the gray boxes on the page?!?

  • http://blendinteractive.com Sam

    Thanks for sharing this tutorial! Interesting to see how other people work.

    Another tip: Use the Pixel Preview option in Illustrator if you’re doing layout for the web. Your lines will snap to the closest pixel (and you can zoom in to make sure). This will avoid all kinds of fuzzy problems when you cut your final graphics.

    Designing a site in Illustrator also makes it easy to take the vector artwork into Flash for banner ad development. (saves reinventing the wheel!)

  • Pingback: links for 2009-03-26 « Minesa IT

  • abstractic

    Hmm, why making pixel graphics in a program made for vector graphics?.. the webpage will be blurry and not pixel perfect.. ;)

    • Treefingers

      Why do web graphics in a program made for photos? The design will be inflexible and will not transfer gracefully to print media. ;)

  • http://web-site.te.ua solexy

    thx, great tut

  • jen

    wow..nice tutorial,..

  • http://tuts.cgbaran.com CgBaran Tuts

    Great looking work thanks

  • karla

    so simple, so easy, very well illustrated! thank you so much!

  • http://chengis.me Cheng

    For those who want a pixel-perfect results, please refer to my article here: http://chengis.me/2009/06/pixel-perfection-in-illustrator

    I think it’s feasible to design pixel perfect works in AI, and that’s what I’m doing.

  • http://sariasiddiqui.spaces.live.com bobcut_monster

    very niceeee n use full tutorial. . .

  • Pingback: 22 Very Useful Adobe Illustrator Tutorials | Web Design Ledger

  • http://emilygonsalves.com/ Emily

    Nice tutorial, but I think you could have used layers more effectively. Personally, I like to move guides to a separate layer. I show, hide, and/or lock that layer as I like. You could have multiple layers of guides to make slice creation simpler if you like to draw in your slices. Smart guides and snapping to point will help with this.

    I find “create slice from selection” more simplified than creating slices from guides and having to delete the ones I don’t need.

    For on and off states for buttons, aligned layers work very well. It also makes it easy to edit later if you need to add another button pairing that matches.

    And as someone noted above: keep the text that will be typed into the HTML file on a separate layer instead of deleting it. It makes it easier to edit later if needed. For formatting the text, I suggest using paragraph and character styles to emulate CSS styling. You said to style the text, but you didn’t specify how that was being done. With paragraph and character styles, you’ll already have a good deal of the CSS figured out for styling the text when you code.

    I find it interesting that commenters are assuming that Illustrator isn’t precise. It is very precise, if you know what you’re doing. If you don’t know how to use it in a way that results in a pixel precise layout, that’s not the fault of the program.

    I’ve got to admit though, I don’t find that I often need to create slices. layering items and exporting individual pieces can work too, depending on the objects.

    This was a good overview. It gives me some ideas for how I’d write a web layout tutorial :)

    • SN080

      Thank you Jonathan for a wonderful and insightful tutorial. And wow, Emily, I actually learned a lot from your comment! Thanks! :-)

  • frustrated

    I spent two hours designing my webpage in Illustrator and a little more time following your directions. So now I have it all saved and NOW WHAT! Now I have all these slices and don’t know how to use them with dreamweaver. Thanks for leaving me hanging…

  • http://www.radulevucetic.nl Radule

    Slicing using “gudies” i think is not smart idea…
    I allways use “CRAP” tool and you dont need so much sliced images,this is clean layout,very easy and nice layout but i think you only need to slice HEADER + NAVIGATION… :))

  • nlx

    What about Type Rendering ?

    Even if i can export thru illustrator, there is not type rendring option in illustrator right ? (smooth/sharp etc.)

  • dj..

    nice…

  • barbara jean

    really wonderful design! and truly exceptional, well-written tutorial.

    Thank you

  • http://www.konige.com/fr/contact.html Boîte communication Montréal

    Who thought it would be that easy!?

    I have problems the step after that though, making the design with dreamweaver.

  • Lavanya

    For those that want pixel perfect lines/boxes/anything, turn on Snap to Pixel, use the rasterize function (under effects) to ensure it renders correctly and then nudge it to the nearest pixel.

    I personally lay up in Illy and do complex artwork that requires raster effects in Photoshop. I have found that the best way for my web work is to use both effectively and maximise both of their strengths. Illy is an incredibly powerful layout tool with incredible tools such as smart guides, vector scalability and vastly superior typography control and manipulation.

    In a designer (both in print and web), I look for people who command the ability to use all the Creative Suite tools together creatively and intelligently. Designers that only use Photoshop (and likewise those that only use Illustrator) would benefit from broadening their skillset.

    Versatility in design is key, and this applies to the tools that you use too.

    • http://www.mathias.li Mathias M. Stav

      I totally agree with you. Especially when it comes to typography, illu is a lot easier – and faster – to work with. I personally use illu for wireframes and actually the rest of the process until it’s time for the final touch, for that I use photoshop.

      Are you sure you have to rasterize to get it pixel perfect in illu?

      • Lavanya

        Thankfully no more rasterization needed with align to pixel grid in CS5! ^.^

  • tashi norden

    your tips were gr8!! my only problem is..after saving for web..the page does not fit exactly in the centre..but displays in the left hand side of the browser..my screen size is 1440 * 900 pixels and my website size i created is in 982 * 1400 pixels..is there something wrong?

    • http://www.mathias.li Mathias M. Stav

      The way I usually do this:

      title

      body {
      width: 100%;
      }

      #wrapper {
      position: relative;
      margin: auto;
      width: 960px;
      }

      • http://www.mathias.li Mathias M. Stav

        hmm, that didn’t look too good. I think I have to read some guidelines for comment posting.

        Basically I make a div with “wrapper” as an id and put my content between it, then give the body a with of 100% and the wrapper the with you want it to be, set the margin to auto and position to relative.

        You can find a lot of tutorials on this on nettuts. Another page that is a “must” to check out if your into web-design is http://www.w3schools.com

  • Matt Coyle

    Try opening the HTML in a text editor and replace the “” within the first 10 lines or so with:

    I’m no expert, just a guess.

    • Matt Coyle

      I guess I can’t paste code in here.

      insert the words align=”center” between “height” and “border”

  • Matt Raso

    actually i found when doing websites on a mac and viewing the file on a windows pc the slices shift the image you have sliced over about 1/4 of an inch making the image no loner flush. so i what i found in Adobe Dreamweaver is what is called a hot spot and it is the same as a slice but it keeps the link flush with the design. it is located at the bottom box in Adobe Dreamweaver and there are a light blue box, circle, and another werid shape.

  • Darc

    ok i’m a beginner at this but before i made a layout on gimp and never knew how to code it could i possibly put it on illustrator and then be able to put it onto my website and use it or no?
    because my layout is one where you have to put text over it and none of the buttons work please help me :’(

    email me at rettus888@yahoo.com if you have to

  • http://free-war.ru free-war

    Thanks for tutorial!

  • flash

    Im a nettuts plus member (or premier as it is now) – never ventured onto the graphics side as never needed to, but a client gave me an AI file and I needed help.. and I found it here!

    Glad to see the vectortuts are equal quality to the nettuts!

    Thanks for saving me hours of torment on AI.

    Flash

  • Liv

    Guys im a total beginner at this and really want to learn how to build websites..and more importantly..make them work! So i know AI to some extend and got my layout done. Now what do i do? Is there anyone that has some tutorial(s) about going from having this layout to putting it online and making it work? Or is the answer, learn html/css etc?

  • katie

    how do u publish it after the website is done?

  • Dennis

    Thanks for this great post.
    You just teach us how to slice the webpage, but I do want to know how to make AI generate the CSS file automatically ?

    • http://bucketothought.com/loungekat/blog/ LoungeKat

      You should try Fireworks if you want to make CSS.

  • Peter

    When setting up your file, I recommend that you set your preview mode to pixel. that way you can move objects around at any zoom without worrying about going off pixel. This is key in getting clean output.

  • Laura

    Extremely well written and easy to follow. Much appreciated!

  • Amy

    When I read this tut back in 2008, I was surprised that Illustrator CS even had a “slice” tool. Then I started to experiment with the “SAVE FOR WEB” and all of it’s different options. This tut opened my eyes……I can set up an all CSS website pretty fast now. Who knew Illustrator allowed you to export as CSS layers, AND you can save layers to SWF frames for simple flash on your website. AI and Dreamweaver work together just as good as Photoshop and Dreamweaver. As far as the comments on here about Illustrator not being capable of creating a pixel perfect site, well that just isn’t true. It IS possible, provided they use the correct settings within Illustrator. Did anyone read the book, “The hidden power of illustrator CS: web graphics techniques” by Steve Kurth? Wonderful book! Tutvid was a good resource too. I prefer Illustrator over Photoshop because it seems my workflow is much faster…..but to each his own.

    • http://bucketothought.com/loungekat/blog/ LoungeKat

      CS5 also has a function that renders the image to pixel lines too, so it’s never been better to make websites in Illustrator :)

  • http://www.alanbrowndesign.co.uk Alan

    I agree both PS and AI have a part to play, but AI is perfect for creating layouts. I personally prefer my layouts to be as flexible as possible allowing fast colour changes or quickly changing column widths and character styles. To all people who complain about blurry pixels, changing vector shape sizes in PS throws up the same problems, in spite of the ‘snap shape to pixel’ option.

  • guy

    Where’s it gone?
    Remembered it from a while back, came back for a look again and nada.
    Be very grateful if somebody could post it back up please.

    • http://bucketothought.com/loungekat/blog/ LoungeKat

      what’s gone?

  • Ratatunga

    Jonathan,
    You’re a legend. Thank you so much for this tutorial. As a print designer I have spent WAY too long trying to blag a website on Dreamweaver, you have just made my life a whole lot easier (“,) Instead of a shitty, thrown together website I will now have a visually stimulating but problably just as unusable website :)
    Thanks mate

  • http://www.billigfergebillett.no Billig Ferge

    Thanks a million for the step by step tutorial :-)

  • leith

    Most useful tute I’ve seen on Illustrator for web design. Thanks.

  • http://www.findferry.co.uk Find Ferry

    Jupp, just have to agree that this was a nice tutorial :-)

  • Nirman

    Hi,

    I have few questions. In step 5, you’ve placed thin strips for the text. How did you decide the height of each strip and the distance between them (so that you can place the text comfortably between those thin gray strips)

    Also, how did you decide the font size for everything so that they look meaningful like your design? By that I mean, where to use bold, where to use italics, which text should have what font size?

    And finally, thanks so much for this inspiring tutorial! :)

    • http://www.apepp.info Andrew Peppin

      …generally speaking/writing, you need to aim for balance, make headings text bigger than body copy and highlight areas that require user interaction, keep it simple is the rule of thumb. So don’t try and highlight AND make everything BIG! This approcah doesn’t always work…less is often more.

  • http://www.noyasystem.com ramin

    Very nice.
    Good article.
    Thanks for sharing.