Jump to content

Trying to learn how to take my layout in photoshop and convert to CSS...


Recommended Posts

Hi,

I have decided that the pre-designed template I was using doesn't fit what I was trying to do before, So i've recreated my site layout in photoshop. I have a basic 1 header 1 main ad space w/ a login panel beside it, body, side bar for more ads, and a footer... my design looks real tight, and just need help moving it to dreamweaver (without slicing into tables), so can someone point me to a tutorial on how I can convert my images to my web page via CSS? kinda n00bish question but I could appreciate the help...
The way that I do it is to slice my design up in photoshop, export it (with tables), then open it up in dreamweaver. Then I make a temp.html file where I work on the new CSS design. This way I can bounce back and forth between the table design and the CSS design and make sure everything is like how it is supposed to look. You still need to hand code all of the divs and information in the pages. There is really nothing that I know of that converts your table design to a css one...but I don't think you would want it anyways...

I know I didn't give you too much information, but if you need to know anything more specific, please let me know. I usually "convert" 2-3 psd files a week for different clients.

-Chris
hey chris,

thanks for your help, i did go ahead and slice the images into the corresponding tables, and have begun the rebuilding into CSS on a temp.html page. I have the header, nav bar done... i have a question though

I have an ad space "dimensions of: H:150px by W:612" and right next to it i have a login panel "H:150 x W:163"
I want to know how I can make it so the login panel will position absolute Right, and the ad on the left, so when the page gets expanded they will stay on the opposite ends. pretty basic, but i'm kinda stuck. thanks
OK, i've finished the page, but i'm stuck on the following....

1. For some reason the background color, and background images I have in my CSS aren't working in the browser, but i can see it in dreamweaver how i want it to look.

2. I'm having issues with using float, i want to have the AD on the left and the login on the right but i don't want to have that huge space between them if i float left & right on the 2.

I have provided my CSS file below, the pages i'm working on are here...

www.clb411.com/new/design.html -> the sliced version of what i want
www.clb411.com/new/temp.html -> the CSS version of the sliced images

here's my CSS file...

[quote]/* CSS Document */

body {
background: #5f6565;
color: #333;
font: normal 62.5% "Lucida Sans Unicode",sans-serif;
}

.containter {
margin: 0 auto;
width: 775px;
}

.header {
background-color: #5f6565;
background-image: url(../images/page_01.jpg);
background-position: center top;
height: 70px;
width: 775px;
}
.navigation {
background-color: #5f6565;
height: 24px;
width: 775px;
}
.ad {
height: 150px;
float: left;
}
.login {
height: 150px;
width: 164px;
float: left;
}
.line {
    background: #5f6565;
background-image: url(../images/page_10.jpg);
background-position: center top;
float: left;
height: 12px;
width: 775px;
}


.content {
float: left;
width: 588px;
background: #ffffff;
}
.side_bar {
float: left;
width: 189px;
}
.footer {
background-color: #5f6565;
background-image: url(../images/page_27.jpg);
background-position: center top;
float: left;
width: 775px;
height: 43px;
}[/quote]
which background colors and images aren't working for you?

Also...the point of a CSS layout is not to have any tables (or atleast none for the actual layout) It looks like you just copied the different tables in new divs...which really doesn't do too much. Your layout should be all divs...nice and clean :)
hey,

OK you're so right, i've basically created tables in my CSS instead of letting the div's take over. I have taken off the width of the divs but i'm having a hard time trying to figure out how to make the page expand when i expand the page, etc. and i'm kinda lost on that aspect. (been working with tables for so long, is there anything i need to do different?)
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.