Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 06-30-2007, 01:03 PM PS Template in CSS
Junior Talker

Posts: 3
Name: Ed
Trades: 0
Hi everyone, before you get mad for myself posting something that "has so many tutorials" as a subject like this one, understand I seem to have a really bad time learning CSS, I've been on this site for the past 2 days and still cant get it down, or any understanding.

What i need to do:
Im tired of slices!! Im a graphic designer with decent to average html who designs in photoshop and i want to take my ps design and turn it into a fully funtional css site minus slicing.

Please help or give me a link to a tut that covers this, i found others with tuts that didnt really help. Im so lost and have projects i need to get done and im trying to switch to css.
this609 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-30-2007, 01:46 PM Re: PS Template in CSS
Junior Talker

Posts: 2
Name: Jason Stanley
Trades: 0
All sites with graphics require some degree of slicing.

I assume you mean you don't want the photoshop style page output where your website is basically a giant image cut into little pieces. This is easy enough.

I don't have any articles but here is some general theory

Just think about your design in layers. Content should be your top layer. The background color or image should be your bottom layer.

When it comes to slicing, cut out your textured background. These are usually thin slices or boxes depending on the pattern. You can then use css to copy these.

background-image:url(link); background-repeat:repeat-x/y;

Where you have blocks of color you just use background-image;

background-color:#hex;

Almost all pages I build have the following structure...

<body>

-- Background 1 - Usually a color or pattern using the above. This is just to display what is off the edges of my site.

<div class="container">

-- Background 2 - contain's - width:800px; margin:0 auto; --- used to center page and provide background for content.

<div class="content">

This is where the page really starts, page headers, content, multiple columns are wrapped by this content tag.

</div>

</div>

</body>

I really don't know any other way to explain it. You just need to break your design into layers, much like photoshop does. Then build your site from the top down.

1) Create HTML. No CSS. Just get your content down and validate it.
2) Break up your design in your mind and add <div> or <tag class=""> where you feel you will need to add styling.
3) In your CSS start adding your backgrounds
4) In your CSS start styling your content from top down.


I hope this has helped a little, if not could just explain a little better what you want.

Last edited by Bigs; 06-30-2007 at 01:48 PM..
Bigs is offline
Reply With Quote
View Public Profile
 
Old 06-30-2007, 04:51 PM Re: PS Template in CSS
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yes, to some degree you're still going to have to cut up your PS mockup for a CSS-based layout, you just don't have to do it quite like you used to in tables. My typical layout is like this:

- body - might have a tiling bg applied to it
- wrapper - containing element that holds everything else, and it too might have a background set in the CSS. In many cases, this background image is small and repeats vertically, depending on the design. If I'm using a centered, fixed width layout with a drop shadow around the edges, the 'slice' for it includes the drop shadow on either side.

-header - well, has the header image in it, usually (but not always) set as a background of the header div

- sidebar - left or right side navigation area , may or may not have a background
- content - this may or may not have a background, but I have used a background.
- footer - again, may or may not have a background image, could tile horizontally or vertically depending on the design.

So, my 'slices' are typically for the header, the #wrapper background, the buttons for my nav if I use background images, and my footer. If I use a repeating 'stripe' on the body, that would be another 'slice'.

Does that help ?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PS Template in CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29755 seconds with 12 queries