| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
|
learning css as a standard
Hey guys and girls. So Im used to just slicing my designs in photoshop then exporting them into html then going in and cleaning the code and so on. I a designer and dont code much so I jsut use the photoshop thing and hand it off. But anyway, I wanted to get into coding with css b/c i understand its kinda of the standard now. My question is are there like applciations that I can export the slices into css rather then html. I think it would be easier for me to see the final site in css then learn it from reading the finished code. Just a question, Thanks for all your help. |
|
|
|
|
|
#2 (permalink) |
|
Rough Creep Arse™
|
To be honest, you don't want to think of a css based layout as "slices". I know photoshop will export images sliced with CSS rather than tables (or maybe it was fireworks which does that?) but the "sliced" css it generates is awful. You need to look at a design and break it into individual components. Not an entire design need be images, for example you might have a left hand column which is a big block of green. No need for that to be an image, you have a div block with a green background. You might have a menu bar which is a complex image.. now that might want to be sliced up. But then your HTML in the background wouldn't be divs, you'd use an unorder list for example and each list item would contain the image, or alternatively you could set the background for the list items to be the image. My magazine site, for example, www.scuz.info, is an example of how you can have a heavily image based menu bar. Looking at that code, Code:
That is what makes up the menu and the css for one of the buttons looks like Code:
If you look at the headerContainer, it contains a background image like, Code:
Not sure if this has made anything clearer or if it's made it more confusing but there you go. It's not really about automatically slicing an image, it's about breaking it up and seeing what has to be images and what can be css generated. Bit more to it than that, but takes a bit of time/practice. |
|
|
|
#5 (permalink) |
|
Senior Member
Join Date: Mar 2006
Posts: 147
|
There is a plugin for Photoshop called SiteGrinder that does spit out valid XHTML and CSS. From what I've seen of it so far though, it's hardly optimal code.. seems to suffer from div-itis for one thing, but what can you expect ? You want to learn XHTML and CSS, try this book: http://www.sitepoint.com/books/html1/ |
|
![]() |