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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 26th, 2007, 18:20
Elite Veteran
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 26th, 2007, 18:26
Elite Veteran
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 26th, 2007, 18:32
Elite Veteran
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 26th, 2007, 18:35
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Photoshop to CSS

It might be worth having a look here http://www.sitepoint.com/article/des...site-photoshop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 26th, 2007, 18:39
Elite Veteran
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Sep 26th, 2007, 19:38
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,410
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 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: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Sep 26th, 2007, 21:05
Elite Veteran
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
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 ;)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Sep 26th, 2007, 21:47
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
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.^^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Sep 27th, 2007, 00:17
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Photoshop to CSS

Why do not use the slice tool in photoshop ?!!
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Sep 27th, 2007, 12:20
Elite Veteran
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old Sep 27th, 2007, 12:36
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old Sep 27th, 2007, 12:41
Elite Veteran
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #20  
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote