Photoshop to CSS

This is a discussion on "Photoshop to CSS" within the Web Page Design section. This forum, and the thread "Photoshop to CSS are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 26th, 2007, 18:16
Junior Member
Join Date: Sep 2007
Location: Mexico
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Photoshop to CSS

Hi, after learning html, and some CSS I finally made a Layout on Photoshop for my very first website, I Guess you've been asked thousand times about this, but now I need to slice this and get it into a 2 colums fixed layout, But I don't know how to start, I still can't find a decent tutorial about slicing, Any help is really apreciated.

Here is my layout:
http://i92.photobucket.com/albums/l1...lackLayout.jpg
Reply With Quote

  #2 (permalink)  
Old Sep 26th, 2007, 18:20
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

First things first ... DON'T use the slice tool in PS

Gimme a minute, I'll show you what I would cut and use as backgrounds
Reply With Quote
  #3 (permalink)  
Old Sep 26th, 2007, 18:26
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

A bit rough but ... something like this

BlackLayout-cuts.jpg

I just did 2 of the menu items but ... you get the picture
Reply With Quote
  #4 (permalink)  
Old Sep 26th, 2007, 18:31
Junior Member
Join Date: Sep 2007
Location: Mexico
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

I see ,so I only need to use those images as backgrounds, great. I'll try to do it like this. Thank you.
Reply With Quote
  #5 (permalink)  
Old Sep 26th, 2007, 18:32
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

Yes ... most of them.

Good luck!
Reply With Quote
  #6 (permalink)  
Old Sep 26th, 2007, 18:35
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Photoshop to CSS

It might be worth having a look here http://www.sitepoint.com/article/des...site-photoshop
Reply With Quote
  #7 (permalink)  
Old Sep 26th, 2007, 18:39
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

Oh No!!! Please don't follow that! It's dated 2002 and it wants you to use the slice tool in PS which creates HTML with tables

Like I said in my first reply, DON'T USE THE SLICE TOOL IN PS!
Reply With Quote
  #8 (permalink)  
Old Sep 26th, 2007, 19:06
Junior Member
Join Date: Sep 2007
Location: Mexico
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

Ok, thanks.
Reply With Quote
  #9 (permalink)  
Old Sep 26th, 2007, 19:17
Junior Member
Join Date: Sep 2007
Location: Mexico
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

A quick question : Can I stablish how many times do I want an image to repeat?
In the main column as an example, it has a little header, and the little footer are diferent than the center, how would I set all in the same div?O_o I would want the center to repeat vertically, but not the header and the footer.

Last edited by Hellcaster; Sep 26th, 2007 at 19:20.
Reply With Quote
  #10 (permalink)  
Old Sep 26th, 2007, 19:38
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,268
Blog Entries: 7
Thanks: 10
Thanked 4 Times in 4 Posts
Re: Photoshop to CSS

I'm not quite certain I have understood your question, but if you want the background image on a div to repeat, use:

Code: Select all
#div {
background-image: image.jpg;
background-repeat: repeat-x;
}
Or have I got that completely wrong?

Jack
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
Reply With Quote
  #11 (permalink)  
Old Sep 26th, 2007, 19:51
Junior Member
Join Date: Sep 2007
Location: Mexico
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

Yes, I know how to do that, thank you, basicly I need to know how to do this:
http://i92.photobucket.com/albums/l1...ackLayout2.jpg
It has 3 sections and If i follow as karinne told me the center needs to be repeated a certain amount of times, but no the first or the third section.

I hope I explained myself::P
Reply With Quote
  #12 (permalink)  
Old Sep 26th, 2007, 21:05
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

The middle section should only be a very small image in height ... like 5 pixels or something. You don't need that big image. Just apply the repeat-y to the main div and you should be all set.
Reply With Quote
  #13 (permalink)  
Old Sep 26th, 2007, 21:24
Junior Member
Join Date: Sep 2007
Location: Mexico
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

Yes I see, I've got another question: when i try to set a background image the code should look like this as I've seen on many sites:

Code: Select all
background-image:url(image.jpg)
but right now I have not uploaded my page to any webhost and I got all my images on my pc. Is there anyway to changue this url(img.jpg) so I can use the images on my pc, or do I need to get a hosting service first? I would like to finish my page first and then get the webhost...:P

Last edited by karinne; Sep 26th, 2007 at 21:56. Reason: Changed the brackets for the vBcode to work ;)
Reply With Quote
  #14 (permalink)  
Old Sep 26th, 2007, 21:47
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Photoshop to CSS

say you webfiles are in c:\web\
as long as the html page and the image page are in that folder it will work, like:
c:\web\index.html
c:\web\img.jpeg
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #15 (permalink)  
Old Sep 26th, 2007, 21:49
Junior Member
Join Date: Sep 2007
Location: Mexico
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

Cool It works now, thank you very much guys.^^
Reply With Quote
  #16 (permalink)  
Old Sep 27th, 2007, 00:17
marSoul's Avatar
Moderator
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 411
Blog Entries: 2
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via MSN to marSoul Send a message via Yahoo to marSoul
Re: Photoshop to CSS

Why do not use the slice tool in photoshop ?!!
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Reply With Quote
  #17 (permalink)  
Old Sep 27th, 2007, 12:20
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

Well ... the slice tool in Photoshop create you HTML document for you but it's just as bad as using the WYSIWYG editor in Front Page

It creates VERY un-semantic code using tables for layout and WAY too many images.
Reply With Quote
  #18 (permalink)  
Old Sep 27th, 2007, 12:36
marSoul's Avatar
Moderator
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 411
Blog Entries: 2
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via MSN to marSoul Send a message via Yahoo to marSoul
Re: Photoshop to CSS

I think it depends on user that how use the slice tool to control how many images outputted .
I think in most way it is useful tool, specially layer based slice tool.
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Reply With Quote
  #19 (permalink)  
Old Sep 27th, 2007, 12:41
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

Probably ... but in my experience not many images from the mock-up are needed so it's best to just code the HTML and CSS to try and get most of the layout and colors properly. Then, just get what you absolutely need from PS.
Reply With Quote
  #20 (permalink)  
Old Oct 5th, 2007, 18:00
Junior Member
Join Date: Sep 2007
Location: Mexico
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

Hi, I know it's been a while, but I finally finished my very first CSS layout ,I'd like to thank you all guys, specially karinne for the help, finally it looks like this:
http://www.freewebs.com/iamgio/
I will be playing with CSS a little more
and experimenting with my page.
Once again thank you all for the help
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Photoshop allstar Graphics and 3D 7 Jul 7th, 2008 09:11
Photoshop CS2 or CS3? Hunterlaar Graphics and 3D 9 Sep 21st, 2007 02:22
Photoshop help crg1 Graphics and 3D 5 Jul 16th, 2007 07:33
Help with Photoshop CS2 howey1702 Graphics and 3D 8 Jan 19th, 2007 17:57
Photoshop help! M4dSc1ent1st Graphics and 3D 1 May 16th, 2005 15:20


All times are GMT. The time now is 21:54.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43