[solved] Creating a content box

Post questions on how to use or achieve an effect in Inkscape.
User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

[solved] Creating a content box

Postby capnhud » Thu Jul 05, 2007 9:51 pm

How do you do something like this in Inkscape.

Image

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Creating a content box

Postby microUgly » Fri Jul 06, 2007 8:28 am

What specifically don't you know how to do?

The base of it is to draw a rounded corner box. So draw the box using the rectangle tool, and with the rectangle tool still selected change the Rx and Ry values in the Tool Control Bar. Give it a one pixel stroke and a gradient fill.

Then you do the same for the Yahoo box and the Ambassador box. The only tricky part is if you look at those boxes carefully you'll see they have a white outline and then a grey outline. The only way I know how to do this is to draw a white box, then draw another box on top that is a few pixels smaller. Again, with the Rectangle tool selected you can change the box size on the Tool Control Bar.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Creating a content box

Postby microUgly » Fri Jul 06, 2007 9:02 am

For a little more clarity:

Image
Set your zoom to 100% so you know you're working with whole pixels otherwise you may find things get blurry. You could also set guides to ensure everything snaps to whole pixels.
  1. Draw a box using the Rectangle Tool. With the Rectangle Tool still selected, on the Tool Control Box set the Rx and Ry values to give the box round corners. Give it a 1px stroke and a gradient fill.
  2. Draw another rounded box and make it white with a 1px white stroke. Even though the stroke isn't visible including it make the next step a little easier. Make the Rx and Ry values a little smaller.
  3. Duplicate the white box then with the Rectangle Tool still selected, change the values in the Tool Control Box so it's width and height is 2 pixels smaller and change the Rx and Ry values to be 1 pixel smaller. Change the strok colour to grey and with the Selection Tool selected move the box 1 pixel down and 1 pixel to the right. Again, you can use the Tool Control Box to specify the exact position.
  4. Select both boxes you created in step 3 and dupilicate them. With the Selection Tool selected and both boxes still selected, turn off the 2 buttons on the Tool Control for scaling stroke width and scaling rounded corners. Then squash the boxes and move into place (you can use the arrow keys to move the box). Give the box with the grey stroke a blue fill.

User avatar
Darth_Gimp
Posts: 165
Joined: Sun Jun 10, 2007 12:49 pm
Location: Canada
Contact:

Re: Creating a content box

Postby Darth_Gimp » Fri Jul 06, 2007 9:22 am

Image

I have the SVG if you want it.

EDIT: Didn't see what you posted there Micro... looks great!
Last edited by Darth_Gimp on Fri Jul 06, 2007 9:23 am, edited 1 time in total.
Image

User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Re: Creating a content box

Postby capnhud » Fri Jul 06, 2007 9:23 am

Your explanation Micro was well explained, I was have a problem in achieving the illusion of depth with Ambassador and Yahoo part. When I would recreate it it would always seem flat. But I see that what I was lacking was effective use of stroke to simulate an inset look. Thank you for taking the time provide a detailed explanation that help to achieve the desire look.

User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Re: Creating a content box

Postby capnhud » Fri Jul 06, 2007 9:24 am

I have the SVG if you want it.
Yes I would like that

User avatar
Darth_Gimp
Posts: 165
Joined: Sun Jun 10, 2007 12:49 pm
Location: Canada
Contact:

Re: Creating a content box

Postby Darth_Gimp » Fri Jul 06, 2007 9:29 am

Image

Click for the SVG

Although VERY similar, my method was a little different than MicroUgly's.
Image

User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Re: Creating a content box

Postby capnhud » Fri Jul 06, 2007 9:33 am

Thank you I appreciate this

User avatar
Darth_Gimp
Posts: 165
Joined: Sun Jun 10, 2007 12:49 pm
Location: Canada
Contact:

Re: Creating a content box

Postby Darth_Gimp » Fri Jul 06, 2007 9:43 am

Glad you got the help you needed.. now, spread the word that this forum helped you and help grow the forum and Inkscape :lol:
Image

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Creating a content box

Postby microUgly » Fri Jul 06, 2007 9:58 am

Hey Darth_Gimp, with creating the inset look, did you do pretty much what I did? Or do you have a less tedious way that doesn't involve tweaking pixels sizes?

User avatar
Darth_Gimp
Posts: 165
Joined: Sun Jun 10, 2007 12:49 pm
Location: Canada
Contact:

Re: Creating a content box

Postby Darth_Gimp » Fri Jul 06, 2007 10:37 am

not sure if its less tedious. For the larger white box, I made a box with a gray center and a white stroke I believe.. then duplicated it and CTRL+SHIFT'd it to fir inside the stroke.

Quick and dirty but it worked.
Image

Simarilius
Posts: 626
Joined: Wed Jun 06, 2007 2:37 am

Re: Creating a content box

Postby Simarilius » Fri Jul 06, 2007 10:07 pm

microUgly wrote:Hey Darth_Gimp, with creating the inset look, did you do pretty much what I did? Or do you have a less tedious way that doesn't involve tweaking pixels sizes?


>Create one rectangle
>set the stroke width to be half the total width you want your 2 rectangles to have.
>stroke to path
>Ctrl+shit+K it to seperate the subpaths.
>bingo, 2 perfectly sized rectangles

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Creating a content box

Postby microUgly » Sat Jul 07, 2007 7:23 am

I didn't think of using stroke to path. Great idea.

User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Re: Creating a content box

Postby capnhud » Sat Jul 07, 2007 10:09 am

Never even knew that was even in the arsenal of inkscape and is very quick by the way


Return to “Help with using Inkscape”