|
#1
|
||||||||||||
|
||||||||||||
|
Hey in this tutorial i will show you how to make a cool but simple content box. Also put in for free :P you will be shown how to slice and code it so it will load as fast as possible. enjoy!
1. Open a new document mine here is 300x300 but yours will obviously be in a layout. Make a selection of the size of the content box and click Select->Modify->Smooth. I set it to 6px. Once you do that make a new layer and fill it with white by clicking 'D' on your keyboard first and then Ctrl+Backspace. The background in this image has been inverted so you can see what mine looks like. <div class='bbimg'> </div>2. Now applying the following effects will produce a smooth and simple looking content box. <div class='bbimg'> </div><div class='bbimg'> </div><div class='bbimg'> </div>3. You should now have a simple content box like this: <div class='bbimg'> </div>4. In this image i have added a little tab that the content box name has been added in. <div class='bbimg'> </div>Right now slicing 1. First we need to look at how many images we have to actually slice for this to work. Well due the simplicity of the content box the borders can be sliced so when set as a cell background they will repeat themselves but still look like a whole image. If you get what i mean <div class='bbimg'> </div>It may look weird but it makes sense. The reason why we are cutting the corners is that these can not be repeated as a background so much be as a seperate image. The slices inbetween the corners are the images that get repeated and that means they can be as small as possible so that it reduces loading time. And the big black box shows the space that will not get sliced. This is because all that area is white because it is all white we can just set that cell in the html as white so no need for an image. 2. Ok time to make the slices. If you are unsure on how big the 'black box' is in the content box it is always helpful to get your eyedropper tool and test to see if the pixel at the corner of the slice is the same color as the body that is not going to be sliced. This means the image you are cutting will blend into the main body of color. Due to the fact there is a 'label' on the content box, the images at the top will be bigger so that they are the same size as the 'label'. <div class='bbimg'> </div>3. Now click Save for Web and save it as gifs as they load slightly faster than jpegs. Now open your favourite web editor. To show how to make this i will be using Macromedia Dreamweaver Mx. Once you open Dreamweaver or Frontpage you need to create a table. Now in Dreamweaver it is Insert->Table whereas i think in frontpage it should be Table->Insert->Table. Then fill in the details you want 3 rows and 3 columns. Remember to change the others and set borders, cellpadding and cellspacing to 0. 4. In the first cell [top left] right click in it and click properties [that works for both dreamweaver and frontpage, however frontpage it is cell properties not table properties]. Now in the background box browse for the image of the top left corner that you sliced. For Dreamweaver: <div class='bbimg'> </div>For Frontpage: <div class='bbimg'> </div>[please bare in mind my edition of fontpage is not uptodate] 5. Now continue this for all the cells and dont forget to set the cell size. This is what you should get :P. I have taken screenshots to show how they look like in both Dreamweaver and Frontpage. <div class='bbimg'> </div>And for those lazy people out there here is the code. Code:
Here is a link to a working one aswell http://p3rc3pt10n.net/tuts/contentbox/images/box.html Here is a link to the psd used also http://p3rc3pt10n.net/Forums/index.php?download=8 Hope ya enjoyed it ^_^ FireNova |
| Pictual Design Forums's Sponsored Links: |
|
| Display your advertising here - learn about Pictual Revenue Sharing |
|
#2
|
||||||||||||
|
||||||||||||
|
<div class='quotetop'>QUOTE(FireNova @ Sep 5 2005, 10:03 AM)</div><div class='quotemain'>the font name is the one everyone uses lol its um 04_3b or something like that anyway lol
[snapback]2370[/snapback]
[/quote:db24c54e40]Another pixel font that works nicely is Redensek. |
|
#3
|
||||||||||||
|
||||||||||||
|
Great Tutorial. Me Likes
|
|
#4
|
||||||||||||
|
||||||||||||
|
Loving it. Ill probally use this
|
|
#5
|
||||||||||||
|
||||||||||||
|
nice tut..... i knew it already.. but just helped me learn a few more bits in ps
|
|
#6
|
||||||||||||
|
||||||||||||
|
yup, nice tut, i like it =)
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|