Web Hosting Talk







View Full Version : Help with slicing a psd


ilyash
11-07-2007, 11:00 PM
Hi, I am developing my site in photoshop and had some questions about slicing.

I am pretty comfortable with the actual slicing.. but when I export it... I get a bunch of tables, with the images in the actual td...

If i want to have text in the td [which i obviously do] do i just put <td background=imglocation> MY TEXT HERE </td>?

And if i have a repeating bg image how do i make it stretch to fit my content?


Also, how can i optimize images to save bandwidth.. ie
if a slice has a |border| soliiiiid collooooor |border|
how can i use the solid color to my advantage and make the img smaller?


Thanks for your help guys.

Also, what about css? would this be easier with css? Any programs that "auto-css" ? I appreciate your help.

liam_tmt7
11-08-2007, 07:40 AM
If i want to have text in the td [which i obviously do] do i just put <td background=imglocation> MY TEXT HERE </td>?


If its a solid colour you can create a css style using the hex value as a background colour, then set the font size, colour type etc within the same style.

If its a background image, then you can take a sample of the background image, save it as tableBgWhatever.jpeg and set that as the background image in the css, then same as above.


And if i have a repeating bg image how do i make it stretch to fit my content?

Just the same, you can set the repeat values repeat-x, repeat-y or no repeat.

Most of your problems can be solved using css

hope this helps
Liam

Paul-M
11-10-2007, 10:13 AM
Learn xhtml/css and you won't have to be limited by tables...

Makes everything easier.

livechatdir
11-11-2007, 10:01 AM
Try not to use the autoclice tool in photoshop, it will create vague image sizes and tables.

Our designer slices manually and optimizes images while slicing for fastest loading time. That said, CSS is a must to create a well optimized site.